fixed formatting + import

This commit is contained in:
chris380
2022-04-13 15:54:48 +02:00
parent baa14f7b4d
commit 1dac3fea31

View File

@@ -34,6 +34,7 @@ import { RunningScript } from "./Script/RunningScript";
import {
getServerOnNetwork,
numCycleForGrowth,
numCycleForGrowthCorrected,
processSingleServerGrowth,
safetlyCreateUniqueServer,
} from "./Server/ServerHelpers";
@@ -765,7 +766,9 @@ export function NetscriptFunctions(workerScript: WorkerScript): NS {
return 0;
}
const maxThreadsNeeded = Math.ceil(numCycleForGrowthCorrected(server, server.moneyMax, server.moneyAvailable, Player, cores));
const maxThreadsNeeded = Math.ceil(
numCycleForGrowthCorrected(server, server.moneyMax, server.moneyAvailable, Player, cores),
);
threads = Math.min(threads, maxThreadsNeeded);
}