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

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

Interface: AmmunitionCapacity

Defined in: src/ships/ammunition.ts:42

What a module holds when fully rearmed, as ammunitionCapacity reports it.

Properties

clipSize

readonly clipSize: number

Defined in: src/ships/ammunition.ts:52

Rounds a full magazine holds — the catalogue's clipSize, and the largest AmmoInClip a journal can report for this module.

Remarks

0 on a module with no magazine, whose whole capacity is the reserve and is drawn from directly: an AFMU carries 3600 repair units and no clip to load them into, and reports { clipSize: 0, hopper: 3600 }.


hopper

readonly hopper: number

Defined in: src/ships/ammunition.ts:59

Reserve rounds behind the magazine — the catalogue's ammoMaximum, and the largest AmmoInHopper a journal can report. It does not include the magazine, exactly as the journal's own field does not. Infinity when nothing limits it (see unlimited).


total

readonly total: number

Defined in: src/ships/ammunition.ts:61

Rounds carried when fully rearmed — clipSize + hopper. Infinity when unlimited.


unlimited

readonly unlimited: boolean

Defined in: src/ships/ammunition.ts:73

Whether the reserve is unlimited — the record states a magazine but no reserve to refill it from, which in the catalogues is the mining Abrasion Blaster (both the fixed and the turreted record). Exactly hopper === Infinity.

Remarks

A reserve of zero is a different answer and reads as one: a Mk II Plasma Shock Accelerator carries no reserve behind its 18-round magazine, and Plasma Slug drives a rail gun's reserve to zero because the weapon then reloads from the ship's fuel — which is a tank this does not model, not an unlimited hopper.

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