2.2.2 Release (#378)

This commit is contained in:
Snarling
2023-02-21 09:44:18 -05:00
committed by GitHub
parent bba6b26ac1
commit d3f9554a6e
28 changed files with 196 additions and 67 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ export class CrimeWork extends Work {
process(cycles = 1): boolean {
this.cyclesWorked += cycles;
const time = Object.values(Crimes).find((c) => c.type === this.crimeType)?.time ?? 0;
this.unitCompleted += CONSTANTS._idleSpeed * cycles;
this.unitCompleted += CONSTANTS.MilliPerCycle * cycles;
while (this.unitCompleted >= time) {
this.commit();
this.unitCompleted -= time;