Anonymous

Module:Monsters: Difference between revisions

From Melvor Idle
_getMonsterAreas: Fix slayer area icon type
(Fix description related issues & avoid issues with 'random' monsters)
(_getMonsterAreas: Fix slayer area icon type)
Line 313: Line 313:
for i, area in ipairs(areaList) do
for i, area in ipairs(areaList) do
if area.type ~= 'dungeon' or not hideDungeons then
if area.type ~= 'dungeon' or not hideDungeons then
table.insert(resultPart, Icons.Icon({area.name, type = area.type}))
local imgType = (area.type == 'slayerArea' and 'combatArea') or area.type
table.insert(resultPart, Icons.Icon({area.name, type = imgType}))
end
end
end
end