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
This commit is contained in:
catloversg
2024-12-01 12:49:19 +07:00
committed by GitHub
parent 67704f2ab0
commit 6e1848dd79
12 changed files with 179 additions and 43 deletions

View File

@@ -0,0 +1,30 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [Corporation](./bitburner.corporation.md) &gt; [canCreateCorporation](./bitburner.corporation.cancreatecorporation.md)
## Corporation.canCreateCorporation() method
Return whether the player can create a corporation. Does not require API access.
**Signature:**
```typescript
canCreateCorporation(selfFund: boolean): CreatingCorporationCheckResult;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| selfFund | boolean | true if you want to self-fund, false otherwise |
**Returns:**
[CreatingCorporationCheckResult](./bitburner.creatingcorporationcheckresult.md)
Result of the check
## Remarks
RAM cost: 0 GB