Module:Constants: Difference between revisions

m
tier => tierID
m (minmax quantities)
m (tier => tierID)
Line 420: Line 420:
slayerLevel = 99 -- this might upgrade to 120 in some update
slayerLevel = 99 -- this might upgrade to 120 in some update
end
end
if not type(tier) == 'number' then
if not type(tierID) == 'number' then
return nil
return nil
elseif ConstantData.Slayer.Tiers[tierID + 1] == nil then
elseif ConstantData.Slayer.Tiers[tierID + 1] == nil then
Line 427: Line 427:
local result = Shared.clone(ConstantData.Slayer.Tiers[tierID + 1])
local result = Shared.clone(ConstantData.Slayer.Tiers[tierID + 1])
result.id = tierID
result.id = tierID
result.minQuantity = 10*(tier+1) + 4
result.minQuantity = 10*(tierID+1) + 4
result.maxQuantity = 10*(tier+1) + 4*slayerLevel
result.maxQuantity = 10*(tierID+1) + 4*slayerLevel
return result
return result
end
end
892

edits