From ebc6d9a06e6b36d4acf6e3d91e7b987487c554f0 Mon Sep 17 00:00:00 2001 From: KingRainbow44 Date: Fri, 12 May 2023 23:20:19 -0400 Subject: [PATCH] Remove 'Mechanicus' entities from the list of entities --- src/handbook/src/backend/data.ts | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/src/handbook/src/backend/data.ts b/src/handbook/src/backend/data.ts index f4d03e6b2..47a75773c 100644 --- a/src/handbook/src/backend/data.ts +++ b/src/handbook/src/backend/data.ts @@ -79,15 +79,18 @@ export function listCommands(): Command[] { * Fetches and casts all entities in the file. */ export function getEntities(): Entity[] { - return entities.map((entry) => { - const values = Object.values(entry) as string[]; - const id = parseInt(values[0]); - return { - id, - name: values[1], - internal: values[2] - }; - }); + return entities + .map((entry) => { + const values = Object.values(entry) as string[]; + const id = parseInt(values[0]); + return { + id, + name: values[1], + internal: values[2] + }; + }) + .filter((entity) => + !entity.name.includes("Mechanicus")); } /**