Fix Bladeburner Contract in Sleeve

This commit is contained in:
borisflagell
2022-10-11 15:25:16 +03:00
parent 1d5d839cd9
commit f3becee15b
4 changed files with 34 additions and 56 deletions
@@ -61,8 +61,10 @@ export class SleeveBladeburnerWork extends Work {
if (!exp) throw new Error(`Somehow there was no exp for action ${this.actionType} ${this.actionName}`);
applySleeveGains(sleeve, exp, 1);
}
Player.gainMoney(retValue.money, "sleeves");
Player.gainStats(retValue);
if (this.actionType === "Contracts") {
applySleeveGains(sleeve, retValue, 1);
}
this.cyclesWorked -= this.cyclesNeeded(sleeve);
}
return 0;