Merge pull request #2179 from antonvmironov/fix-CorporationInfo.state

Fix CorporationInfo.state
This commit is contained in:
hydroflame 2021-12-28 10:37:42 -05:00 committed by GitHub
commit 9f9ce40ef0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

@ -496,7 +496,7 @@ export function NetscriptCorporation(
shareSaleCooldown: corporation.shareSaleCooldown,
issuedShares: corporation.issuedShares,
sharePrice: corporation.sharePrice,
state: corporation.state + "",
state: corporation.state.getState(),
};
},
};

@ -6128,7 +6128,7 @@ interface CorporationInfo {
issuedShares: number;
/** Price of the shares */
sharePrice: number;
/** State of the corporation, like PRODUCTION or EXPORT */
/** State of the corporation. Possible states are START, PURCHASE, PRODUCTION, SALE, EXPORT. */
state: string;
}