4,660
edits
(Fixed purchaseContents being hardcoded to GP) |
(Fixed error) |
||
Line 215: | Line 215: | ||
local item = Items.getItemByID(itemLine.id) | local item = Items.getItemByID(itemLine.id) | ||
local itemQty = itemLine.quantity | local itemQty = itemLine.quantity | ||
currency = item.sellsForCurrency | if item.sellsForCurrency ~= nil then | ||
currency = item.sellsForCurrency | |||
end | |||
if asList then | if asList then | ||
table.insert(containArray, Icons.Icon({item.name, type='item', qty=itemQty})) | table.insert(containArray, Icons.Icon({item.name, type='item', qty=itemQty})) | ||
Line 230: | Line 232: | ||
local gloveItem = Items.getItemByID(purchase.contains.itemCharges.id) | local gloveItem = Items.getItemByID(purchase.contains.itemCharges.id) | ||
local chargeQty = purchase.contains.itemCharges.quantity | local chargeQty = purchase.contains.itemCharges.quantity | ||
currency = | if item.sellsForCurrency ~= nil then | ||
currency = item.sellsForCurrency | |||
end | |||
if gloveItem ~= nil then | if gloveItem ~= nil then | ||
if asList then | if asList then |