DotNet.Ships.Record.WeaponStats - Elite-Dangerous-Almanac/Almanac-Core GitHub Wiki

EliteDangerousAlmanac / Ships / WeaponStats

Record: WeaponStats

Defined in: dotnet/src/EliteDangerousAlmanac/Ships/Weapons.cs:13

The weapon stats a firepower calculation needs, all post-engineering.

Remarks

A weapon carries only the stats that apply to it. A stat this record states as nullable is absent where the weapon does not carry it, and the absence carries meaning: no rate of fire marks a continuous-fire weapon, and no clip size marks one that never stops to reload.

Properties

AmmoMaximum

AmmoMaximum: double?

Defined in: dotnet/src/EliteDangerousAlmanac/Ships/Weapons.cs:61

The reserve rounds behind the clip. An absent figure means nothing limits them.

Remarks

No per-second figure reads it, because a reserve says how long a weapon can keep firing rather than how hard. It is carried so one record answers an ammunition question too.

ArmourPiercing

ArmourPiercing: double?

Defined in: dotnet/src/EliteDangerousAlmanac/Ships/Weapons.cs:93

The armour piercing rating, against a hull's hardness.

BurstInterval

BurstInterval: double?

Defined in: dotnet/src/EliteDangerousAlmanac/Ships/Weapons.cs:37

The seconds between shots, and between bursts on a burst-fire weapon. Only the combined rate of fire reads it: the per-second figures work off the rate of fire itself.

BurstRateOfFire

BurstRateOfFire: double?

Defined in: dotnet/src/EliteDangerousAlmanac/Ships/Weapons.cs:43

The shots per second within a burst.

BurstRounds

BurstRounds: double?

Defined in: dotnet/src/EliteDangerousAlmanac/Ships/Weapons.cs:40

The shots in one burst.

ChargeTime

ChargeTime: double?

Defined in: dotnet/src/EliteDangerousAlmanac/Ships/Weapons.cs:49

The seconds spent charging before a shot, on a rail gun. Nothing here folds a charge time into the rate of fire or the damage per second.

ClipSize

ClipSize: double?

Defined in: dotnet/src/EliteDangerousAlmanac/Ships/Weapons.cs:52

The rounds in a clip. An absent size marks a weapon that never stops to reload.

Damage

Damage: double

Defined in: dotnet/src/EliteDangerousAlmanac/Ships/Weapons.cs:16

The damage per round, or per second on a continuous-fire weapon.

DamageComponents

DamageComponents: DamageComponents?

Defined in: dotnet/src/EliteDangerousAlmanac/Ships/Weapons.cs:22

The exact damage amounts, which are authoritative for the split where stated.

DamageDistribution

DamageDistribution: DamageDistribution?

Defined in: dotnet/src/EliteDangerousAlmanac/Ships/Weapons.cs:19

How the damage splits by type. An absent split reads as all absolute.

DistributorDraw

DistributorDraw: double

Defined in: dotnet/src/EliteDangerousAlmanac/Ships/Weapons.cs:69

The weapons-capacitor draw per shot, in megawatts, and per second when continuous.

FalloffRange

FalloffRange: double?

Defined in: dotnet/src/EliteDangerousAlmanac/Ships/Weapons.cs:84

The range at which damage starts to drop off, in metres. An absent range means full damage through the largest range, and none beyond it.

MaximumRange

MaximumRange: double?

Defined in: dotnet/src/EliteDangerousAlmanac/Ships/Weapons.cs:78

The largest range, in metres. An absent range caps nothing.

PowerDraw

PowerDraw: double

Defined in: dotnet/src/EliteDangerousAlmanac/Ships/Weapons.cs:75

The power draw, in megawatts, echoed through to the metrics.

ProjectileRange

ProjectileRange: ProjectileRangeBoundaries?

Defined in: dotnet/src/EliteDangerousAlmanac/Ships/Weapons.cs:90

The projectile boundary parameters, which are not effective distances. A falloff calculation ignores them either way.

RateOfFire

RateOfFire: double?

Defined in: dotnet/src/EliteDangerousAlmanac/Ships/Weapons.cs:31

The shots per second, burst pattern folded in. An absent rate marks a continuous-fire weapon, whose per-second stats are used as they stand.

ReloadTime

ReloadTime: double

Defined in: dotnet/src/EliteDangerousAlmanac/Ships/Weapons.cs:64

The seconds one clip takes to reload.

RoundsPerShot

RoundsPerShot: double

Defined in: dotnet/src/EliteDangerousAlmanac/Ships/Weapons.cs:25

The rounds fired per shot.

ThermalLoad

ThermalLoad: double

Defined in: dotnet/src/EliteDangerousAlmanac/Ships/Weapons.cs:72

The heat per shot, and per second when continuous.

Methods

FromModule()

static FromModule(module): WeaponStats

Defined in: dotnet/src/EliteDangerousAlmanac/Ships/Weapons.cs:99

Reads a weapon's stats off a catalogue or fitted module.

Parameters

module

OutfittingModule

The module, post-engineering.

Returns

WeaponStats

The stats the module carries.

Exceptions

ArgumentNullException

module is null.

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