diff --git a/src/NetscriptFunctions/Corporation.ts b/src/NetscriptFunctions/Corporation.ts index 73f88fef3..2c7642e88 100644 --- a/src/NetscriptFunctions/Corporation.ts +++ b/src/NetscriptFunctions/Corporation.ts @@ -295,6 +295,7 @@ export function NetscriptCorporation( if (office === 0) continue; cities.push(office.loc); } + return { name: division.name, type: division.type, @@ -309,6 +310,7 @@ export function NetscriptCorporation( upgrades: division.upgrades.slice(), cities: cities, products: division.products === undefined ? [] : Object.keys(division.products), + makesProducts: division.makesProducts, }; } diff --git a/src/ScriptEditor/NetscriptDefinitions.d.ts b/src/ScriptEditor/NetscriptDefinitions.d.ts index 286bf3f11..5dca97709 100644 --- a/src/ScriptEditor/NetscriptDefinitions.d.ts +++ b/src/ScriptEditor/NetscriptDefinitions.d.ts @@ -7222,6 +7222,8 @@ interface Division { cities: string[]; /** Products developed by this division */ products: string[]; + /** Whether the industry this division is in is capable of making products */ + makesProducts: boolean; } /**