Anonymous

Module:Shop: Difference between revisions

From Melvor Idle
m
no edit summary
(Fixed error)
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 item.sellsForCurrency ~= nil then
if gloveItem.sellsForCurrency ~= nil then
currency = item.sellsForCurrency
currency = gloveItem.sellsForCurrency
end
end
if gloveItem ~= nil then
if gloveItem ~= nil then