Module:Monsters: Difference between revisions

Added manual override for Into the Mist monster list for Afflicted Monsters
(Fixed bounds on coins being wrong)
(Added manual override for Into the Mist monster list for Afflicted Monsters)
Line 681: Line 681:
   local lastID = -1
   local lastID = -1
   local count = 0
   local count = 0
   for i, monsterID in pairs(area.monsters) do
   for i, monsterID in Shared.skpairs(area.monsters) do
     if monsterID ~= lastID then
     if monsterID ~= lastID then
       local monster = p.getMonsterByID(monsterID)
       local monster = p.getMonsterByID(monsterID)
       if lastMonster ~= nil then
       if lastMonster ~= nil then
         local name = lastMonster.name
         if lastID == 1 then
        if lastMonster.id == 51 then name = 'Spider2' end
          --Special handling for Afflicted Monsters
        table.insert(monsterList, Icons.Icon({name, type='monster', qty=count}))
          table.insert(monsterList, Icons.Icon({'Affliction', 'Afflicted Monster', img='Question'}))
        else
          local name = lastMonster.name
          if lastMonster.id == 51 then name = 'Spider2' end
          table.insert(monsterList, Icons.Icon({name, type='monster', qty=count}))
        end
       end
       end
       lastMonster = monster
       lastMonster = monster