Anonymous

Module:Items/SourceTables: Difference between revisions

From Melvor Idle
Add Township tasks to _getItemSources
m (Changed Lost Chest level to acquire to 100 since it can't be obtained until buying the Corundum Fishing Rod at level 100 Fishing)
(Add Township tasks to _getItemSources)
Line 590: Line 590:
--Adding a special override for Deadly Toxins potions
--Adding a special override for Deadly Toxins potions
table.insert(lineArray, 'Brewing [[Lethal Toxins Potion]]s while wearing '..Icons.Icon({'Toxic Makers Gloves', type='item'}))
table.insert(lineArray, 'Brewing [[Lethal Toxins Potion]]s while wearing '..Icons.Icon({'Toxic Makers Gloves', type='item'}))
end
--Township Task reward
for _, task in ipairs(SkillData.Township.tasks) do
if task.rewards.items[1] ~= nil then -- Skip tasks with no items
if GameData.getEntityByID(task.rewards.items, item.id) then
table.insert(lineArray, Icons.Icon({'Tasks', type='township'}))
break
end
end
end
end


Line 1,053: Line 1,063:
'Mastery Token (Cooking)',
'Mastery Token (Cooking)',
'Gem Gloves',
'Gem Gloves',
"Thief's Moneysack"
"Thief's Moneysack",
"Golden Stardust"
}
}
local checkFuncs = {
local checkFuncs = {
572

edits