Anonymous

Module:Monsters: Difference between revisions

From Melvor Idle
m
Fix null error when area.type doesn't exist
(getOtherMonsterBoxText: Fix handling of abyss depths)
m (Fix null error when area.type doesn't exist)
Line 926: Line 926:
local counts = {combatArea = 0, slayerArea = 0, dungeon = 0, abyssDepth = 0}
local counts = {combatArea = 0, slayerArea = 0, dungeon = 0, abyssDepth = 0}
for i, area in ipairs(areaList) do
for i, area in ipairs(areaList) do
counts[area.type] = counts[area.type] + 1
counts[area.type] = (counts[area.type] or 0) + 1
end
end


2,874

edits