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

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