From 009622069f0b14f0723f7c87b8bf7aef34ea3830 Mon Sep 17 00:00:00 2001 From: Caldwell <115591472+Caldwell-74@users.noreply.github.com> Date: Mon, 30 Oct 2023 08:56:54 +0100 Subject: [PATCH] add size property to getProduct (#893) --- src/NetscriptFunctions/Corporation.ts | 1 + src/ScriptEditor/NetscriptDefinitions.d.ts | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/NetscriptFunctions/Corporation.ts b/src/NetscriptFunctions/Corporation.ts index c5270207b..93b42f5de 100644 --- a/src/NetscriptFunctions/Corporation.ts +++ b/src/NetscriptFunctions/Corporation.ts @@ -287,6 +287,7 @@ export function NetscriptCorporation(): InternalAPI { developmentProgress: product.developmentProgress, advertisingInvestment: product.advertisingInvestment, designInvestment: product.designInvestment, + size: product.size, }; }, purchaseWarehouse: (ctx) => (_divisionName, _cityName) => { diff --git a/src/ScriptEditor/NetscriptDefinitions.d.ts b/src/ScriptEditor/NetscriptDefinitions.d.ts index 68503362f..ffba381cf 100644 --- a/src/ScriptEditor/NetscriptDefinitions.d.ts +++ b/src/ScriptEditor/NetscriptDefinitions.d.ts @@ -7900,6 +7900,8 @@ interface Product { advertisingInvestment: number; /** Funds that were spent on designing the product */ designInvestment: number; + /** How much warehouse space is occupied per unit of this product */ + size: number; } /**