ships.modules internal.Variable.INTERNAL_MODULES - Elite-Dangerous-Almanac/Almanac-Core GitHub Wiki

@elite-dangerous-almanac/core / ships/modules-internal / INTERNAL_MODULES

Variable: INTERNAL_MODULES

const INTERNAL_MODULES: readonly OutfittingModule[]

Defined in: src/ships/modules-internal.ts:49

Every module in the internal outfitting category, in registry order.

Remarks

Every record has category: 'internal', added from the file it was read from rather than repeated on every record. The category is the registry's filing, not a fitting rule, so do not read a fit off it: ModularCargoBayDoor (family cargoHatches) is the hull's built-in Cargo Hatch and goes in the fixed CargoHatch mount alone; the Guardian hybrid power plants and distributors carry a core slot and fit only that core mount; and others here reserve a restricted mount or a named hull. Ask ShipLoadout.modulesForSlot what a mount takes rather than filtering this array by size.

To keep the other three categories out of your bundle, search this array directly — INTERNAL_MODULES.find((m) => m.symbol.toLowerCase() === wanted), lower-cased because a journal's symbols are — rather than with the lookups in ./modules, which default to the whole catalogue.

Example

import { INTERNAL_MODULES } from '@elite-dangerous-almanac/core/ships/modules-internal';

INTERNAL_MODULES.find((m) => m.symbol === 'Int_CargoRack_Size1_Class1')?.familyId; // -> 'cargoRacks'
⚠️ **GitHub.com Fallback** ⚠️