sync fetch

This commit is contained in:
Philipp
2024-10-06 22:43:23 +02:00
parent c3f339e481
commit 58bdebf450

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;