From 58bdebf4507efe0539f1a4a4b33d0d4aa0c14175 Mon Sep 17 00:00:00 2001 From: Philipp Date: Sun, 6 Oct 2024 22:43:23 +0200 Subject: [PATCH] sync fetch --- Ramses/home/Library.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ramses/home/Library.js b/Ramses/home/Library.js index 6e072e7..556f4de 100644 --- a/Ramses/home/Library.js +++ b/Ramses/home/Library.js @@ -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;