Update src/NetscriptFunctions.ts

Co-authored-by: Nikolai Korolev <CrafterKolyan@mail.ru>
This commit is contained in:
Chris380 2022-04-13 15:58:43 +02:00 committed by GitHub
parent 1dac3fea31
commit 99923e0f62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -753,7 +753,7 @@ export function NetscriptFunctions(workerScript: WorkerScript): NS {
return numCycleForGrowth(server, Number(growth), Player, cores);
},
growthAnalyzeSecurity: function (_threads: unknown, _hostname: unknown, _cores?: unknown): number {
growthAnalyzeSecurity: function (_threads: unknown, _hostname?: unknown, _cores?: unknown): number {
updateDynamicRam("growthAnalyzeSecurity", getRamCost(Player, "growthAnalyzeSecurity"));
let threads = helper.number("growthAnalyzeSecurity", "threads", _threads);
if (_hostname) {