mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-18 13:43:49 +01:00
formatter
This commit is contained in:
parent
012c5d4f86
commit
b6433786e3
@ -172,7 +172,7 @@ export class Sleeve extends Person implements SleevePerson {
|
||||
this.storedCycles += numCycles;
|
||||
if (this.storedCycles < CyclesPerSecond || !this.currentWork) return;
|
||||
const cyclesUsed = Math.min(this.storedCycles, 15);
|
||||
this.shock =this.shock - 0.0001 * calculateIntelligenceBonus(this.skills.intelligence, .75) * cyclesUsed;
|
||||
this.shock = this.shock - 0.0001 * calculateIntelligenceBonus(this.skills.intelligence, 0.75) * cyclesUsed;
|
||||
this.currentWork.process(this, cyclesUsed);
|
||||
this.storedCycles -= cyclesUsed;
|
||||
}
|
||||
|
@ -12,7 +12,10 @@ export class SleeveRecoveryWork extends Work {
|
||||
}
|
||||
|
||||
process(sleeve: Sleeve, cycles: number) {
|
||||
sleeve.shock = Math.max(0, sleeve.shock - 0.0002 * calculateIntelligenceBonus(sleeve.skills.intelligence, .75)* cycles);
|
||||
sleeve.shock = Math.max(
|
||||
0,
|
||||
sleeve.shock - 0.0002 * calculateIntelligenceBonus(sleeve.skills.intelligence, 0.75) * cycles,
|
||||
);
|
||||
if (sleeve.shock <= 0) sleeve.stopWork();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user