Anonymous

Module:Monsters: Difference between revisions

From Melvor Idle
Add getBossMonsterTable for creating a table of boss monsters only
m (Remove debug logging)
(Add getBossMonsterTable for creating a table of boss monsters only)
Line 1,754: Line 1,754:
return p._getMonsterTable(monsterList, true)
return p._getMonsterTable(monsterList, true)
end
end
end
function p.getBossMonsterTable(frame)
local bosses = GameData.getEntities('monsters',
function(monster)
return monster.isBoss
end
)
return p._getMonsterTable(bosses, false)
end
end