From b0165d5c2c615ced9c0f9fbc22bd98a1a262341e Mon Sep 17 00:00:00 2001 From: Naga <92240446+NagaOuroboros@users.noreply.github.com> Date: Wed, 12 Mar 2025 21:17:57 -0400 Subject: [PATCH] NETSCRIPT: Store the value of `Player.money` in the returned object's `moneyAvailable` property when `ns.getServer` is called with `"home"` (#2024) --- src/NetscriptFunctions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NetscriptFunctions.ts b/src/NetscriptFunctions.ts index 65b2c0053..f597cd66b 100644 --- a/src/NetscriptFunctions.ts +++ b/src/NetscriptFunctions.ts @@ -1007,7 +1007,7 @@ export const ns: InternalAPI = { baseDifficulty: server.baseDifficulty, hackDifficulty: server.hackDifficulty, minDifficulty: server.minDifficulty, - moneyAvailable: server.moneyAvailable, + moneyAvailable: server.hostname === "home" ? Player.money : server.moneyAvailable, moneyMax: server.moneyMax, numOpenPortsRequired: server.numOpenPortsRequired, openPortCount: server.openPortCount,