mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-25 17:13:47 +01:00
a3f9a5c21e
Co-authored-by: Caldwell <15591472+Caldwell-74@users.noreply.github.com>
3.6 KiB
3.6 KiB
Home > bitburner > Corporation
Corporation interface
Corporation API
Signature:
export interface Corporation extends WarehouseAPI, OfficeAPI
Extends: WarehouseAPI, OfficeAPI
Methods
Method | Description |
---|---|
acceptInvestmentOffer() | Accept investment based on you companies current valuation |
bribe(factionName, amountCash) | Bribe a faction |
buyBackShares(amount) | Buyback Shares. Spend money from the player's wallet to transfer shares from public traders to the CEO. |
createCorporation(corporationName, selfFund) | Create a Corporation |
expandCity(divisionName, city) | Expand to a new city |
expandIndustry(industryType, divisionName) | Expand to a new industry |
getBonusTime() | 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 game progress faster. |
getConstants() | Get corporation related constants |
getCorporation() | Get corporation data |
getDivision(divisionName) | Get division data |
getIndustryData(industryName) | Get constant industry definition data for a specific industry |
getInvestmentOffer() | Get an offer for investment based on you companies current valuation |
getMaterialData(materialName) | Get constant data for a specific material |
getUnlockCost(upgradeName) | Gets the cost to unlock a one time unlockable upgrade |
getUpgradeLevel(upgradeName) | Get the level of a levelable upgrade |
getUpgradeLevelCost(upgradeName) | Gets the cost to unlock the next level of a levelable upgrade |
goPublic(numShares) | Go public |
hasCorporation() | Returns whether the player has a corporation. Does not require API access. |
hasUnlock(upgradeName) | Check if you have a one time unlockable upgrade |
issueDividends(rate) | Issue dividends |
issueNewShares(amount) | Issue new shares |
levelUpgrade(upgradeName) | Level an upgrade. |
nextUpdate() | Sleep until the next Corporation update has happened. |
purchaseUnlock(upgradeName) | Unlock an upgrade |
sellDivision(divisionName) | Sell a division |
sellShares(amount) | Sell Shares. Transfer shares from the CEO to public traders to receive money in the player's wallet. |