Anonymous

Module:Shop: Difference between revisions

From Melvor Idle
m
Fix typo
(_getPurchaseContents: Ensure GP alignment is left in all cases)
m (Fix typo)
(2 intermediate revisions by the same user not shown)
Line 3: Line 3:
local ShopData = mw.loadData('Module:Shop/data')
local ShopData = mw.loadData('Module:Shop/data')
local ConstantData = mw.loadData('Module:Constants/data')
local ConstantData = mw.loadData('Module:Constants/data')
-- Data instead of Module:CombatAreas to avoid loop whne that module attempts to require Module:Shop
-- Data instead of Module:CombatAreas to avoid loop when that module attempts to require Module:Shop
local AreaData = require('Module:CombatAreas/data')
local AreaData = require('Module:CombatAreas/data')


Line 55: Line 55:
elseif stat == 'type' then
elseif stat == 'type' then
return p._getPurchaseType(purchase)
return p._getPurchaseType(purchase)
elseif stat == 'buyLimit' then
return p._getPurchaseBuyLimit(purchase, not displayInline)
else
else
return purchase[stat]
return purchase[stat]