Update Scav fence rep after using a carextract to keep profiles in sync
This commit is contained in:
parent
4f3fecac61
commit
cd8d6eaecf
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user