Anonymous

Module:Shop: Difference between revisions

From Melvor Idle
Fix itemCharges reference
(_getPurchaseName: Support itemCharges/gloves)
(Fix itemCharges reference)
Line 86: Line 86:
             end
             end
         elseif purch.contains.itemCharges ~= nil and not Shared.tableIsEmpty(purch.contains.itemCharges) then
         elseif purch.contains.itemCharges ~= nil and not Shared.tableIsEmpty(purch.contains.itemCharges) then
         local item = Items.getItemByID(purch.contains.itemCharges[1].id)
         local item = Items.getItemByID(purch.contains.itemCharges.id)
             if item ~= nil then
             if item ~= nil then
                 return item.name
                 return item.name