diff --git a/project/src/controllers/GameController.ts b/project/src/controllers/GameController.ts index 09bc4dea..71526642 100644 --- a/project/src/controllers/GameController.ts +++ b/project/src/controllers/GameController.ts @@ -97,7 +97,7 @@ export class GameController const fullProfile = this.profileHelper.getFullProfile(sessionID); const pmcProfile = fullProfile.characters.pmc; - this.logger.debug(`Started game with sessionId: ${sessionID}`); + this.logger.debug(`Started game with sessionId: ${sessionID} ${pmcProfile.Info?.Nickname}`); if (pmcProfile.Health) { diff --git a/project/src/helpers/InRaidHelper.ts b/project/src/helpers/InRaidHelper.ts index 0f0256b9..ec72147e 100644 --- a/project/src/helpers/InRaidHelper.ts +++ b/project/src/helpers/InRaidHelper.ts @@ -126,10 +126,7 @@ export class InRaidHelper public updateProfileBaseStats(profileData: IPmcData, saveProgressRequest: ISaveProgressRequestData, sessionID: string): IPmcData { // remove old skill fatigue - for (const skill of saveProgressRequest.profile.Skills.Common) - { - skill.PointsEarnedDuringSession = 0.0; - } + this.resetSkillPointsEarnedDuringRaid(saveProgressRequest.profile); // set profile data profileData.Info.Level = saveProgressRequest.profile.Info.Level; @@ -161,6 +158,14 @@ export class InRaidHelper return profileData; } + protected resetSkillPointsEarnedDuringRaid(profile: IPmcData): void + { + for (const skill of profile.Skills.Common) + { + skill.PointsEarnedDuringSession = 0.0; + } + } + /** * Take body part effects from client profile and apply to server profile * @param saveProgressRequest post-raid request