mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-17 13:13:49 +01:00
CORPORATION: Expose valuation via ns.corporation.getCorporation() (#1765)
This commit is contained in:
parent
daec7482fa
commit
e825492319
@ -34,4 +34,5 @@ interface CorporationInfo
|
||||
| [sharePrice](./bitburner.corporationinfo.shareprice.md) | | number | Price of the shares |
|
||||
| [shareSaleCooldown](./bitburner.corporationinfo.sharesalecooldown.md) | | number | Cooldown until shares can be sold again |
|
||||
| [totalShares](./bitburner.corporationinfo.totalshares.md) | | number | Total number of shares issued by this corporation. |
|
||||
| [valuation](./bitburner.corporationinfo.valuation.md) | | number | Corporation valuation |
|
||||
|
||||
|
13
markdown/bitburner.corporationinfo.valuation.md
Normal file
13
markdown/bitburner.corporationinfo.valuation.md
Normal file
@ -0,0 +1,13 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [CorporationInfo](./bitburner.corporationinfo.md) > [valuation](./bitburner.corporationinfo.valuation.md)
|
||||
|
||||
## CorporationInfo.valuation property
|
||||
|
||||
Corporation valuation
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
valuation: number;
|
||||
```
|
@ -685,6 +685,7 @@ export function NetscriptCorporation(): InternalAPI<NSCorporation> {
|
||||
nextState: corporation.state.nextName,
|
||||
prevState: corporation.state.prevName,
|
||||
divisions: [...corporation.divisions.keys()],
|
||||
valuation: corporation.valuation,
|
||||
};
|
||||
setDeprecatedProperties(data, {
|
||||
state: {
|
||||
|
2
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
2
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
@ -9172,6 +9172,8 @@ interface CorporationInfo {
|
||||
prevState: CorpStateName;
|
||||
/** Array of all division names */
|
||||
divisions: string[];
|
||||
/** Corporation valuation */
|
||||
valuation: number;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user