diff options
author | AlmightyMiau <almightymeow612@gmail.com> | 2024-11-13 10:56:53 -0800 |
---|---|---|
committer | AlmightyMiau <almightymeow612@gmail.com> | 2024-11-13 10:56:53 -0800 |
commit | 40843e35434d56e883655e4377994ac76746b184 (patch) | |
tree | 786c3acc109b4add11c88ca58a534fd19d4e77cb /bitburnerFiles1026/home.js | |
parent | 1ca00b3b73a9699e41f81e154cea32934c16de03 (diff) |
Organized scripts into folders
Diffstat (limited to 'bitburnerFiles1026/home.js')
-rw-r--r-- | bitburnerFiles1026/home.js | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/bitburnerFiles1026/home.js b/bitburnerFiles1026/home.js deleted file mode 100644 index 0ace136..0000000 --- a/bitburnerFiles1026/home.js +++ /dev/null @@ -1,35 +0,0 @@ -var money; - -/** @param {NS} ns */ -export async function main(ns) { - getmoney(ns); - - ns.tail(); - ns.moveTail(1050, 525); - ns.resizeTail(250, 100); - - let factions = ns.getPlayer().factions; - ns.disableLog("disableLog"); - ns.disableLog("clearLog"); - ns.disableLog("sleep"); - ns.disableLog("singularity.getUpgradeHomeRamCost"); - ns.disableLog("singularity.getUpgradeHomeCoresCost"); - ns.disableLog("getServerMoneyAvailable"); - ns.clearLog(); - while (true) { - getmoney(ns); - if (money > ns.singularity.getUpgradeHomeRamCost()) { - ns.singularity.upgradeHomeRam(); - } else if (money > ns.singularity.getUpgradeHomeCoresCost()) { - ns.singularity.upgradeHomeCores(); - } else if (ns.singularity.checkFactionInvitations().length > 0) { - ns.singularity.joinFaction(ns.singularity.checkFactionInvitations()[0]); - } - await ns.sleep(1000); - } -} - - -function getmoney(ns) { - money = ns.getServerMoneyAvailable("home"); -}
\ No newline at end of file |