diff --git a/project/src/controllers/MatchController.ts b/project/src/controllers/MatchController.ts index acabb378..539ddb3a 100644 --- a/project/src/controllers/MatchController.ts +++ b/project/src/controllers/MatchController.ts @@ -169,6 +169,9 @@ export class MatchController const pmcData: IPmcData = this.profileHelper.getPmcProfile(sessionId); const extractName = info.exitName; + // Save time spent in raid + pmcData.Stats.TotalInGameTime += info.raidSeconds; + // clean up cached bots now raid is over this.botGenerationCacheService.clearStoredBots(); @@ -182,7 +185,7 @@ export class MatchController } /** - * Is extract by car + * Was extract by car * @param extractName name of extract * @returns true if car extract */ diff --git a/project/src/helpers/ProfileHelper.ts b/project/src/helpers/ProfileHelper.ts index 1ead93bb..dbc22b3d 100644 --- a/project/src/helpers/ProfileHelper.ts +++ b/project/src/helpers/ProfileHelper.ts @@ -247,6 +247,10 @@ export class ProfileHelper return this.saveServer.getProfile(sessionID).characters.scav; } + /** + * Get baseline counter values for a fresh profile + * @returns Stats + */ public getDefaultCounters(): Stats { return {