Anonymous

Module:Monsters: Difference between revisions

From Melvor Idle
_getAfflictedMonsterIdList: Remove in favour of game data (AreaData.itm.monsters)
m (added _getAfflictedMonsterIdList)
(_getAfflictedMonsterIdList: Remove in favour of game data (AreaData.itm.monsters))
Line 1,519: Line 1,519:


return table.concat(resultPart)
return table.concat(resultPart)
end
function p._getAfflictedMonsterIdList()
idlist = {}
banned = {159, 160}
local darkwaters = Areas.getArea("Dark Waters")
for i, id in ipairs(darkwaters.monsters) do
table.insert(banned, id)
end
for i, monster in ipairs(MonsterData.Monsters) do
ok = true
for _, id in Shared.skpairs(banned) do
if monster.id == id then
ok = false
end
end
if ok then
local lvl = p._getMonsterCombatLevel(monster)
if lvl >= 165 and lvl <= 677 then
table.insert(idlist, monster.id)
end
end
end
return idlist
end
end


return p
return p