auto hack improved grow

This commit is contained in:
2023-09-09 02:05:43 +02:00
parent 7b14e98658
commit 435add26de
18 changed files with 8289 additions and 7480 deletions
+5 -2
View File
@@ -2,6 +2,9 @@
export async function main(ns) {
// ns.disableLog('ALL');
await ns.grow(ns.args.length > 0 ? ns.args[0] : '');
const maxLoops = ns.args.length > 1 ? ns.args[1] : 1;
for (let loops = 0; loops < maxLoops; loops++) {
ns.print(`${ns.args[0]} ${maxLoops} ${loops}`)
await ns.grow(ns.args.length > 0 ? ns.args[0] : '');
}
}