Add investment info to API representation of product (#661)

This commit is contained in:
Snarling 2023-07-05 19:50:29 -04:00 committed by GitHub
parent 312e3eb71f
commit 3981f72149
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 34 additions and 0 deletions

@ -0,0 +1,13 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [Product](./bitburner.product.md) &gt; [advertisingInvestment](./bitburner.product.advertisinginvestment.md)
## Product.advertisingInvestment property
Funds that were spent on advertising the product
**Signature:**
```typescript
advertisingInvestment: number;
```

@ -0,0 +1,13 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [Product](./bitburner.product.md) &gt; [designInvestment](./bitburner.product.designinvestment.md)
## Product.designInvestment property
Funds that were spent on designing the product
**Signature:**
```typescript
designInvestment: number;
```

@ -17,8 +17,10 @@ interface Product
| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [actualSellAmount](./bitburner.product.actualsellamount.md) | | number | Amount of product sold last cycle |
| [advertisingInvestment](./bitburner.product.advertisinginvestment.md) | | number | Funds that were spent on advertising the product |
| [competition](./bitburner.product.competition.md) | | number \| undefined | Competition for the product, only present if "Market Research - Competition" unlocked |
| [demand](./bitburner.product.demand.md) | | number \| undefined | Demand for the product, only present if "Market Research - Demand" unlocked |
| [designInvestment](./bitburner.product.designinvestment.md) | | number | Funds that were spent on designing the product |
| [desiredSellAmount](./bitburner.product.desiredsellamount.md) | | string \| number | Desired sell amount, e.g. "PROD/2" |
| [desiredSellPrice](./bitburner.product.desiredsellprice.md) | | string \| number | Desired sell price, can be "MP+5" |
| [developmentProgress](./bitburner.product.developmentprogress.md) | | number | A number between 0-100 representing percentage completion |

@ -340,6 +340,8 @@ export function NetscriptCorporation(): InternalAPI<NSCorporation> {
productionAmount: cityData.productionAmount,
actualSellAmount: cityData.actualSellAmount,
developmentProgress: product.developmentProgress,
advertisingInvestment: product.advertisingInvestment,
designInvestment: product.designInvestment,
};
},
purchaseWarehouse: (ctx) => (_divisionName, _cityName) => {

@ -7564,6 +7564,10 @@ interface Product {
actualSellAmount: number;
/** A number between 0-100 representing percentage completion */
developmentProgress: number;
/** Funds that were spent on advertising the product */
advertisingInvestment: number;
/** Funds that were spent on designing the product */
designInvestment: number;
}
/**