Module:Monsters: Difference between revisions

From Melvor Idle
(Added icon for normal attack when doing the override)
(Changed handling on Into the Mist (hopefully this works))
Line 759: Line 759:
       local name = monster.name
       local name = monster.name
       if monsterID == 51 then name = 'Spider2' end
       if monsterID == 51 then name = 'Spider2' end
       if monsterID ~= 1 then
       if monsterID >= 0 then
         tableTxt = tableTxt..'\r\n|-\r\n|'..Icons.Icon({name, type='monster'})
         tableTxt = tableTxt..'\r\n|-\r\n|'..Icons.Icon({name, type='monster'})
         tableTxt = tableTxt..'||'..p._getMonsterCombatLevel(monster)
         tableTxt = tableTxt..'||'..p._getMonsterCombatLevel(monster)
Line 800: Line 800:
       local monster = p.getMonsterByID(monsterID)
       local monster = p.getMonsterByID(monsterID)
       if lastMonster ~= nil then
       if lastMonster ~= nil then
         if lastID == 1 then
         if lastID == -1 then
           --Special handling for Afflicted Monsters
           --Special handling for Afflicted Monsters
           table.insert(monsterList, Icons.Icon({'Affliction', 'Afflicted Monster', img='Question', qty=count}))
           table.insert(monsterList, Icons.Icon({'Affliction', 'Afflicted Monster', img='Question', qty=count}))