CrimeMonitor!

This commit is contained in:
2024-10-18 13:35:58 +02:00
parent aac2a5e884
commit 4c320ab609
7 changed files with 171 additions and 2 deletions

View File

@@ -88,7 +88,7 @@ export async function main(ns) {
let nPID1 = ns.run(sDistScript, 1, sHackScript, nHackThreads, sTarget, false, nHackDelay - 100);
let nPID2 = ns.run(sDistScript, 1, sGrowScript, nGrowThreads, sTarget, false, nGrowDelay - 50);
let nPID3 = ns.run(sDistScript, 1, sWeakenScript, nWeakenThreads, sTarget, false, 0);
let nPID3 = ns.run(sDistScript, 1, sWeakenScript, nWeakenThreads + 1, sTarget, false, 0);
if (nPID1 === 0 || nPID2 === 0 || nPID3 === 0) { bLoop = false; }
ns.print("Cash: " + (Math.floor(nCurrentMoney * 1000) / 1000) + " / " + nMaxMoney);