diff --git a/markdown/bitburner.corporationinfo.md b/markdown/bitburner.corporationinfo.md index 4e3f947fd..e648131c2 100644 --- a/markdown/bitburner.corporationinfo.md +++ b/markdown/bitburner.corporationinfo.md @@ -30,6 +30,6 @@ interface CorporationInfo | [revenue](./bitburner.corporationinfo.revenue.md) | | number | Revenue per second this cycle | | [sharePrice](./bitburner.corporationinfo.shareprice.md) | | number | Price of the shares | | [shareSaleCooldown](./bitburner.corporationinfo.sharesalecooldown.md) | | number | Cooldown until shares can be sold again | -| [state](./bitburner.corporationinfo.state.md) | | string | State of the corporation. Possible states are START, PURCHASE, PRODUCTION, EXPORT, SALE. | +| [state](./bitburner.corporationinfo.state.md) | | string |

The next state to be processed.

I.e. when the state is PURCHASE, it means purchasing will occur during the next state transition.

Possible states are START, PURCHASE, PRODUCTION, EXPORT, SALE.

| | [totalShares](./bitburner.corporationinfo.totalshares.md) | | number | Total number of shares issues by this corporation | diff --git a/markdown/bitburner.corporationinfo.state.md b/markdown/bitburner.corporationinfo.state.md index e100ee5aa..79108b12c 100644 --- a/markdown/bitburner.corporationinfo.state.md +++ b/markdown/bitburner.corporationinfo.state.md @@ -4,7 +4,11 @@ ## CorporationInfo.state property -State of the corporation. Possible states are START, PURCHASE, PRODUCTION, EXPORT, SALE. +The next state to be processed. + +I.e. when the state is PURCHASE, it means purchasing will occur during the next state transition. + +Possible states are START, PURCHASE, PRODUCTION, EXPORT, SALE. **Signature:** diff --git a/src/Corporation/ui/DivisionWarehouse.tsx b/src/Corporation/ui/DivisionWarehouse.tsx index aff3fab01..edc140ef9 100644 --- a/src/Corporation/ui/DivisionWarehouse.tsx +++ b/src/Corporation/ui/DivisionWarehouse.tsx @@ -58,23 +58,23 @@ function WarehouseRoot(props: WarehouseProps): React.ReactElement { props.rerender(); } - // Current State: + // Next state which will be processed: let stateText; switch (division.state) { case "START": - stateText = "Current state: Preparing..."; + stateText = "Next state: Preparing"; break; case "PURCHASE": - stateText = "Current state: Purchasing materials..."; + stateText = "Next state: Purchasing materials"; break; case "PRODUCTION": - stateText = "Current state: Producing materials and/or products..."; + stateText = "Next state: Producing materials and/or products"; break; case "SALE": - stateText = "Current state: Selling materials and/or products..."; + stateText = "Next state: Selling materials and/or products"; break; case "EXPORT": - stateText = "Current state: Exporting materials and/or products..."; + stateText = "Next state: Exporting materials and/or products"; break; default: console.error(`Invalid state: ${division.state}`); diff --git a/src/ScriptEditor/NetscriptDefinitions.d.ts b/src/ScriptEditor/NetscriptDefinitions.d.ts index 35940f471..24c3ce467 100644 --- a/src/ScriptEditor/NetscriptDefinitions.d.ts +++ b/src/ScriptEditor/NetscriptDefinitions.d.ts @@ -7531,7 +7531,11 @@ interface CorporationInfo { dividendTax: number; /** Your earnings as a shareholder per second this cycle */ dividendEarnings: number; - /** State of the corporation. Possible states are START, PURCHASE, PRODUCTION, EXPORT, SALE. */ + /** The next state to be processed. + * + * I.e. when the state is PURCHASE, it means purchasing will occur during the next state transition. + * + * Possible states are START, PURCHASE, PRODUCTION, EXPORT, SALE. */ state: string; /** Array of all division names */ divisions: string[];