Module:Mazunki/Monsters: Difference between revisions

m
upper
m (separator)
m (upper)
Line 10: Line 10:
local p = {}
local p = {}
local arraySeparatorInSheets = '<br />'
local arraySeparatorInSheets = '<br />'
local notext = ''
local zero = 0


function p.getRawTable(frame)
function p.getRawTable(frame)
Line 59: Line 61:
table.insert(rowTxt, Monsters._getMonsterAttackSpeed(monster))
table.insert(rowTxt, Monsters._getMonsterAttackSpeed(monster))
table.insert(rowTxt, Monsters._getMonsterMaxHit(monster))
table.insert(rowTxt, Monsters._getMonsterMaxHit(monster))
table.insert(rowTxt, monster.attackType)
table.insert(rowTxt, monster.attackType.gsub("^%1", string.upper))
local hasSpecialAttack = false
local hasSpecialAttack = false
local spAtks = {}
local spAtks = {}
Line 85: Line 87:
table.insert(rowTxt, tostring(not(monster.isBoss)))
table.insert(rowTxt, tostring(not(monster.isBoss)))
table.insert(rowTxt, "")
table.insert(rowTxt, notext)
table.insert(rowTxt, tostring(0))
table.insert(rowTxt, tostring(0))
elseif bones ~= nil and monster.boneQty then
elseif bones ~= nil and monster.boneQty then
table.insert(rowTxt, "")
table.insert(rowTxt, notext)
table.insert(rowTxt, tostring(0))
table.insert(rowTxt, tostring(0))
table.insert(rowTxt, tostring(false))
table.insert(rowTxt, tostring(false))
Line 95: Line 97:
table.insert(rowTxt, monster.boneQty) -- actually a fragment
table.insert(rowTxt, monster.boneQty) -- actually a fragment
else
else
table.insert(rowTxt, "")
table.insert(rowTxt, notext)
table.insert(rowTxt, tostring(0))
table.insert(rowTxt, tostring(zero))
table.insert(rowTxt, tostring(false))
table.insert(rowTxt, tostring(false))


table.insert(rowTxt, "")
table.insert(rowTxt, notext)
table.insert(rowTxt, tostring(0))
table.insert(rowTxt, tostring(zero))
end
end


892

edits