17,097
edits
Falterfire (talk | contribs) (changed wording on items column to 'item cost') |
(_getItemUses: Amend upgrade logic such that items aren't flagged as used in upgrades if they only are the result of an upgrade) |
||
Line 141: | Line 141: | ||
end | end | ||
-- | -- Is the item a cost in an upgrade? | ||
for i, upgrade in ipairs(GameData.rawData.itemUpgrades) do | for i, upgrade in ipairs(GameData.rawData.itemUpgrades) do | ||
for j, itemCost in ipairs(upgrade.itemCosts) do | |||
if itemCost.id == item.id then | |||
addUse('Upgrade') | |||
table.insert(categoryArray, '[[Category:Upgradeable Items]]') | |||
break | |||
end | end | ||
end | end | ||
Line 156: | Line 153: | ||
break | break | ||
end | end | ||
end | end | ||