Sleeve crime kills add to numPeopleKilled (#413)

This commit is contained in:
Zelow79 2023-03-07 19:35:01 -05:00 committed by GitHub
parent b9ffb9e42e
commit d7380a9243
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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();
}