diff --git a/servers/home/autoexec.ts b/servers/home/autoexec.ts index 8055e09..9c6d508 100644 --- a/servers/home/autoexec.ts +++ b/servers/home/autoexec.ts @@ -1,4 +1,5 @@ export async function main(ns: NS) { - ns.run('watcher.js') - ns.run('hacknet.js') + ns.run("hackallservers.js") + ns.run("watcher.js") + ns.run("hacknet.js") } diff --git a/servers/home/watcher.ts b/servers/home/watcher.ts index 69dd334..efc0733 100644 --- a/servers/home/watcher.ts +++ b/servers/home/watcher.ts @@ -1,7 +1,6 @@ import { recursiveHackingRequired } from "./utils" export async function main(ns: NS) { - ns.run('hackallservers.js') let levels = recursiveHackingRequired(ns) let hackingLevel: number do { @@ -10,9 +9,9 @@ export async function main(ns: NS) { // remove the level from the list, so we don't try to hack it again levels.splice(levels.indexOf(hackingLevel), 1) ns.tprint(`Hacking level increased to ${hackingLevel}`) - ns.run('killall.js') + ns.run("killall.js") await ns.sleep(1000) // 1 second - ns.run('hackallservers.js') + ns.run("hackallservers.js") } // Wait 1 second before checking again await ns.sleep(1000)