mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-07 08:07:57 +02:00
2.2.2 Release (#378)
This commit is contained in:
@@ -28,7 +28,7 @@ export class SleeveBladeburnerWork extends Work {
|
||||
cyclesNeeded(sleeve: Sleeve): number {
|
||||
const ret = Player.bladeburner?.getActionTimeNetscriptFn(sleeve, this.actionType, this.actionName);
|
||||
if (!ret || typeof ret === "string") throw new Error(`Error querying ${this.actionName} time`);
|
||||
return ret / CONSTANTS._idleSpeed;
|
||||
return ret / CONSTANTS.MilliPerCycle;
|
||||
}
|
||||
|
||||
process(sleeve: Sleeve, cycles: number) {
|
||||
|
||||
@@ -31,7 +31,7 @@ export class SleeveCrimeWork extends Work {
|
||||
}
|
||||
|
||||
cyclesNeeded(): number {
|
||||
return this.getCrime().time / CONSTANTS._idleSpeed;
|
||||
return this.getCrime().time / CONSTANTS.MilliPerCycle;
|
||||
}
|
||||
|
||||
process(sleeve: Sleeve, cycles: number) {
|
||||
|
||||
@@ -4,7 +4,7 @@ import { Sleeve } from "../Sleeve";
|
||||
import { Work, WorkType } from "./Work";
|
||||
import { CONSTANTS } from "../../../Constants";
|
||||
|
||||
const infiltrateCycles = 60000 / CONSTANTS._idleSpeed;
|
||||
const infiltrateCycles = 60000 / CONSTANTS.MilliPerCycle;
|
||||
|
||||
export const isSleeveInfiltrateWork = (w: Work | null): w is SleeveInfiltrateWork =>
|
||||
w !== null && w.type === WorkType.INFILTRATE;
|
||||
|
||||
Reference in New Issue
Block a user