diff --git a/src/lib/constants/NotEnoughUpdates-REPO b/src/lib/constants/NotEnoughUpdates-REPO index 7e67c37c..9ab22630 160000 --- a/src/lib/constants/NotEnoughUpdates-REPO +++ b/src/lib/constants/NotEnoughUpdates-REPO @@ -1 +1 @@ -Subproject commit 7e67c37ce92cf8a7be4cf09ce594fda148dbffc9 +Subproject commit 9ab226302fe724f91ad60eeafe915f47f5e60264 diff --git a/src/lib/stats/slayer.ts b/src/lib/stats/slayer.ts index b76e85aa..a1b9b1eb 100644 --- a/src/lib/stats/slayer.ts +++ b/src/lib/stats/slayer.ts @@ -27,7 +27,7 @@ function getLevel(slayer: string, data: SlayerBoss) { level: 0, maxLevel: 0, xpCurrent: 0, - xpForNext: 0, + xpForNext: constants.SLAYER_XP[slayer] ? constants.SLAYER_XP[slayer]["1"] : 0, maxed: false }; } @@ -37,7 +37,7 @@ function getLevel(slayer: string, data: SlayerBoss) { const maxLevel = Object.keys(constants.SLAYER_XP[slayer]).length; for (const [level, xp] of reversed) { if (data.xp > xp) { - const xpForNext = xp; + const xpForNext = constants.SLAYER_XP[slayer][parseInt(level) + 1]; return { xp: data.xp, xpForNext,