mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-17 14:59:16 +02:00
CORPORATION: Expose valuation via ns.corporation.getCorporation() (#1765)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user