Files
bitburner-src/markdown/bitburner.corporation.createcorporation.md
catloversg 6e1848dd79 CORPORATION: Add new API to check if player can create corporation (#1598)
* CORPORATION: Add new API to check if player can create corporation
* Update description of createCorporation API
* Return enum instead of true/false
* Use throwIfReachable
* Fix typo in comment
2024-11-30 21:49:19 -08:00

1.0 KiB

Home > bitburner > Corporation > createCorporation

Corporation.createCorporation() method

Create a Corporation. You should use canCreateCorporation to check if you are unsure you can do it, because it throws an error in these cases:

  • Use seed money outside BitNode 3.

  • Be in a BitNode that has CorporationSoftcap (a BitNode modifier) less than 0.15.

Signature:

createCorporation(corporationName: string, selfFund: boolean): boolean;

Parameters

Parameter Type Description
corporationName string Name of the corporation. It must be a non-empty string.
selfFund boolean If you want to self-fund. Defaults to true, false will only work in BitNode 3.

Returns:

boolean

true if created and false if not

Remarks

RAM cost: 20 GB