mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-18 15:28:43 +02:00
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:
30
markdown/bitburner.corporation.cancreatecorporation.md
Normal file
30
markdown/bitburner.corporation.cancreatecorporation.md
Normal file
@@ -0,0 +1,30 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [Corporation](./bitburner.corporation.md) > [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
|
||||
|
||||
Reference in New Issue
Block a user