Remove 'Mechanicus' entities from the list of entities

This commit is contained in:
KingRainbow44 2023-05-12 23:20:19 -04:00
parent 6e1617e621
commit ebc6d9a06e
No known key found for this signature in database
GPG Key ID: FC2CB64B00D257BE

View File

@ -79,15 +79,18 @@ export function listCommands(): Command[] {
* Fetches and casts all entities in the file. * Fetches and casts all entities in the file.
*/ */
export function getEntities(): Entity[] { export function getEntities(): Entity[] {
return entities.map((entry) => { return entities
const values = Object.values(entry) as string[]; .map((entry) => {
const id = parseInt(values[0]); const values = Object.values(entry) as string[];
return { const id = parseInt(values[0]);
id, return {
name: values[1], id,
internal: values[2] name: values[1],
}; internal: values[2]
}); };
})
.filter((entity) =>
!entity.name.includes("Mechanicus"));
} }
/** /**