From 7f5c4e1fe0afdc25d0e7168d9daa0c11872cc57b Mon Sep 17 00:00:00 2001 From: Nicole Date: Thu, 22 Aug 2024 02:44:21 -0500 Subject: [PATCH] API: Reduced RAM cost for ns.getPurchasedServers (#1614) --- markdown/bitburner.ns.getpurchasedservers.md | 2 +- src/Constants.ts | 2 +- src/Netscript/RamCostGenerator.ts | 2 +- src/ScriptEditor/NetscriptDefinitions.d.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/markdown/bitburner.ns.getpurchasedservers.md b/markdown/bitburner.ns.getpurchasedservers.md index 2dcaa5cb4..9cfebbedd 100644 --- a/markdown/bitburner.ns.getpurchasedservers.md +++ b/markdown/bitburner.ns.getpurchasedservers.md @@ -19,5 +19,5 @@ Returns an array with the hostnames of all of the servers you have purchased. ## Remarks -2.25 GB +1.05 GB diff --git a/src/Constants.ts b/src/Constants.ts index 7a89ab9f4..68d1364ad 100644 --- a/src/Constants.ts +++ b/src/Constants.ts @@ -123,7 +123,7 @@ export const CONSTANTS = { - Fix misleading favor numbers (@catloversg) - Sync UI updates to game updates. (@tom.prince) - Always show description of faction price multiplier (@catloversg) -- Add apostrophe to stanek's gift strings (@nicole) +- Add apostrophe to stanek's gift strings (@faenre) - Use Autocomplete instead of Select in augmentation tool (@catloversg) - Notify players about documentation tab after getting SF1.1 (@catloversg) diff --git a/src/Netscript/RamCostGenerator.ts b/src/Netscript/RamCostGenerator.ts index 71cdf2449..90d212d3e 100644 --- a/src/Netscript/RamCostGenerator.ts +++ b/src/Netscript/RamCostGenerator.ts @@ -551,11 +551,11 @@ export const RamCosts: RamCostTree = { getPurchasedServerMaxRam: RamCostConstants.GetPurchasedServerMaxRam, getPurchasedServerCost: RamCostConstants.GetPurchaseServer, getPurchasedServerUpgradeCost: 0.1, + getPurchasedServers: 1.05, upgradePurchasedServer: 0.25, renamePurchasedServer: 0, purchaseServer: RamCostConstants.PurchaseServer, deleteServer: RamCostConstants.PurchaseServer, - getPurchasedServers: RamCostConstants.PurchaseServer, write: 0, tryWritePort: 0, read: 0, diff --git a/src/ScriptEditor/NetscriptDefinitions.d.ts b/src/ScriptEditor/NetscriptDefinitions.d.ts index 1b2611023..e4e2560dc 100644 --- a/src/ScriptEditor/NetscriptDefinitions.d.ts +++ b/src/ScriptEditor/NetscriptDefinitions.d.ts @@ -7125,7 +7125,7 @@ export interface NS { /** * Returns an array with the hostnames of all of the servers you have purchased. * - * @remarks 2.25 GB + * @remarks 1.05 GB * @returns Returns an array with the hostnames of all of the servers you have purchased. */ getPurchasedServers(): string[];