From 25bfda0d569a885af40e415539b89fc2c0fcb8b4 Mon Sep 17 00:00:00 2001 From: Dev Date: Mon, 11 Dec 2023 11:43:30 +0000 Subject: [PATCH] Prevent increasing a skill to beyond the game limit of 5100 points --- project/src/helpers/ProfileHelper.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/project/src/helpers/ProfileHelper.ts b/project/src/helpers/ProfileHelper.ts index c859226f..ff8f49dd 100644 --- a/project/src/helpers/ProfileHelper.ts +++ b/project/src/helpers/ProfileHelper.ts @@ -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(); }