mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-27 19:37:07 +02:00
2.2.2 Release (#378)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user