INNER CODE UNIT · TypeScript
components
Thorium-Sim/thorium · server/classes/generic/index.ts:279
const components = stations.reduce((prev: string[], s: Station) => {
return prev.concat(s.cards.map((c: Card) => c.component));
}, []);
const widgets = stations
.reduce((prev: string[], s: Station) => {
return prev.concat(s.widgets);
}, [])
.filter((c: string, i: number, a: string[]) => a.indexOf(c) !== i);
const damageSteps = [];
//
// Create a list of all the damage report steps
//
// Remove power if the system has power
if (
this.power.powerLevels &&