From cd8d6eaecf38a5b5f73621fe9943a7f6fbf5cb57 Mon Sep 17 00:00:00 2001 From: Kaeno Date: Mon, 25 Mar 2024 07:28:24 +0000 Subject: [PATCH] Update Scav fence rep after using a carextract to keep profiles in sync --- project/src/controllers/MatchController.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/project/src/controllers/MatchController.ts b/project/src/controllers/MatchController.ts index 2928bbec..4869e4b8 100644 --- a/project/src/controllers/MatchController.ts +++ b/project/src/controllers/MatchController.ts @@ -313,6 +313,10 @@ export class MatchController this.logger.debug( `Car extract: ${extractName} used, total times taken: ${pmcData.CarExtractCounts[extractName]}`, ); + // Copy updated fence rep values into scav profile to ensure consistency + const scavData: IPmcData = this.profileHelper.getScavProfile(sessionId); + scavData.TradersInfo[fenceId].standing = pmcData.TradersInfo[fenceId].standing; + scavData.TradersInfo[fenceId].loyaltyLevel = pmcData.TradersInfo[fenceId].loyaltyLevel; } /**