Reset Sleeve task if faction becomes gang

This commit is contained in:
nickofolas 2022-04-24 20:25:09 -05:00
parent ab034f6f1a
commit d576d5e063

@ -519,6 +519,14 @@ export class Sleeve extends Person {
break;
}
// If the player has a gang with the faction the sleeve is working
// for, we need to reset the sleeve's task
if (p.gang) {
if (fac.name === p.gang.facName) {
this.resetTaskStatus();
}
}
fac.playerReputation += this.getRepGain(p) * cyclesUsed;
break;
}