572
edits
(_getItemUses: Amend upgrade logic such that items aren't flagged as used in upgrades if they only are the result of an upgrade) |
(Add Township Tasks to _getItemUses) |
||
Line 37: | Line 37: | ||
Summoning = {'melvorD:Crown_of_Rhaelyx'}, | Summoning = {'melvorD:Crown_of_Rhaelyx'}, | ||
Thieving = {'melvorF:Chapeau_Noir', 'melvorF:Thieving_Gloves', 'melvorF:Gloves_of_Silence'}, | Thieving = {'melvorF:Chapeau_Noir', 'melvorF:Thieving_Gloves', 'melvorF:Gloves_of_Silence'}, | ||
Township = {}, | |||
Woodcutting = {}, | Woodcutting = {}, | ||
} | } | ||
Line 54: | Line 55: | ||
["AltMagic"] = Icons.Icon({'Alt. Magic', type='skill'}), | ["AltMagic"] = Icons.Icon({'Alt. Magic', type='skill'}), | ||
["ChargeStone"] = 'Powering ' .. Icons.Icon({'Crown of Rhaelyx', type='item'}), | ["ChargeStone"] = 'Powering ' .. Icons.Icon({'Crown of Rhaelyx', type='item'}), | ||
["Shop"] = Icons.Icon({'Shop'}) | ["Shop"] = Icons.Icon({'Shop'}), | ||
["TownshipTask"] = Icons.Icon({'Tasks', type='township'}) | |||
} | } | ||
Line 335: | Line 337: | ||
end | end | ||
-- Township Tasks | |||
for _, task in ipairs(SkillData.Township.tasks) do | |||
if task.goals.items[1] ~= nil then -- Skip tasks with no items | |||
if GameData.getEntityByID(task.goals.items, item.id) then | |||
addUse('TownshipTask') | |||
break | |||
end | |||
end | |||
end | |||
-- Generate result text | -- Generate result text | ||
local useArray = {} | local useArray = {} | ||
Line 741: | Line 753: | ||
'Mastery Token (Cooking)', | 'Mastery Token (Cooking)', | ||
'Gem Gloves', | 'Gem Gloves', | ||
'Basic Bag' | 'Basic Bag', | ||
'Bird Nest' | |||
} | } | ||
local checkFuncs = { | local checkFuncs = { |
edits