mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-17 14:59:16 +02:00
Revert "Remove markdown from git tracking (#139)"
This reverts commit bbb6e3f309.
This commit is contained in:
27
markdown/bitburner.hacknet.purchasenode.md
Normal file
27
markdown/bitburner.hacknet.purchasenode.md
Normal file
@@ -0,0 +1,27 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [Hacknet](./bitburner.hacknet.md) > [purchaseNode](./bitburner.hacknet.purchasenode.md)
|
||||
|
||||
## Hacknet.purchaseNode() method
|
||||
|
||||
Purchase a new hacknet node.
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
purchaseNode(): number;
|
||||
```
|
||||
<b>Returns:</b>
|
||||
|
||||
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 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.
|
||||
|
||||
Reference in New Issue
Block a user