mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-19 04:35:46 +01:00
DOCS: Correct function signature for hashUpgradeCost (#1603)
This commit is contained in:
parent
f235513742
commit
995e367432
@ -9,14 +9,14 @@ Calculate hash cost of an upgrade.
|
|||||||
**Signature:**
|
**Signature:**
|
||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
hashUpgradeCost(upgName: number, level: number): number;
|
hashUpgradeCost(upgName: string, level: number): number;
|
||||||
```
|
```
|
||||||
|
|
||||||
## Parameters
|
## Parameters
|
||||||
|
|
||||||
| Parameter | Type | Description |
|
| Parameter | Type | Description |
|
||||||
| --- | --- | --- |
|
| --- | --- | --- |
|
||||||
| upgName | number | name of the upgrade |
|
| upgName | string | name of the upgrade |
|
||||||
| level | number | level of the upgrade |
|
| level | number | level of the upgrade |
|
||||||
|
|
||||||
**Returns:**
|
**Returns:**
|
||||||
|
2
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
2
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
@ -5231,7 +5231,7 @@ interface HacknetServersFormulas {
|
|||||||
* @param level - level of the upgrade
|
* @param level - level of the upgrade
|
||||||
* @returns The calculated hash cost.
|
* @returns The calculated hash cost.
|
||||||
*/
|
*/
|
||||||
hashUpgradeCost(upgName: number, level: number): number;
|
hashUpgradeCost(upgName: string, level: number): number;
|
||||||
/**
|
/**
|
||||||
* Calculate the cost of a hacknet server.
|
* Calculate the cost of a hacknet server.
|
||||||
* @param n - number of the hacknet server
|
* @param n - number of the hacknet server
|
||||||
|
Loading…
Reference in New Issue
Block a user