mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-17 13:13:49 +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:**
|
||||
|
||||
```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:**
|
||||
|
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
|
||||
* @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
|
||||
|
Loading…
Reference in New Issue
Block a user