mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-08 08:43:53 +01:00
Add investment info to API representation of product (#661)
This commit is contained in:
parent
312e3eb71f
commit
3981f72149
13
markdown/bitburner.product.advertisinginvestment.md
Normal file
13
markdown/bitburner.product.advertisinginvestment.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) > [Product](./bitburner.product.md) > [advertisingInvestment](./bitburner.product.advertisinginvestment.md)
|
||||
|
||||
## Product.advertisingInvestment property
|
||||
|
||||
Funds that were spent on advertising the product
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
advertisingInvestment: number;
|
||||
```
|
13
markdown/bitburner.product.designinvestment.md
Normal file
13
markdown/bitburner.product.designinvestment.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) > [Product](./bitburner.product.md) > [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) => {
|
||||
|
4
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
4
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user