work to make documentation unified.

This commit is contained in:
Olivier Gagnon
2021-03-12 02:51:56 -05:00
parent a00c253dcb
commit 2ce6ff2041
176 changed files with 1325 additions and 916 deletions

View File

@@ -4,10 +4,8 @@ purchaseNode() Netscript Function
.. js:function:: purchaseNode()
:RAM cost: 0 GB
:returns: Index of the newly purchased node. -1 on failure.
Purchases a new Hacknet Node. Returns a number with the index of the Hacknet Node.
Purchases a new Hacknet Node.
This index is equivalent to the number at the end of the Hacknet Node's 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.