Module:Monsters: Difference between revisions

typing iz hard
(Reorganizing to hopefully fix issue with boss monsters getting left out)
(typing iz hard)
Line 612: Line 612:
     end
     end
     --Make sure the final monster in the dungeon gets counted
     --Make sure the final monster in the dungeon gets counted
     if i == Shared.tableCount(monsterList) then
     if i == Shared.tableCount(area.monsters) then
       local name = lastMonster.name
       local name = lastMonster.name
       table.insert(monsterList, Icons.Icon({lastMonster.name, type='monster', qty=count}))
       table.insert(monsterList, Icons.Icon({lastMonster.name, type='monster', qty=count}))