17,370
edits
Falterfire (talk | contribs) (Added qty to getItemSourceArray/getItemCostArray to save time) |
(Remove special handling of Cape of Completion, as now exists within shop data) |
||
Line 8: | Line 8: | ||
local Constants = require('Module:Constants') | local Constants = require('Module:Constants') | ||
local Areas = require('Module:CombatAreas') | local Areas = require('Module:CombatAreas') | ||
function p.processPurchase(category, purchaseID) | function p.processPurchase(category, purchaseID) | ||
Line 90: | Line 76: | ||
table.insert(reqArray, Icons.Icon({purchase.name, type=(isUpgrade and 'upgrade' or 'item')})..' Purchased') | table.insert(reqArray, Icons.Icon({purchase.name, type=(isUpgrade and 'upgrade' or 'item')})..' Purchased') | ||
end | end | ||
end | |||
if reqs.completionPercentage ~= nil then | |||
table.insert(reqArray, tostring(reqs.completionPercentage) .. '% Completion Log') | |||
end | end | ||
Line 180: | Line 170: | ||
end | end | ||
end | end | ||
end | end | ||