getCorporation() returns division names (#266)

This commit is contained in:
zerbosh 2022-12-29 10:30:16 +01:00 committed by GitHub
parent 5c80655d62
commit 24ad342203
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

@ -860,7 +860,7 @@ export function NetscriptCorporation(): InternalAPI<NSCorporation> {
dividendTax: corporation.dividendTax, dividendTax: corporation.dividendTax,
dividendEarnings: corporation.getCycleDividends() / CorporationConstants.SecsPerMarketCycle, dividendEarnings: corporation.getCycleDividends() / CorporationConstants.SecsPerMarketCycle,
state: corporation.state.getState(), state: corporation.state.getState(),
divisions: corporation.divisions.map((division): NSDivision => getSafeDivision(division)), divisions: corporation.divisions.map((division): string => division.name),
}; };
}, },
createCorporation: createCorporation:

@ -7598,8 +7598,8 @@ interface CorporationInfo {
dividendEarnings: number; dividendEarnings: number;
/** State of the corporation. Possible states are START, PURCHASE, PRODUCTION, SALE, EXPORT. */ /** State of the corporation. Possible states are START, PURCHASE, PRODUCTION, SALE, EXPORT. */
state: string; state: string;
/** Array of all divisions */ /** Array of all division names */
divisions: Division[]; divisions: string[];
} }
/** /**