mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-26 17:43:48 +01:00
Sleeve crime kills add to numPeopleKilled (#413)
This commit is contained in:
parent
b9ffb9e42e
commit
d7380a9243
@ -42,8 +42,10 @@ export class SleeveCrimeWork extends Work {
|
|||||||
const crime = this.getCrime();
|
const crime = this.getCrime();
|
||||||
const gains = this.getExp(sleeve);
|
const gains = this.getExp(sleeve);
|
||||||
const success = Math.random() < crime.successRate(sleeve);
|
const success = Math.random() < crime.successRate(sleeve);
|
||||||
if (success) Player.karma -= crime.karma * sleeve.syncBonus();
|
if (success) {
|
||||||
else gains.money = 0;
|
Player.karma -= crime.karma * sleeve.syncBonus();
|
||||||
|
Player.numPeopleKilled += crime.kills;
|
||||||
|
} else gains.money = 0;
|
||||||
applySleeveGains(sleeve, gains, success ? 1 : 0.25);
|
applySleeveGains(sleeve, gains, success ? 1 : 0.25);
|
||||||
this.cyclesWorked -= this.cyclesNeeded();
|
this.cyclesWorked -= this.cyclesNeeded();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user