Anonymous

Module:Shop: Difference between revisions

From Melvor Idle
m
Fix typo
(_getPurchaseStat: Add stat 'buyLimit')
m (Fix typo)
(One intermediate revision 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 56: Line 56:
return p._getPurchaseType(purchase)
return p._getPurchaseType(purchase)
elseif stat == 'buyLimit' then
elseif stat == 'buyLimit' then
return p._getPurchaseBuyLimit(purchase, displayInline)
return p._getPurchaseBuyLimit(purchase, not displayInline)
else
else
return purchase[stat]
return purchase[stat]