This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** @param {NS} ns */ | |
export async function main(ns) { | |
// Defines the "target server", which is the server | |
// that we're going to hack. In this case, it's "n00dles", | |
// then "joesguns", then "phantasy", then "rho-construction" | |
const target = "phantasy"; | |
// Defines how much money a server should have before we hack it | |
// In this case, it is set to the maximum amount of money. | |
const moneyThresh = ns.getServerMaxMoney(target); |