Merge pull request #1426 from danielyxie/dev

revert growthAnalyze stuff because it causes errors
This commit is contained in:
hydroflame 2021-10-06 19:41:54 -04:00 committed by GitHub
commit f2589a0ade
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -892,7 +892,7 @@ function NetscriptFunctions(workerScript: WorkerScript): NS {
throw makeRuntimeErrorMsg("growthAnalyze", `Invalid argument: growth must be numeric and >= 1, is ${growth}.`);
}
return numCycleForGrowth(server, Number(growth), Player, server.cpuCores);
return numCycleForGrowth(server, Number(growth), Player, 1);
},
weaken: function (ip: any, { threads: requestedThreads }: any = {}): any {
updateDynamicRam("weaken", getRamCost("weaken"));