Anonymous

Module:Mazunki/Monsters: Difference between revisions

From Melvor Idle
m
misalign
mNo edit summary
m (misalign)
Line 80: Line 80:
local bones = Items.getItemByID(monster.bones)  
local bones = Items.getItemByID(monster.bones)  
if bones ~= nil and bones.prayerPoints then
if bones ~= nil and bones.prayerPoints then
table.insert(rowTxt, tostring(true))
table.insert(rowTxt, bones.name)
table.insert(rowTxt, bones.name)
table.insert(rowTxt, bones.prayerPoints)
table.insert(rowTxt, bones.prayerPoints)
table.insert(rowTxt, tostring(true))
table.insert(rowTxt, "")
table.insert(rowTxt, "")
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, tostring(false))
table.insert(rowTxt, "")
table.insert(rowTxt, "")
table.insert(rowTxt, tostring(0))
table.insert(rowTxt, tostring(0))
table.insert(rowTxt, tostring(false))
table.insert(rowTxt, bones.name) -- actually a fragment, not bone
table.insert(rowTxt, bones.name) -- actually a fragment, not bone
table.insert(rowTxt, monster.boneQty) -- actually a fragment
table.insert(rowTxt, monster.boneQty) -- actually a fragment
else
else
table.insert(rowTxt, tostring(false))
table.insert(rowTxt, "")
table.insert(rowTxt, "")
table.insert(rowTxt, tostring(0))
table.insert(rowTxt, tostring(0))
table.insert(rowTxt, tostring(false))
table.insert(rowTxt, "")
table.insert(rowTxt, "")
table.insert(rowTxt, tostring(0))
table.insert(rowTxt, tostring(0))
892

edits