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

View File

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

View File

@ -6919,6 +6919,8 @@ interface Material {
prod: number; prod: number;
/** Amount of material sold */ /** Amount of material sold */
sell: number; sell: number;
/** cost to buy material */
cost: number;
} }
/** /**