formatter

This commit is contained in:
tyasuh.taeragan@gmail.com 2023-02-19 05:27:09 -05:00
parent 012c5d4f86
commit b6433786e3
2 changed files with 5 additions and 2 deletions

@ -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();
}