From 995e367432e7e60adfe0fee7bd9e70a6b5c6a8c0 Mon Sep 17 00:00:00 2001 From: Nicole Date: Wed, 21 Aug 2024 18:47:26 -0500 Subject: [PATCH] DOCS: Correct function signature for hashUpgradeCost (#1603) --- markdown/bitburner.hacknetserversformulas.hashupgradecost.md | 4 ++-- src/ScriptEditor/NetscriptDefinitions.d.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/markdown/bitburner.hacknetserversformulas.hashupgradecost.md b/markdown/bitburner.hacknetserversformulas.hashupgradecost.md index 7431ce569..8c4da240b 100644 --- a/markdown/bitburner.hacknetserversformulas.hashupgradecost.md +++ b/markdown/bitburner.hacknetserversformulas.hashupgradecost.md @@ -9,14 +9,14 @@ Calculate hash cost of an upgrade. **Signature:** ```typescript -hashUpgradeCost(upgName: number, level: number): number; +hashUpgradeCost(upgName: string, level: number): number; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | -| upgName | number | name of the upgrade | +| upgName | string | name of the upgrade | | level | number | level of the upgrade | **Returns:** diff --git a/src/ScriptEditor/NetscriptDefinitions.d.ts b/src/ScriptEditor/NetscriptDefinitions.d.ts index 401cca43f..cc83f4c50 100644 --- a/src/ScriptEditor/NetscriptDefinitions.d.ts +++ b/src/ScriptEditor/NetscriptDefinitions.d.ts @@ -5231,7 +5231,7 @@ interface HacknetServersFormulas { * @param level - level of the upgrade * @returns The calculated hash cost. */ - hashUpgradeCost(upgName: number, level: number): number; + hashUpgradeCost(upgName: string, level: number): number; /** * Calculate the cost of a hacknet server. * @param n - number of the hacknet server