4,951
edits
m (Correct description typos) |
Falterfire (talk | contribs) (Fixed a bug with getSlayerTierNameByLevel) |
||
Line 400: | Line 400: | ||
function p.getSlayerTierNameByLevel(lvl) | function p.getSlayerTierNameByLevel(lvl) | ||
for i, tier in Shared.skpairs(ConstantData.Slayer.Tiers) do | for i, tier in Shared.skpairs(ConstantData.Slayer.Tiers) do | ||
if tier.minLevel <= lvl and (tier.maxLevel | if tier.minLevel <= lvl and (tier.maxLevel == nil or tier.maxLevel >= lvl) then | ||
return tier.display | return tier.display | ||
end | end |