diff --git a/markdown/bitburner.material.buyamount.md b/markdown/bitburner.material.buyamount.md new file mode 100644 index 000000000..eff01ecc1 --- /dev/null +++ b/markdown/bitburner.material.buyamount.md @@ -0,0 +1,13 @@ + + +[Home](./index.md) > [bitburner](./bitburner.md) > [Material](./bitburner.material.md) > [buyAmount](./bitburner.material.buyamount.md) + +## Material.buyAmount property + +Amount of material purchased from the market last cycle + +**Signature:** + +```typescript +buyAmount: number; +``` diff --git a/markdown/bitburner.material.importamount.md b/markdown/bitburner.material.importamount.md new file mode 100644 index 000000000..34a231350 --- /dev/null +++ b/markdown/bitburner.material.importamount.md @@ -0,0 +1,13 @@ + + +[Home](./index.md) > [bitburner](./bitburner.md) > [Material](./bitburner.material.md) > [importAmount](./bitburner.material.importamount.md) + +## Material.importAmount property + +Amount of material imported from other divisions last cycle + +**Signature:** + +```typescript +importAmount: number; +``` diff --git a/markdown/bitburner.material.md b/markdown/bitburner.material.md index 7ac073f69..14f517bca 100644 --- a/markdown/bitburner.material.md +++ b/markdown/bitburner.material.md @@ -17,11 +17,13 @@ interface Material | Property | Modifiers | Type | Description | | --- | --- | --- | --- | | [actualSellAmount](./bitburner.material.actualsellamount.md) | | number | Amount of material sold last cycle | +| [buyAmount](./bitburner.material.buyamount.md) | | number | Amount of material purchased from the market last cycle | | [competition](./bitburner.material.competition.md) | | number \| undefined | Competition for the material, only present if "Market Research - Competition" unlocked | | [demand](./bitburner.material.demand.md) | | number \| undefined | Demand for the material, only present if "Market Research - Demand" unlocked | | [desiredSellAmount](./bitburner.material.desiredsellamount.md) | | string \| number | Sell amount, can be "PROD/2" | | [desiredSellPrice](./bitburner.material.desiredsellprice.md) | | string \| number | Sell cost, can be "MP+5" | | [exports](./bitburner.material.exports.md) | | [Export](./bitburner.export.md)\[\] | Export orders | +| [importAmount](./bitburner.material.importamount.md) | | number | Amount of material imported from other divisions last cycle | | [marketPrice](./bitburner.material.marketprice.md) | | number | Cost to buy material | | [name](./bitburner.material.name.md) | | [CorpMaterialName](./bitburner.corpmaterialname.md) | Name of the material | | [productionAmount](./bitburner.material.productionamount.md) | | number | Amount of material produced last cycle | diff --git a/src/NetscriptFunctions/Corporation.ts b/src/NetscriptFunctions/Corporation.ts index 76cc5ea68..64555a234 100644 --- a/src/NetscriptFunctions/Corporation.ts +++ b/src/NetscriptFunctions/Corporation.ts @@ -223,7 +223,9 @@ export function NetscriptCorporation(): InternalAPI { quality: material.quality, demand: corporation.unlocks.has(CorpUnlockName.MarketResearchDemand) ? material.demand : undefined, competition: corporation.unlocks.has(CorpUnlockName.MarketDataCompetition) ? material.competition : undefined, + buyAmount: material.buyAmount, productionAmount: material.productionAmount, + importAmount: material.importAmount, actualSellAmount: material.actualSellAmount, exports: exports, }; diff --git a/src/ScriptEditor/NetscriptDefinitions.d.ts b/src/ScriptEditor/NetscriptDefinitions.d.ts index 4fd9f5ca5..2fce6d443 100644 --- a/src/ScriptEditor/NetscriptDefinitions.d.ts +++ b/src/ScriptEditor/NetscriptDefinitions.d.ts @@ -8725,10 +8725,14 @@ interface Material { demand: number | undefined; /** Competition for the material, only present if "Market Research - Competition" unlocked */ competition: number | undefined; - /** Amount of material produced last cycle */ - productionAmount: number; + /** Amount of material purchased from the market last cycle */ + buyAmount: number; /** Amount of material sold last cycle */ actualSellAmount: number; + /** Amount of material produced last cycle */ + productionAmount: number; + /** Amount of material imported from other divisions last cycle */ + importAmount: number; /** Cost to buy material */ marketPrice: number; /** Sell cost, can be "MP+5" */