16,254
edits
(getSeasonTable: Hide Easter egg season) |
(Fix monster name logic) |
||
Line 2: | Line 2: | ||
local Icons = require('Module:Icons') | local Icons = require('Module:Icons') | ||
local Items = require('Module:Items') | local Items = require('Module:Items') | ||
local Monsters = require('Module:Monsters') | |||
local Shop = require('Module:Shop') | local Shop = require('Module:Shop') | ||
local GameData = require('Module:GameData') | local GameData = require('Module:GameData') | ||
Line 769: | Line 770: | ||
end | end | ||
for _, monster in ipairs(task.goals.monsters) do | for _, monster in ipairs(task.goals.monsters) do | ||
local monstername = | local monstername = Monsters.getMonsterName(Monsters.getMonster(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 | ||
Line 894: | Line 895: | ||
end | end | ||
if referenceType == 'monster' then | if referenceType == 'monster' then | ||
IDs[ | IDs[Monsters.getMonster(referenceName).id] = true | ||
end | end | ||
return IDs | return IDs |