4,683
edits
mNo edit summary |
mNo edit summary |
||
Line 232: | 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 | ||
if gloveItem ~= nil then | if gloveItem ~= nil then | ||
if gloveItem.sellsForCurrency ~= nil then | |||
currency = gloveItem.sellsForCurrency | |||
end | |||
if asList then | if asList then | ||
table.insert(containArray, '+'..Shared.formatnum(chargeQty)..' '..Icons.Icon({gloveItem.name, type='item'})..' Charges') | table.insert(containArray, ' +'..Shared.formatnum(chargeQty)..' '..Icons.Icon({gloveItem.name, type='item'})..' Charges') | ||
else | else | ||
table.insert(containArray, '|-\r\n| class="table-img"| ' .. Icons.Icon({gloveItem.name, type='item', notext=true})) | table.insert(containArray, '|-\r\n| class="table-img"| ' .. Icons.Icon({gloveItem.name, type='item', notext=true})) |