17,097
edits
(_getShopTable: Allow suppression of stickyHeader class) |
(_getPurchaseName: Support itemCharges/gloves) |
||
Line 82: | Line 82: | ||
if purch.contains.items ~= nil and not Shared.tableIsEmpty(purch.contains.items) then | if purch.contains.items ~= nil and not Shared.tableIsEmpty(purch.contains.items) then | ||
local item = Items.getItemByID(purch.contains.items[1].id) | local item = Items.getItemByID(purch.contains.items[1].id) | ||
if item ~= nil then | |||
return item.name | |||
end | |||
elseif purch.contains.itemCharges ~= nil and not Shared.tableIsEmpty(purch.contains.itemCharges) then | |||
local item = Items.getItemByID(purch.contains.itemCharges[1].id) | |||
if item ~= nil then | if item ~= nil then | ||
return item.name | return item.name |