Compare commits

..

2 Commits

Author SHA1 Message Date
Philipp
b1e78c98a8 Merge branch 'main' of https://gitea.goetje-ing.de/ArchitectsOfTheBitburner/The_Bitburner_Scripts 2024-10-06 22:43:32 +02:00
Philipp
58bdebf450 sync fetch 2024-10-06 22:43:23 +02:00

View File

@@ -175,7 +175,7 @@ export async function purchaseAndUpgradeServers(ns) {
if (pServcount >= 9) { if (pServcount >= 9) {
sFrontZero = ""; sFrontZero = "";
} }
let hostname = ns.purchaseServer("pserv-" + sFrontZero + (aServers.length), targetRamInitial); let hostname = ns.purchaseServer("pserv-" + sFrontZero + pServcount, targetRamInitial);
ns.tprint("Purchased " + cCyan + hostname + cReset); ns.tprint("Purchased " + cCyan + hostname + cReset);
ns.toast("Purchased " + hostname, "info", 10000); ns.toast("Purchased " + hostname, "info", 10000);
pServcount = listPurchasedServers(ns).length; pServcount = listPurchasedServers(ns).length;