mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-23 09:42:53 +02:00
Expose exports from Material
This commit is contained in:
@@ -360,6 +360,9 @@ export function NetscriptCorporation(): InternalAPI<NSCorporation> {
|
||||
const materialName = helpers.string(ctx, "materialName", _materialName);
|
||||
const material = getMaterial(divisionName, cityName, materialName);
|
||||
const corporation = getCorporation();
|
||||
const exports = material.exp.map((e) => {
|
||||
return { div: e.ind, loc: e.city, amt: e.amt };
|
||||
});
|
||||
return {
|
||||
cost: material.bCost,
|
||||
sCost: material.sCost,
|
||||
@@ -370,6 +373,7 @@ export function NetscriptCorporation(): InternalAPI<NSCorporation> {
|
||||
cmp: corporation.unlockUpgrades[3] ? material.cmp : undefined,
|
||||
prod: material.prd,
|
||||
sell: material.sll,
|
||||
exp: exports,
|
||||
};
|
||||
},
|
||||
getProduct:
|
||||
|
||||
Reference in New Issue
Block a user