Update Scav fence rep after using a carextract to keep profiles in sync

This commit is contained in:
Kaeno 2024-03-25 07:28:24 +00:00
parent 4f3fecac61
commit cd8d6eaecf

View File

@ -313,6 +313,10 @@ export class MatchController
this.logger.debug( this.logger.debug(
`Car extract: ${extractName} used, total times taken: ${pmcData.CarExtractCounts[extractName]}`, `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;
} }
/** /**