Module:Monsters: Difference between revisions

actual fix to into the mist problem
(Added override for afflicted monsters for Into the Mist)
(actual fix to into the mist problem)
Line 570: Line 570:
       local name = monster.name
       local name = monster.name
       if monsterID == 51 then name = 'Spider2' end
       if monsterID == 51 then name = 'Spider2' end
       if monsterID ~= 0 then
       if monsterID ~= 1 then
        --Special handling for Into the Mist
         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(name)
         tableTxt = tableTxt..'||'..p.getMonsterCombatLevel(name)
Line 579: Line 578:
         tableTxt = tableTxt..'||'..monsterCounts[monsterID]
         tableTxt = tableTxt..'||'..monsterCounts[monsterID]
       else
       else
        --Special handling for Into the Mist
         tableTxt = tableTxt..'\r\n|-\r\n|'..Icons.Icon({'Into the Mist', 'Random Afflicted Monster', nolink=true, img='Question'})
         tableTxt = tableTxt..'\r\n|-\r\n|'..Icons.Icon({'Into the Mist', 'Random Afflicted Monster', nolink=true, img='Question'})
         tableTxt = tableTxt..'||data-sort-value="0"|?'
         tableTxt = tableTxt..'||data-sort-value="0"|?'