bitburner-src/markdown/bitburner.hacknet.gethashupgrades.md
Martin Fournier 217b94d0a0 Fix #1863: Add getHashUpgrades hacknet function
Adds a new functions ofr hacknet servers that returns the list of
available hash upgrades.
2021-12-17 05:35:17 -05:00

786 B

Home > bitburner > Hacknet > getHashUpgrades

Hacknet.getHashUpgrades() method

Get the list of hash upgrades

Signature:

getHashUpgrades(): string[];

Returns:

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

const upgrades = hacknet.getHashUpgrades(); // ["Sell for Money","Sell for Corporation Funds",...]