expose material cost

closes #3173
This commit is contained in:
phyzical 2022-04-01 22:32:48 +08:00
parent 13c486d639
commit e5bb695f6f
2 changed files with 5 additions and 2 deletions

@ -352,6 +352,7 @@ export function NetscriptCorporation(
const materialName = helper.string("getMaterial", "materialName", _materialName);
const material = getMaterial(divisionName, cityName, materialName);
return {
cost: material.bCost,
name: material.name,
qty: material.qty,
qlt: material.qlt,

@ -6915,10 +6915,12 @@ interface Material {
qty: number;
/** Quality of the material */
qlt: number;
/** Amount of material produced */
/** Amount of material produced */
prod: number;
/** Amount of material sold */
/** Amount of material sold */
sell: number;
/** cost to buy material */
cost: number;
}
/**