Anonymous

Module:Monsters: Difference between revisions

From Melvor Idle
Added p.getExpansionIcon
(Added p._getMonsterDrReduction)
(Added p.getExpansionIcon)
Line 1,570: Line 1,570:
end
end
return table.concat(outArray, "\r\n")
return table.concat(outArray, "\r\n")
end
--Returns the expansion icon for the item if it has one
function p.getExpansionIcon(frame)
local monsterName = frame.args ~= nil and frame.args[1] or frame
local monster = p.getMonster(monsterName)
if monster == nil then
return "ERROR: No monster with that name found[[Category:Pages with script errors]]"
end
return Icons.getExpansionIcon(monster.id)
end
end


return p
return p