Prevent increasing a skill to beyond the game limit of 5100 points

This commit is contained in:
Dev 2023-12-11 11:43:30 +00:00
parent 3acd07c034
commit 25bfda0d56

View File

@ -424,6 +424,7 @@ export class ProfileHelper
}
profileSkill.Progress += pointsToAdd;
profileSkill.Progress = Math.min(profileSkill.Progress, 5100); // Prevent skill from ever going above level 51 (5100)
profileSkill.LastAccess = this.timeUtil.getTimestamp();
}