SLEEVE: Fixed inconsistencies in how sleeve work rewards are handled. (#211)

This commit is contained in:
Snarling
2022-11-10 21:56:46 -05:00
committed by GitHub
parent 426ad5f296
commit c669e473d1
14 changed files with 58 additions and 73 deletions
@@ -10,10 +10,9 @@ export class SleeveRecoveryWork extends Work {
super(WorkType.RECOVERY);
}
process(sleeve: Sleeve, cycles: number): number {
process(sleeve: Sleeve, cycles: number) {
sleeve.shock = Math.min(100, sleeve.shock + 0.0002 * cycles);
if (sleeve.shock >= 100) sleeve.stopWork();
return 0;
}
APICopy(): Record<string, unknown> {