Merge pull request #3570 from DavidGrinberg/dev

CORPORATIONS: Expose makeProducts on NSDivision interface
This commit is contained in:
hydroflame 2022-05-04 12:01:33 -04:00 committed by GitHub
commit 105ced26bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

@ -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,
};
}

@ -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;
}
/**