* Update api-documentor and api-extractor. #1566 follow-up.
I have verified that the HTML/markdown table generation bug in
[#4878](https://github.com/microsoft/rushstack/issues/4878) in rushstack
for api-documentor has been fixed as per rushstack#5256. The testcase
[repro](https://github.com/catloversg/api-documenter-bug-pr-4578) now
produces the correct expected output.
I have confirmed that the generated output in bitburner from
`npm run doc` now generated HTML tables, and correctly inserts
a blank line between the </table> and the follow line (e.g. Returns).
Stylisticly it could use some whitespace, but it is correctly rendered.
This commit is only the updated packages, not the updated generated
documentation. I assume that is automatically generated by the GitHub
workflow.
* Follow up to 5f732a6f35, include `npm run doc` changed docs.
* Add missing license info
* Fix React warning
---------
Co-authored-by: CatLover <152669316+catloversg@users.noreply.github.com>
5.3 KiB
Home > bitburner > Corporation
Corporation interface
Corporation API
Signature:
export interface Corporation extends WarehouseAPI, OfficeAPI
Extends: WarehouseAPI, OfficeAPI
Methods
|
Method |
Description |
|---|---|
|
Accept the investment offer. The value of offer is based on current corporation valuation. | |
|
Bribe a faction. You must satisfy these conditions:
| |
|
Buyback shares. Spend money from the player's wallet to transfer shares from public traders to the CEO. | |
|
Return whether the player can create a corporation. Does not require API access. | |
|
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:
| |
|
Expand to a new city. | |
|
Expand to a new industry. | |
|
Get bonus time. Bonus time is accumulated when the game is offline or if the game is inactive in the browser. Bonus time makes the corporation progress faster. | |
|
Get corporation-related constants. | |
|
Get corporation data. | |
|
Get division data. | |
|
Get constant data of an industry. | |
|
Get an offer for investment based on current corporation valuation. | |
|
Get constant data of a material. | |
|
Get the cost to unlock a one-time unlockable upgrade. | |
|
Get the level of a levelable upgrade. | |
|
Get the cost to unlock the next level of a levelable upgrade. | |
|
Go public. | |
|
Return whether the player has a corporation. Does not require API access. | |
|
Check if you have a one-time unlockable upgrade. | |
|
Issue dividends. | |
|
Issue new shares. | |
|
Level up an upgrade. | |
|
Sleep until the next Corporation update happens. | |
|
Unlock an upgrade. | |
|
Sell a division. | |
|
Sell shares. Transfer shares from the CEO to public traders to receive money in the player's wallet. |