4,951
edits
Falterfire (talk | contribs) (Fixed bounds on coins being wrong) |
Falterfire (talk | contribs) (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 | 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 | ||
--Special handling for Afflicted Monsters | |||
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 |