ships.Function.weaponMetrics - Elite-Dangerous-Almanac/Almanac-Core GitHub Wiki
@elite-dangerous-almanac/core / ships / weaponMetrics
weaponMetrics(
weapon):WeaponMetrics
Defined in: src/ships/weapons.ts:503
Everything an outfitting screen shows about one weapon: DPS, sustained DPS, the capacitor and heat cost of firing it, and the damage split by type.
The weapon's stats, post-engineering. A catalogue record works as-is.
The WeaponMetrics.
import { getModuleBySymbol } from '@elite-dangerous-almanac/core/ships/modules';
import { HARDPOINT_MODULES } from '@elite-dangerous-almanac/core/ships/modules-hardpoint';
import { weaponMetrics } from '@elite-dangerous-almanac/core/ships/weapons';
const beam = weaponMetrics(getModuleBySymbol('Hpt_BeamLaser_Fixed_Small', HARDPOINT_MODULES)!);
beam.continuous; // -> true
beam.damagePerSecond; // -> 9.8 (its `damage` is already per second)
beam.damageByType.thermal; // -> 9.8