mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-09-20 12:58:33 +02:00
Reset Sleeve task if faction becomes gang
This commit is contained in:
parent
ab034f6f1a
commit
d576d5e063
@ -519,6 +519,14 @@ export class Sleeve extends Person {
|
|||||||
break;
|
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;
|
fac.playerReputation += this.getRepGain(p) * cyclesUsed;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user