Anonymous

Module:Township: Difference between revisions

From Melvor Idle
Fix monster lookup
(Fix monster name logic)
(Fix monster lookup)
Line 770: Line 770:
end
end
for _, monster in ipairs(task.goals.monsters) do
for _, monster in ipairs(task.goals.monsters) do
local monstername = Monsters.getMonsterName(Monsters.getMonster(monster.id))
local monstername = Monsters.getMonsterName(Monsters.getMonsterByID(monster.id))
table.insert(requirements, Shared.formatnum(monster.quantity)..' '..Icons.Icon({monstername, type='monster'}))
table.insert(requirements, Shared.formatnum(monster.quantity)..' '..Icons.Icon({monstername, type='monster'}))
end
end