mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-23 22:52:29 +01:00
217b94d0a0
Adds a new functions ofr hacknet servers that returns the list of available hash upgrades.
35 lines
786 B
Markdown
35 lines
786 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
[Home](./index.md) > [bitburner](./bitburner.md) > [Hacknet](./bitburner.hacknet.md) > [getHashUpgrades](./bitburner.hacknet.gethashupgrades.md)
|
|
|
|
## Hacknet.getHashUpgrades() method
|
|
|
|
Get the list of hash upgrades
|
|
|
|
<b>Signature:</b>
|
|
|
|
```typescript
|
|
getHashUpgrades(): string[];
|
|
```
|
|
<b>Returns:</b>
|
|
|
|
string\[\]
|
|
|
|
An array containing the available upgrades
|
|
|
|
## Remarks
|
|
|
|
RAM cost: 0 GB
|
|
|
|
This function is only applicable for Hacknet Servers (the upgraded version of a Hacknet Node).
|
|
|
|
Returns the list of all available hash upgrades that can be used in the spendHashes function.
|
|
|
|
## Example
|
|
|
|
|
|
```ts
|
|
const upgrades = hacknet.getHashUpgrades(); // ["Sell for Money","Sell for Corporation Funds",...]
|
|
```
|
|
|