mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-17 06:48:42 +02:00
API: Add ns.singularity.getHackingLevelRequirementOfProgram (#2271)
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [Singularity](./bitburner.singularity.md) > [getHackingLevelRequirementOfProgram](./bitburner.singularity.gethackinglevelrequirementofprogram.md)
|
||||
|
||||
## Singularity.getHackingLevelRequirementOfProgram() method
|
||||
|
||||
Get the hacking level requirement of a program.
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
getHackingLevelRequirementOfProgram(program: string): number;
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| program | string | Name of program to create. |
|
||||
|
||||
**Returns:**
|
||||
|
||||
number
|
||||
|
||||
Hacking level requirement. Return Infinity if the specified program cannot be created.
|
||||
|
||||
## Remarks
|
||||
|
||||
RAM cost: 5 GB \* 16/4/1
|
||||
|
||||
In order to create a program via UI or [createProgram](./bitburner.singularity.createprogram.md)<!-- -->, your hacking level must meet the requirement of that program. This API returns that value.
|
||||
|
||||
Reference in New Issue
Block a user