add size property to getProduct (#893)

This commit is contained in:
Caldwell 2023-10-30 08:56:54 +01:00 committed by GitHub
parent 2a149df13e
commit 009622069f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

@ -287,6 +287,7 @@ export function NetscriptCorporation(): InternalAPI<NSCorporation> {
developmentProgress: product.developmentProgress, developmentProgress: product.developmentProgress,
advertisingInvestment: product.advertisingInvestment, advertisingInvestment: product.advertisingInvestment,
designInvestment: product.designInvestment, designInvestment: product.designInvestment,
size: product.size,
}; };
}, },
purchaseWarehouse: (ctx) => (_divisionName, _cityName) => { purchaseWarehouse: (ctx) => (_divisionName, _cityName) => {

@ -7900,6 +7900,8 @@ interface Product {
advertisingInvestment: number; advertisingInvestment: number;
/** Funds that were spent on designing the product */ /** Funds that were spent on designing the product */
designInvestment: number; designInvestment: number;
/** How much warehouse space is occupied per unit of this product */
size: number;
} }
/** /**