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
@@ -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;