mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-19 20:55:44 +01:00
Requested Correction
This commit is contained in:
parent
b6433786e3
commit
7963158470
@ -172,7 +172,10 @@ 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, 0.75) * cyclesUsed;
|
||||
this.shock = Math.max(
|
||||
0,
|
||||
this.shock - 0.0001 * calculateIntelligenceBonus(this.skills.intelligence, 0.75) * cyclesUsed,
|
||||
);
|
||||
this.currentWork.process(this, cyclesUsed);
|
||||
this.storedCycles -= cyclesUsed;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user