diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/cleaners/skyblock/skills.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cleaners/skyblock/skills.ts b/src/cleaners/skyblock/skills.ts index 40c1e3c..04f3002 100644 --- a/src/cleaners/skyblock/skills.ts +++ b/src/cleaners/skyblock/skills.ts @@ -130,7 +130,7 @@ const skillsDefaultMaxLevel: number = 50 * @param easierLevel Whether it should use the alternate leveling xp table (used for cosmetic skills and dungeoneering) */ export function levelForSkillXp(xp: number, maxLevel: number) { - const xpTable = maxLevel <= 25 ? skillXpTableEasier : skillXpTable + const xpTable = (maxLevel <= 25 ? skillXpTableEasier : skillXpTable).slice(0, maxLevel) const skillLevel = [...xpTable].reverse().findIndex(levelXp => xp >= levelXp) return skillLevel === -1 ? 0 : xpTable.length - skillLevel } |