Module:Monsters: Difference between revisions

Formatting tweak
(Added slayer area effect to getMonsterAreas to try out)
(Formatting tweak)
Line 315: Line 315:
if area.type ~= 'dungeon' or not hideDungeons then
if area.type ~= 'dungeon' or not hideDungeons then
local imgType = (area.type == 'slayerArea' and 'combatArea') or area.type
local imgType = (area.type == 'slayerArea' and 'combatArea') or area.type
table.insert(resultPart, Icons.Icon({area.name, type = imgType}))
local txt = Icons.Icon({area.name, type = imgType})
if area.type == 'slayerArea' then
if area.type == 'slayerArea' then
local areaDescrip = Areas._getAreaStat(area, 'areaEffectDesc')
local areaDescrip = Areas._getAreaStat(area, 'areaEffectDesc')
if areaDescrip ~= 'None' then
if areaDescrip ~= 'None' then
table.insert(resultPart, "'''"..areaDescrip.."'''")
txt = txt.." - ''"..areaDescrip.."''"
end
end
end
end
table.insert(resultPart, txt)
end
end
end
end