Anonymous

Module:Monsters: Difference between revisions

From Melvor Idle
Fixed getMonsterLootValue not taking into account bones
(Really fixed MattMonsterTable)
(Fixed getMonsterLootValue not taking into account bones)
Line 790: Line 790:
local boneQty = monster.boneQty ~= nil and monster.boneQty or 1
local boneQty = monster.boneQty ~= nil and monster.boneQty or 1
boneVal = bones.sellsFor * boneQty
boneVal = bones.sellsFor * boneQty
result = result + boneVal
end
end


Line 813: Line 814:
local maxQty = row[3]
local maxQty = row[3]
result = result..Shared.formatnum(row[3])


--Adding price columns
--Adding price columns
Line 827: Line 827:
end
end
if avgGp > 0 then
if avgGp > 0 then
result = avgGp + lootValue
result = result + avgGp + lootValue
end
end
end
end