summaryrefslogtreecommitdiff
path: root/misc/threads.js
blob: 51729fe8b2b9e00e682274538878da7125160a0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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)));
	}
}