bitburner-src/doc/source/netscript/hacknetnodeapi/purchaseNode.rst

12 lines
377 B
ReStructuredText
Raw Normal View History

purchaseNode() Netscript Function
=================================
.. js:function:: purchaseNode()
:RAM cost: 0 GB
2021-03-12 08:51:56 +01:00
:returns: Index of the newly purchased node. -1 on failure.
2021-03-12 08:51:56 +01:00
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).