From 87229cc58d3a84d5fca00daf3e37582fbaebdb5c Mon Sep 17 00:00:00 2001 From: Dev Date: Fri, 16 Feb 2024 15:11:09 +0000 Subject: [PATCH] Make killing a traitor scav give positive fence rep --- project/src/helpers/InRaidHelper.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/project/src/helpers/InRaidHelper.ts b/project/src/helpers/InRaidHelper.ts index edca7886..4a0454b4 100644 --- a/project/src/helpers/InRaidHelper.ts +++ b/project/src/helpers/InRaidHelper.ts @@ -94,12 +94,13 @@ export class InRaidHelper let fenceStanding = existingFenceStanding; for (const victim of victims) { + let standingChangeForKill = this.getFenceStandingChangeForKillAsScav(victim); if (victim.Name?.includes(")") && victim.Side === "Savage") { - continue; + // Make value positive if traitor scav + standingChangeForKill = Math.abs(standingChangeForKill); } - const standingChangeForKill = this.getFenceStandingChangeForKillAsScav(victim); const additionalLossForKill = this.getAdditionalLossForKill(fenceStanding, standingChangeForKill); this.logger.warning(`rep change: ${standingChangeForKill} - additional: ${additionalLossForKill}`);