BB action rewards now tied to who does the action

This commit is contained in:
Mughur
2022-08-28 13:11:59 +03:00
parent ce5d777f59
commit cf09057836
4 changed files with 9 additions and 8 deletions
@@ -61,7 +61,8 @@ export class SleeveBladeburnerWork extends Work {
if (!exp) throw new Error(`Somehow there was no exp for action ${this.actionType} ${this.actionName}`);
applySleeveGains(player, sleeve, exp, 1);
}
if (retValue.money > 0) player.gainMoney(retValue.money, "sleeves");
player.gainMoney(retValue.money, "sleeves");
player.gainStats(retValue);
this.cyclesWorked -= this.cyclesNeeded(player, sleeve);
}
return 0;
@@ -64,7 +64,7 @@ export class SleeveCrimeWork extends Work {
APICopy(): Record<string, unknown> {
return {
type: this.type,
crimeType : this.crimeType,
crimeType: this.crimeType,
};
}