mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-26 17:43:48 +01:00
add size property to getProduct (#893)
This commit is contained in:
parent
2a149df13e
commit
009622069f
@ -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) => {
|
||||||
|
2
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
2
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user