mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-25 17:13:47 +01:00
getCorporation() returns division names (#266)
This commit is contained in:
parent
5c80655d62
commit
24ad342203
@ -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:
|
||||||
|
4
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
4
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
@ -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[];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user