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
@@ -72,6 +72,7 @@ import {
import { PositiveInteger } from "../types";
import { getRecordKeys } from "../Types/Record";
import { setDeprecatedProperties } from "../utils/DeprecationHelper";
import { CONSTANTS } from "../Constants";
export function NetscriptCorporation(): InternalAPI<NSCorporation> {
function hasUnlock(unlockName: CorpUnlockName): boolean {
@@ -802,7 +803,7 @@ export function NetscriptCorporation(): InternalAPI<NSCorporation> {
},
getBonusTime: (ctx) => () => {
checkAccess(ctx);
return getCorporation().storedCycles * 200;
return getCorporation().storedCycles * CONSTANTS.MilliPerCycle;
},
nextUpdate: (ctx) => () => {
checkAccess(ctx);