mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 06:18:42 +02:00
NETSCRIPT: Store the value of Player.money in the returned object's moneyAvailable property when ns.getServer is called with "home" (#2024)
This commit is contained in:
@@ -1007,7 +1007,7 @@ export const ns: InternalAPI<NSFull> = {
|
||||
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,
|
||||
|
||||
Reference in New Issue
Block a user