mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-22 22:22:26 +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 gains = this.getExp(sleeve);
|
||||
const success = Math.random() < crime.successRate(sleeve);
|
||||
if (success) Player.karma -= crime.karma * sleeve.syncBonus();
|
||||
else gains.money = 0;
|
||||
if (success) {
|
||||
Player.karma -= crime.karma * sleeve.syncBonus();
|
||||
Player.numPeopleKilled += crime.kills;
|
||||
} else gains.money = 0;
|
||||
applySleeveGains(sleeve, gains, success ? 1 : 0.25);
|
||||
this.cyclesWorked -= this.cyclesNeeded();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user