MISC: Fix typos and duplicating ms per cycle constant (#2436)

This commit is contained in:
gmcew
2025-12-29 00:09:35 +00:00
committed by GitHub
parent 3663b4507f
commit df6c507369
7 changed files with 11 additions and 7 deletions
+2 -1
View File
@@ -20,6 +20,7 @@ import { BlackOperations, blackOpsArray } from "../Bladeburner/data/BlackOperati
import { checkSleeveAPIAccess, checkSleeveNumber } from "../NetscriptFunctions/Sleeve";
import { canAccessBitNodeFeature } from "../BitNode/BitNodeUtils";
import { calculateActionRankGain, calculateActionReputationGain } from "../Bladeburner/Formulas";
import { CONSTANTS } from "../Constants";
export function NetscriptBladeburner(): InternalAPI<INetscriptBladeburner> {
const checkBladeburnerAccess = function (ctx: NetscriptContext): void {
@@ -348,7 +349,7 @@ export function NetscriptBladeburner(): InternalAPI<INetscriptBladeburner> {
},
getBonusTime: (ctx) => () => {
const bladeburner = getBladeburner(ctx);
return bladeburner.storedCycles * 200;
return bladeburner.storedCycles * CONSTANTS.MilliPerCycle;
},
nextUpdate: (ctx) => () => {
checkBladeburnerAccess(ctx);