mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-05 15:17:48 +02:00
SLEEVE: Fixed inconsistencies in how sleeve work rewards are handled. (#211)
This commit is contained in:
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user