Prevent increasing a skill to beyond the game limit of 5100 points
This commit is contained in:
parent
3acd07c034
commit
25bfda0d56
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user