aboutsummaryrefslogtreecommitdiff
path: root/build/cleaners
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2021-06-02 17:35:48 -0500
committermat <github@matdoes.dev>2021-06-02 17:35:48 -0500
commit1894126287af5fc584a2b65b27604c776e0b24f2 (patch)
treeb15ae839fe4b739c2fc46cfe97dc728e10a162b3 /build/cleaners
parent30861e348644f72bc198834bd4640ee91f86bc9f (diff)
downloadskyblock-api-1894126287af5fc584a2b65b27604c776e0b24f2.tar.gz
skyblock-api-1894126287af5fc584a2b65b27604c776e0b24f2.tar.bz2
skyblock-api-1894126287af5fc584a2b65b27604c776e0b24f2.zip
slice xpTable at max level
Diffstat (limited to 'build/cleaners')
-rw-r--r--build/cleaners/skyblock/skills.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/cleaners/skyblock/skills.js b/build/cleaners/skyblock/skills.js
index 124e8d9..2518d60 100644
--- a/build/cleaners/skyblock/skills.js
+++ b/build/cleaners/skyblock/skills.js
@@ -128,7 +128,7 @@ async function cleanSkills(data) {
// the amount of total xp you have in this skill
const skillXp = data[item];
const skillMaxLevel = (_a = skillsMaxLevel[skillName]) !== null && _a !== void 0 ? _a : 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);
// the total xp required for the previous level