892
edits
m (plural typo) |
m (minmax quantities) |
||
Line 416: | Line 416: | ||
--- Slayer functions | --- Slayer functions | ||
-- | -- | ||
function p.getSlayerTierByID(tierID) -- returns a full table | function p.getSlayerTierByID(tierID, slayerLevel) -- returns a full table | ||
if slayerLevel == nil then | |||
slayerLevel = 99 -- this might upgrade to 120 in some update | |||
end | |||
if not type(tier) == 'number' then | if not type(tier) == 'number' then | ||
return nil | return nil | ||
Line 424: | 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.maxQuantity = 10*(tier+1) + 4*slayerLevel | |||
return result | return result | ||
end | end |
edits