Module:Shop: Difference between revisions

_getPurchaseType: Fix for pets
(getRequirementString: Fix completion req handling)
(_getPurchaseType: Fix for pets)
Line 273: Line 273:
if purchase.contains == nil then
if purchase.contains == nil then
return 'Unknown'
return 'Unknown'
elseif purchase.contains.pet ~= nil then
elseif purchase.contains.petID ~= nil then
return 'Pet'
return 'Pet'
elseif purchase.contains.itemCharges ~= nil then
elseif purchase.contains.itemCharges ~= nil then