mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 22:38:34 +02:00
966 B
966 B
Home > bitburner > Singularity > getHackingLevelRequirementOfProgram
Singularity.getHackingLevelRequirementOfProgram() method
Get the hacking level requirement of a program.
Signature:
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, your hacking level must meet the requirement of that program. This API returns that value.