DotNet.Ships.Class.Ammunition - Elite-Dangerous-Almanac/Almanac-Core GitHub Wiki

EliteDangerousAlmanac / Ships / Ammunition

Class: 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.

Remarks

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.

Methods

Capacity()

static Capacity(stats): AmmunitionCapacity?

Defined in: dotnet/src/EliteDangerousAlmanac/Ships/Ammunition.cs:66

What a module holds when fully rearmed.

Parameters

stats

ModuleStats

The module's stats. A catalogue record works as it comes, and a post-engineering record answers the capacity a build actually flies with.

Returns

AmmunitionCapacity?

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.

Remarks

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.

Exceptions

ArgumentNullException

stats is null.

Capacity()

static Capacity(module): AmmunitionCapacity?

Defined in: dotnet/src/EliteDangerousAlmanac/Ships/Ammunition.cs:88

What a module holds when fully rearmed.

Parameters

module

OutfittingModule

The module, post-engineering.

Returns

AmmunitionCapacity?

The capacity, or null for a module that carries no ammunition.

Exceptions

ArgumentNullException

module is null.

Capacity()

static Capacity(weapon): AmmunitionCapacity?

Defined in: dotnet/src/EliteDangerousAlmanac/Ships/Ammunition.cs:101

What a fitted weapon holds when fully rearmed.

Parameters

weapon

WeaponStats

The weapon's resolved firing stats, post-engineering.

Returns

AmmunitionCapacity?

The capacity, or null for a weapon that carries no ammunition.

Exceptions

ArgumentNullException

weapon is null.

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