mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-17 23:08:36 +02:00
* 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
785 B
785 B
Home > bitburner > Corporation > canCreateCorporation
Corporation.canCreateCorporation() method
Return whether the player can create a corporation. Does not require API access.
Signature:
canCreateCorporation(selfFund: boolean): CreatingCorporationCheckResult;
Parameters
| Parameter | Type | Description |
|---|---|---|
| selfFund | boolean | true if you want to self-fund, false otherwise |
Returns:
CreatingCorporationCheckResult
Result of the check
Remarks
RAM cost: 0 GB