mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 14:28:36 +02:00
63 lines
1.1 KiB
Markdown
63 lines
1.1 KiB
Markdown
<!-- 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(programName: ProgramName): number;
|
|
```
|
|
|
|
## Parameters
|
|
|
|
<table><thead><tr><th>
|
|
|
|
Parameter
|
|
|
|
|
|
</th><th>
|
|
|
|
Type
|
|
|
|
|
|
</th><th>
|
|
|
|
Description
|
|
|
|
|
|
</th></tr></thead>
|
|
<tbody><tr><td>
|
|
|
|
programName
|
|
|
|
|
|
</td><td>
|
|
|
|
[ProgramName](./bitburner.programname.md)
|
|
|
|
|
|
</td><td>
|
|
|
|
Name of program to create.
|
|
|
|
|
|
</td></tr>
|
|
</tbody></table>
|
|
|
|
**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.
|
|
|