Add buyAmount and importAmount to Corporation Material API (#1553)

This commit is contained in:
Yichi Zhang
2024-08-08 18:13:03 -07:00
committed by GitHub
parent 685b7d51f7
commit 93eb9b0cef
5 changed files with 36 additions and 2 deletions
+2
View File
@@ -223,7 +223,9 @@ export function NetscriptCorporation(): InternalAPI<NSCorporation> {
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,
};