892
edits
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( | 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*( | result.minQuantity = 10*(tierID+1) + 4 | ||
result.maxQuantity = 10*( | result.maxQuantity = 10*(tierID+1) + 4*slayerLevel | ||
return result | return result | ||
end | end |
edits