refactor types and add account level totals

This commit is contained in:
calli
2025-04-22 12:47:12 +03:00
parent 8809fec6e0
commit 42f95c17de
4 changed files with 178 additions and 48 deletions

View File

@@ -51,7 +51,7 @@ export const getPlanetUniverse = async (
export const planetCalculations = (planet: PlanetWithInfo) => {
const planetInfo = planet.info;
type SchematicId = number;
const extractors: PlanetInfo["pins"] = planetInfo.pins.filter((p) =>
const extractors = planetInfo.pins.filter((p) =>
EXTRACTOR_TYPE_IDS.some((e) => e === p.type_id),
);
const localProduction = planetInfo.pins