This commit is contained in:
Olivier Gagnon
2021-11-03 00:27:21 -04:00
parent 37845c57c0
commit 2b79871c02
299 changed files with 3861 additions and 7125 deletions
+7 -5
View File
@@ -4,21 +4,19 @@
## Hacknet.hashCost() method
This function is only applicable for Hacknet Servers (the upgraded version of a Hacknet Node).
Returns the number of hashes required for the specified upgrade. The name of the upgrade must be an exact match.
Get the cost of a hash upgrade.
<b>Signature:</b>
```typescript
hashCost(upgName: HashUpgrades): number;
hashCost(upgName: string): number;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| upgName | [HashUpgrades](./bitburner.hashupgrades.md) | Name of the upgrade of Hacknet Node. |
| upgName | string | Name of the upgrade of Hacknet Node. |
<b>Returns:</b>
@@ -30,6 +28,10 @@ Number of hashes required for the specified upgrade.
RAM cost: 0 GB
This function is only applicable for Hacknet Servers (the upgraded version of a Hacknet Node).
Returns the number of hashes required for the specified upgrade. The name of the upgrade must be an exact match.
## Example