CORPORATION: Expose valuation via ns.corporation.getCorporation() (#1765)

This commit is contained in:
catloversg 2024-11-11 07:32:25 +07:00 committed by GitHub
parent daec7482fa
commit e825492319
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 17 additions and 0 deletions

@ -34,4 +34,5 @@ interface CorporationInfo
| [sharePrice](./bitburner.corporationinfo.shareprice.md) | | number | Price of the shares | | [sharePrice](./bitburner.corporationinfo.shareprice.md) | | number | Price of the shares |
| [shareSaleCooldown](./bitburner.corporationinfo.sharesalecooldown.md) | | number | Cooldown until shares can be sold again | | [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. | | [totalShares](./bitburner.corporationinfo.totalshares.md) | | number | Total number of shares issued by this corporation. |
| [valuation](./bitburner.corporationinfo.valuation.md) | | number | Corporation valuation |

@ -0,0 +1,13 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [CorporationInfo](./bitburner.corporationinfo.md) &gt; [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, nextState: corporation.state.nextName,
prevState: corporation.state.prevName, prevState: corporation.state.prevName,
divisions: [...corporation.divisions.keys()], divisions: [...corporation.divisions.keys()],
valuation: corporation.valuation,
}; };
setDeprecatedProperties(data, { setDeprecatedProperties(data, {
state: { state: {

@ -9172,6 +9172,8 @@ interface CorporationInfo {
prevState: CorpStateName; prevState: CorpStateName;
/** Array of all division names */ /** Array of all division names */
divisions: string[]; divisions: string[];
/** Corporation valuation */
valuation: number;
} }
/** /**