bitburner-src/markdown/bitburner.hacknet.gethashupgrades.md
omuretsu 06a985bdf8 Revert "Remove markdown from git tracking (#139)"
This reverts commit bbb6e3f309935aebac74ddb1fbeec12dfb7540b1.
2022-10-21 11:16:00 -04:00

930 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 1

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

Example 2

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