17,101
edits
(_getMonsterAreas: Fix slayer area icon type) |
(getOtherMonsterBoxText: Fix area type determination) |
||
Line 614: | Line 614: | ||
local areaList = Areas.getMonsterAreas(monster.id) | local areaList = Areas.getMonsterAreas(monster.id) | ||
local counts = { | local counts = {combatArea = 0, slayerArea = 0, dungeon = 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] + 1 | ||
end | end | ||
if counts. | if counts.combatArea > 0 then table.insert(monsterTypes, 'Combat Area') end | ||
if counts. | if counts.slayerArea > 0 then table.insert(monsterTypes, 'Slayer Area') end | ||
if counts.dungeon > 0 then table.insert(monsterTypes, 'Dungeon') end | if counts.dungeon > 0 then table.insert(monsterTypes, 'Dungeon') end | ||