Skip to content

Commit

Permalink
fix(stats/slayer): incorrect xpForNext
Browse files Browse the repository at this point in the history
  • Loading branch information
DuckySoLucky committed Jul 14, 2024
1 parent 963e2f2 commit d5919a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/lib/constants/NotEnoughUpdates-REPO
Submodule NotEnoughUpdates-REPO updated 60 files
+103 −1 constants/dyes.json
+30 −1 constants/sacks.json
+5 −1 items/AMBER_NECKLACE.json
+5 −1 items/AMETHYST_GAUNTLET.json
+4 −1 items/ANGLER_DEEP_SEA.json
+4 −1 items/ARMADILLO_MASK.json
+4 −1 items/ARTIFACT_OF_COINS.json
+5 −1 items/AVARICIOUS_CHALICE.json
+5 −1 items/BEACH_BALL_BARN_SKIN.json
+4 −1 items/BEACH_BALL_FLUX.json
+4 −1 items/BEE_MASK.json
+5 −1 items/BLOOD_SOAKED_COINS.json
+5 −1 items/BLOOD_STAINED_COINS.json
+5 −1 items/BROWN_BANDANA.json
+5 −1 items/CARNIVAL_MASK_BAG.json
+5 −1 items/CARNIVAL_TICKET.json
+4 −1 items/CROWN_OF_AVARICE.json
+5 −1 items/DIVAN_POWDER_COATING.json
+22 −0 items/DYE_PORTAL.json
+5 −1 items/EMERALD_ARTIFACT.json
+5 −1 items/FINE_FLOUR.json
+5 −1 items/FRESHLY_MINTED_COINS.json
+4 −1 items/FROG_MASK.json
+5 −1 items/GLEAMING_CRYSTAL.json
+6 −1 items/GLOSSY_GEMSTONE.json
+5 −1 items/GLOSSY_MINERAL_BOOTS.json
+5 −1 items/GLOSSY_MINERAL_CHESTPLATE.json
+5 −1 items/GLOSSY_MINERAL_HELMET.json
+5 −1 items/GLOSSY_MINERAL_LEGGINGS.json
+5 −1 items/GLOSSY_MINERAL_TALISMAN.json
+5 −1 items/GOLDEN_BOUNTY.json
+5 −1 items/GOLDEN_FRAGMENT.json
+4 −1 items/HAMBAGGER_BACKPACK.json
+5 −1 items/JADE_BELT.json
+5 −1 items/LARGE_EVENTS_SACK.json
+5 −1 items/MITHRIL_BELT.json
+5 −1 items/MITHRIL_CLOAK.json
+5 −1 items/MITHRIL_GAUNTLET.json
+5 −1 items/MITHRIL_NECKLACE.json
+4 −1 items/PARROT_MASK.json
+5 −1 items/PARTY_GIFT.json
+5 −1 items/PEST_VEST.json
+5 −1 items/PET_SKIN_BLAZE_PLUSHIE.json
+5 −1 items/PET_SKIN_BLUE_WHALE_PLUSHIE.json
+4 −1 items/PET_SKIN_FLYING_FISH_HARLEQUIN.json
+5 −1 items/PET_SKIN_WOLF_DOGE_PLUSHIE.json
+4 −1 items/REKINDLED_EMBER_BURNING.json
+4 −1 items/RELIC_OF_COINS.json
+4 −1 items/RING_OF_COINS.json
+4 −1 items/SALMON_MASK.json
+5 −1 items/SAND_CASTLE_BARN_SKIN.json
+5 −1 items/SAPPHIRE_CLOAK.json
+5 −1 items/SCAVENGER_ARTIFACT.json
+5 −1 items/SCAVENGER_RING.json
+4 −1 items/STARLIGHT_STARKNIGHT.json
+5 −1 items/TITANIUM_BELT.json
+5 −1 items/TITANIUM_CLOAK.json
+5 −1 items/TITANIUM_GAUNTLET.json
+5 −1 items/TITANIUM_NECKLACE.json
+4 −1 items/ZOMBIE_MASK.json
4 changes: 2 additions & 2 deletions src/lib/stats/slayer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
};
}
Expand All @@ -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,
Expand Down

0 comments on commit d5919a5

Please sign in to comment.