mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-20 06:33:49 +01:00
Update src/NetscriptFunctions.ts
Co-authored-by: Nikolai Korolev <CrafterKolyan@mail.ru>
This commit is contained in:
parent
44c71347d7
commit
e0f4ec6594
@ -765,8 +765,7 @@ export function NetscriptFunctions(workerScript: WorkerScript): NS {
|
||||
return 0;
|
||||
}
|
||||
|
||||
const growthFactor = server.moneyMax / server.moneyAvailable;
|
||||
const maxThreadsNeeded = Math.ceil(numCycleForGrowth(server, growthFactor, Player, cores));
|
||||
const maxThreadsNeeded = Math.ceil(numCycleForGrowthCorrected(server, server.moneyMax, server.moneyAvailable, Player, cores));
|
||||
|
||||
threads = Math.min(threads, maxThreadsNeeded);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user