auto hack improved grow
This commit is contained in:
@@ -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] : '');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user