Skip to content

Commit

Permalink
fix: xp should keep adding levels when there's enough
Browse files Browse the repository at this point in the history
  • Loading branch information
Mees committed Oct 17, 2024
1 parent e6ad399 commit 27c410d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/stores/trainingStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,7 @@ export const useTrainingStore = defineStore({
training.level++
training.xp -= training.xpToNextLevel
training.xpToNextLevel = this.getXpToNextLevel(training.level)
if (training.xp >= training.xpToNextLevel) this.addLevel(skill)

if (skill === Skill.Mining) this.checkMiningMilestones()
if (skill === Skill.Foraging) this.checkForagingMilestones()
Expand Down

0 comments on commit 27c410d

Please sign in to comment.