Make killing a traitor scav give positive fence rep
This commit is contained in:
parent
dbb4773622
commit
87229cc58d
@ -94,12 +94,13 @@ export class InRaidHelper
|
|||||||
let fenceStanding = existingFenceStanding;
|
let fenceStanding = existingFenceStanding;
|
||||||
for (const victim of victims)
|
for (const victim of victims)
|
||||||
{
|
{
|
||||||
|
let standingChangeForKill = this.getFenceStandingChangeForKillAsScav(victim);
|
||||||
if (victim.Name?.includes(")") && victim.Side === "Savage")
|
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);
|
const additionalLossForKill = this.getAdditionalLossForKill(fenceStanding, standingChangeForKill);
|
||||||
|
|
||||||
this.logger.warning(`rep change: ${standingChangeForKill} - additional: ${additionalLossForKill}`);
|
this.logger.warning(`rep change: ${standingChangeForKill} - additional: ${additionalLossForKill}`);
|
||||||
|
Loading…
Reference in New Issue
Block a user