mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 06:18:42 +02:00
Revert "Remove markdown from git tracking (#139)"
This reverts commit bbb6e3f309.
This commit is contained in:
48
markdown/bitburner.singularity.purchaseprogram.md
Normal file
48
markdown/bitburner.singularity.purchaseprogram.md
Normal file
@@ -0,0 +1,48 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [Singularity](./bitburner.singularity.md) > [purchaseProgram](./bitburner.singularity.purchaseprogram.md)
|
||||
|
||||
## Singularity.purchaseProgram() method
|
||||
|
||||
Purchase a program from the dark web.
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
purchaseProgram(programName: string): boolean;
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| programName | string | Name of program to purchase. |
|
||||
|
||||
<b>Returns:</b>
|
||||
|
||||
boolean
|
||||
|
||||
True if the specified program is purchased, and false otherwise.
|
||||
|
||||
## Remarks
|
||||
|
||||
RAM cost: 2 GB \* 16/4/1
|
||||
|
||||
This function allows you to automatically purchase programs. You MUST have a TOR router in order to use this function. The cost of purchasing programs using this function is the same as if you were purchasing them through the Dark Web using the Terminal buy command.
|
||||
|
||||
## Example 1
|
||||
|
||||
|
||||
```ts
|
||||
// NS1
|
||||
purchaseProgram("brutessh.exe");
|
||||
```
|
||||
|
||||
## Example 2
|
||||
|
||||
|
||||
```ts
|
||||
// NS2
|
||||
ns.purchaseProgram("brutessh.exe");
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user