ships.modules hardpoint.Variable.HARDPOINT_MODULES - Elite-Dangerous-Almanac/Almanac-Core GitHub Wiki
@elite-dangerous-almanac/core / ships/modules-hardpoint / HARDPOINT_MODULES
constHARDPOINT_MODULES: readonlyOutfittingModule[]
Defined in: src/ships/modules-hardpoint.ts:40
Every hardpoint module, in Frontier's registry order.
Every record has category: 'hardpoint', added from the file it was read from
rather than repeated on every record. To keep the other three categories out of
your bundle, search this array directly — HARDPOINT_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 { HARDPOINT_MODULES } from '@elite-dangerous-almanac/core/ships/modules-hardpoint';
HARDPOINT_MODULES.find((m) => m.symbol === 'Hpt_PulseLaser_Fixed_Small')?.mount; // -> 'Fixed'
HARDPOINT_MODULES.find((m) => m.familyId === 'beamLasers')?.name; // -> 'Beam Laser'