diff options
author | mat <github@matdoes.dev> | 2021-06-02 17:35:48 -0500 |
---|---|---|
committer | mat <github@matdoes.dev> | 2021-06-02 17:35:48 -0500 |
commit | 1894126287af5fc584a2b65b27604c776e0b24f2 (patch) | |
tree | b15ae839fe4b739c2fc46cfe97dc728e10a162b3 /src | |
parent | 30861e348644f72bc198834bd4640ee91f86bc9f (diff) | |
download | skyblock-api-1894126287af5fc584a2b65b27604c776e0b24f2.tar.gz skyblock-api-1894126287af5fc584a2b65b27604c776e0b24f2.tar.bz2 skyblock-api-1894126287af5fc584a2b65b27604c776e0b24f2.zip |
slice xpTable at max level
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 04f3002..7aa4e2c 100644 --- a/src/cleaners/skyblock/skills.ts +++ b/src/cleaners/skyblock/skills.ts @@ -146,7 +146,7 @@ export async function cleanSkills(data: any): Promise<Skill[]> { const skillMaxLevel = skillsMaxLevel[skillName] ?? skillsDefaultMaxLevel - const xpTable = skillMaxLevel <= 25 ? skillXpTableEasier : skillXpTable + const xpTable = (skillMaxLevel <= 25 ? skillXpTableEasier : skillXpTable).slice(0, skillMaxLevel) // the level you're at for this skill const skillLevel = levelForSkillXp(skillXp, skillMaxLevel) |