Merge pull request #3574 from DavidGrinberg/expose-material-sell-cost

CORPORATIONS: Expose sales cost on NSMaterial interface
This commit is contained in:
hydroflame 2022-05-04 11:58:12 -04:00 committed by GitHub
commit b0c9475b57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

@ -359,6 +359,7 @@ export function NetscriptCorporation(
const corporation = getCorporation();
return {
cost: material.bCost,
sCost: material.sCost,
name: material.name,
qty: material.qty,
qlt: material.qlt,

@ -7129,6 +7129,8 @@ interface Material {
sell: number;
/** cost to buy material */
cost: number;
/** Sell cost, can be "MP+5" */
sCost: string | number;
}
/**