Make killing a traitor scav give positive fence rep

This commit is contained in:
Dev 2024-02-16 15:11:09 +00:00
parent dbb4773622
commit 87229cc58d

View File

@ -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}`);