Anonymous

Module:Shop: Difference between revisions

From Melvor Idle
no edit summary
No edit summary
No edit summary
Line 588: Line 588:
end
end


function p.getPurchaseDescription(purchaseName)
function p.getPurchaseDescription(frame)
local purchase = p.getPurchase(purchaseName)
local itemName = frame.args ~= nil and frame.args[1] or frame
local purchase = p.getPurchase(itemName)
if purchase == nil then
if purchase == nil then
return ''
return ''
2,875

edits