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

859 B
Raw Blame History

Home > bitburner > Hacknet > purchaseNode

Hacknet.purchaseNode() method

Purchase a new hacknet node.

Signature:

purchaseNode(): number;

Returns:

number

The index of the Hacknet Node or if the player cannot afford to purchase a new Hacknet Node the function will return -1.

Remarks

RAM cost: 0 GB

Purchases a new Hacknet Node. Returns a number with the index of the Hacknet Node. This index is equivalent to the number at the end of the Hacknet Nodes name (e.g The Hacknet Node named hacknet-node-4 will have an index of 4).

If the player cannot afford to purchase a new Hacknet Node then the function will return -1.