mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-09-19 20:38:42 +02:00
38 lines
1001 B
Markdown
38 lines
1001 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
[Home](./index.md) > [bitburner](./bitburner.md) > [Corporation](./bitburner.corporation.md) > [createCorporation](./bitburner.corporation.createcorporation.md)
|
|
|
|
## Corporation.createCorporation() method
|
|
|
|
Create a Corporation.
|
|
|
|
**Signature:**
|
|
|
|
```typescript
|
|
createCorporation(corporationName: string, selfFund: boolean): boolean;
|
|
```
|
|
|
|
## Parameters
|
|
|
|
| Parameter | Type | Description |
|
|
| --- | --- | --- |
|
|
| corporationName | string | Name of the corporation |
|
|
| 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
|
|
|
|
This function throws an error if:
|
|
|
|
- Use seed money outside BitNode 3.
|
|
|
|
- Be in a BitNode that has CorporationSoftcap (a BN modifier) less than 0.15. Use [getBitNodeMultipliers](./bitburner.ns.getbitnodemultipliers.md) to get the value of this modifier.
|
|
|