Compare commits

...
2 Commits
+1 -1
View File
@@ -175,7 +175,7 @@ export async function purchaseAndUpgradeServers(ns) {
if (pServcount >= 9) {
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.toast("Purchased " + hostname, "info", 10000);
pServcount = listPurchasedServers(ns).length;