DotNet.Ships.Class.Ammunition - Elite-Dangerous-Almanac/Almanac-Core GitHub Wiki
EliteDangerousAlmanac / Ships / Ammunition
Defined in: dotnet/src/EliteDangerousAlmanac/Ships/Ammunition.cs:48
How many rounds a module holds when fully rearmed: the magazine, the reserve behind it, and the two together.
A journal reports what is loaded right now. This reports what the module can hold, which is a property of the build rather than of the moment it was captured.
It is not only weapons. Chaff, heat-sink and caustic-sink launchers, point defence, shield cell banks and maintenance units all carry a reserve, and are answered here on the same terms.
staticCapacity(stats):AmmunitionCapacity?
Defined in: dotnet/src/EliteDangerousAlmanac/Ships/Ammunition.cs:66
What a module holds when fully rearmed.
The module's stats. A catalogue record works as it comes, and a post-engineering record answers the capacity a build actually flies with.
The capacity, or null for a module that carries no ammunition at all: the lasers, which state neither figure because they draw from the weapons capacitor instead.
The figures are reported as the stats give them. Where engineering is simulated, its calculator makes both figures whole: a clip rounds up to a whole burst and a reserve rounds to the nearest whole round. A journal states the engineered figures itself, so imported values pass through untouched.
ArgumentNullException
stats is null.
staticCapacity(module):AmmunitionCapacity?
Defined in: dotnet/src/EliteDangerousAlmanac/Ships/Ammunition.cs:88
What a module holds when fully rearmed.
The module, post-engineering.
The capacity, or null for a module that carries no ammunition.
ArgumentNullException
module is null.
staticCapacity(weapon):AmmunitionCapacity?
Defined in: dotnet/src/EliteDangerousAlmanac/Ships/Ammunition.cs:101
What a fitted weapon holds when fully rearmed.
The weapon's resolved firing stats, post-engineering.
The capacity, or null for a weapon that carries no ammunition.
ArgumentNullException
weapon is null.