aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build/cleaners/skyblock/skills.js2
-rw-r--r--src/cleaners/skyblock/skills.ts2
2 files changed, 2 insertions, 2 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
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)