Module:Pets: Difference between revisions

_getPetSourceText: Fix combat area icon types
m (Added Strongholds and AbyssDepths into areaDataKeys)
(_getPetSourceText: Fix combat area icon types)
Line 99: Line 99:
local petSource = p._getPetSource(pet)
local petSource = p._getPetSource(pet)
if petSource ~= nil then
if petSource ~= nil then
iconType = (petSource.type == 'slayerArea' and 'combatArea') or petSource.type
iconType = (petSource.type == 'dungeon' and 'dungeon') or 'combatArea'
petSourceText = petSource.name
petSourceText = petSource.name
else
else