mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-27 01:53:48 +01:00
Expose makeProducts on NSDivision interface
This commit is contained in:
parent
9c805dabb8
commit
d7ac7f8399
@ -295,6 +295,7 @@ export function NetscriptCorporation(
|
|||||||
if (office === 0) continue;
|
if (office === 0) continue;
|
||||||
cities.push(office.loc);
|
cities.push(office.loc);
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
name: division.name,
|
name: division.name,
|
||||||
type: division.type,
|
type: division.type,
|
||||||
@ -309,6 +310,7 @@ export function NetscriptCorporation(
|
|||||||
upgrades: division.upgrades.slice(),
|
upgrades: division.upgrades.slice(),
|
||||||
cities: cities,
|
cities: cities,
|
||||||
products: division.products === undefined ? [] : Object.keys(division.products),
|
products: division.products === undefined ? [] : Object.keys(division.products),
|
||||||
|
makesProducts: getDivision(division.name).makesProducts,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
2
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
2
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
@ -7202,6 +7202,8 @@ interface Division {
|
|||||||
cities: string[];
|
cities: string[];
|
||||||
/** Products developed by this division */
|
/** Products developed by this division */
|
||||||
products: string[];
|
products: string[];
|
||||||
|
/** Whether the industry this division is in is capable of making products */
|
||||||
|
makesProducts: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user