diff options
author | AlmightyMiau <almightymeow612@gmail.com> | 2024-10-26 13:06:14 -0700 |
---|---|---|
committer | AlmightyMiau <almightymeow612@gmail.com> | 2024-10-26 13:06:14 -0700 |
commit | 1ca00b3b73a9699e41f81e154cea32934c16de03 (patch) | |
tree | d8ff8fe937b06cf40458aac232953b19665bcc6e /bitburnerFiles1026/threads.js |
First commit
Diffstat (limited to 'bitburnerFiles1026/threads.js')
-rw-r--r-- | bitburnerFiles1026/threads.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/bitburnerFiles1026/threads.js b/bitburnerFiles1026/threads.js new file mode 100644 index 0000000..51729fe --- /dev/null +++ b/bitburnerFiles1026/threads.js @@ -0,0 +1,13 @@ +/** @param {NS} ns */ +export async function main(ns) { + //const call = ns.args[0]; + const call = "hack"; + const server = ns.args[0]; + // if (ns.args[0] === undefined || ns.args[1] === undefined || ns.args[0] == "help") { + // ns.tprint("1st arg is the call type; ie. hack, weaken, or grow\n2nd arg is the server name"); + // } + + if (call == "hack") { + ns.tprint(ns.hackAnalyzeThreads(server, ns.getServerMoneyAvailable(server))); + } +}
\ No newline at end of file |