ships.modules internal.Variable.INTERNAL_MODULES - Elite-Dangerous-Almanac/Almanac-Core GitHub Wiki
@elite-dangerous-almanac/core / ships/modules-internal / INTERNAL_MODULES
constINTERNAL_MODULES: readonlyOutfittingModule[]
Defined in: src/ships/modules-internal.ts:49
Every module in the internal outfitting category, in registry order.
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.
import { INTERNAL_MODULES } from '@elite-dangerous-almanac/core/ships/modules-internal';
INTERNAL_MODULES.find((m) => m.symbol === 'Int_CargoRack_Size1_Class1')?.familyId; // -> 'cargoRacks'