ships.Interface.LoadoutModule - Elite-Dangerous-Almanac/Almanac-Core GitHub Wiki

@elite-dangerous-almanac/core / ships / LoadoutModule

Interface: LoadoutModule

Defined in: src/ships/slef.ts:135

One fitted module in a Loadout event.

Remarks

Ammunition state is not carried. A journal writes AmmoInClip and AmmoInHopper on every weapon that takes ammunition; both are dropped on import and never written back out, because they are the ship's rearm state at the instant of capture rather than part of the build — the same reason a re-export recomputes a build's credit figures by default instead of echoing the ones the capture carried. What a fitted weapon can hold is a property of the build, and ./ammunition answers it: ammunitionCapacity, or FittedModule.ammunition for a fitted one, post-engineering.

Properties

Engineering?

readonly optional Engineering?: BlueprintModuleEngineering

Defined in: src/ships/slef.ts:155

Engineering, present only when the module is modified.


Health?

readonly optional Health?: number

Defined in: src/ships/slef.ts:145

Module health, 0–1.


Item

readonly Item: string

Defined in: src/ships/slef.ts:139

The module's internal id, e.g. "int_hyperdrive_size5_class5" (lower-cased).


On?

readonly optional On?: boolean

Defined in: src/ships/slef.ts:141

Whether the module is powered on. Absent means on.


Priority?

readonly optional Priority?: number

Defined in: src/ships/slef.ts:143

The module's power-priority group (0–4).


Slot

readonly Slot: string

Defined in: src/ships/slef.ts:137

The slot it occupies, e.g. "FrameShiftDrive", "Slot07_Size5".


Value?

readonly optional Value?: number

Defined in: src/ships/slef.ts:153

What the capture says was paid for this module, in credits — net of whatever discount its owner had, and not the catalogue's list price. Absent where the capture said nothing, which is not the same as free. ShipLoadout.sourcePurchase keeps these figures as a stable record; the library's own exports quote list price.

⚠️ **GitHub.com Fallback** ⚠️