diff --git a/project/src/services/ProfileFixerService.ts b/project/src/services/ProfileFixerService.ts index e4dff527..20d1fe2d 100644 --- a/project/src/services/ProfileFixerService.ts +++ b/project/src/services/ProfileFixerService.ts @@ -157,6 +157,11 @@ export class ProfileFixerService } } + if (pmcProfile.Skills) + { + this.checkForSkillsOverMaxLevel(pmcProfile); + } + this.fixNullTraderSalesSums(pmcProfile); this.fixNullTraderNextResupply(pmcProfile); this.updateProfileQuestDataValues(pmcProfile); @@ -171,6 +176,23 @@ export class ProfileFixerService this.updateProfileQuestDataValues(scavProfile); } + /** + * Check for and cap profile skills at 5100. + * @param pmcProfile profile to check and fix + */ + protected checkForSkillsOverMaxLevel(pmcProfile: IPmcData): void + { + const skills = pmcProfile.Skills.Common; + + for (let skill of skills) + { + if (skill.Progress > 5100) + { + skill.Progress = 5100; + } + } + } + protected addMissingGunStandContainerImprovements(pmcProfile: IPmcData): void { const weaponStandArea = pmcProfile.Hideout.Areas.find((x) => x.type === HideoutAreas.WEAPON_STAND);