Requested Correction

This commit is contained in:
tyasuh.taeragan@gmail.com 2023-02-20 21:40:47 -05:00
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;
}