diff --git a/project/src/models/eft/match/IEndLocalRaidRequestData.ts b/project/src/models/eft/match/IEndLocalRaidRequestData.ts index e1a99321..81f657e2 100644 --- a/project/src/models/eft/match/IEndLocalRaidRequestData.ts +++ b/project/src/models/eft/match/IEndLocalRaidRequestData.ts @@ -15,14 +15,15 @@ export interface IEndLocalRaidRequestData { export interface IEndRaidResult { profile: IPmcData; - /** "Survived/Transit etc" */ + /** "Survived/Transit" etc */ result: string; - ExitStatus: ExitStatus; killerId: string; killerAid: string; + /** "Gate 3" etc */ exitName: string; inSession: boolean; favorite: boolean; + /** Seconds in raid */ playTime: number; } diff --git a/project/src/services/LocationLifecycleService.ts b/project/src/services/LocationLifecycleService.ts index 93ee6250..cd08bd2e 100644 --- a/project/src/services/LocationLifecycleService.ts +++ b/project/src/services/LocationLifecycleService.ts @@ -579,11 +579,16 @@ export class LocationLifecycleService { this.applyTraderStandingAdjustments(scavProfile.TradersInfo, request.results.profile.TradersInfo); // Clamp fence standing within -7 to 15 range + const fenceMax = 15; + const fenceMin = -7; const currentFenceStanding = request.results.profile.TradersInfo[Traders.FENCE].standing; - scavProfile.TradersInfo[Traders.FENCE].standing = Math.min(Math.max(currentFenceStanding, -7), 15); + scavProfile.TradersInfo[Traders.FENCE].standing = Math.min(Math.max(currentFenceStanding, fenceMin), fenceMax); // Successful extract as scav, give some rep - if (request.results.ExitStatus === ExitStatus.SURVIVED) { + if ( + request.results.result.toLowerCase() === "survived" && + scavProfile.TradersInfo[Traders.FENCE].standing < fenceMax + ) { scavProfile.TradersInfo[Traders.FENCE].standing += this.inRaidConfig.scavExtractStandingGain; }