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
@@ -13,6 +13,7 @@ import { GangMemberTasks } from "../Gang/GangMemberTasks";
import { GangMemberUpgrades } from "../Gang/GangMemberUpgrades";
import { helpers } from "../Netscript/NetscriptHelpers";
import { getEnumHelper } from "../utils/EnumHelper";
import { CONSTANTS } from "../Constants";
export function NetscriptGang(): InternalAPI<IGang> {
/** Functions as an API check and also returns the gang object */
@@ -353,7 +354,7 @@ export function NetscriptGang(): InternalAPI<IGang> {
},
getBonusTime: (ctx) => () => {
const gang = getGang(ctx);
return gang.storedCycles * 200;
return gang.storedCycles * CONSTANTS.MilliPerCycle;
},
nextUpdate: (ctx) => () => {
getGang(ctx);