Skip to content

ships.Function.shieldMetrics

github-actions[bot] edited this page Aug 19, 2026 · 75 revisions

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

Function: shieldMetrics()

shieldMetrics(input): ShieldMetrics

Defined in: src/ships/shields.ts:273

Everything an outfitting screen shows about a build's shields: strength, where it comes from, and the effective resistances.

Parameters

input

ShieldInput

The hull's mass and base shield strength, the fitted generator, and any powered boosters, Guardian reinforcement and SYS pips.

Returns

ShieldMetrics

The ShieldMetrics. With no generator fitted there is no shield for a resistance to apply to: every strength figure is 0 — any reinforcement passed is dropped, since a Guardian package has no shield to reinforce — and resistances and effectiveHitPoints are 0 for every damage type, so a hull with no shields gets no benefit from the SYS pips. The pips are still reported on their own, as systemsResistance. massCurveMultiplier is 0 and boostMultiplier is 1, whatever boosters are fitted, since there is no generator strength to multiply.

Throws

If systemsPips is not a finite number in [0, 4]. The pips are checked before the generator, so this applies with no generator fitted too.

Example

import { shieldMetrics } from '@elite-dangerous-almanac/core/ships/shields';
import type { ShieldGeneratorParams } from '@elite-dangerous-almanac/core/ships/shields';

declare const gen: ShieldGeneratorParams;

const shields = shieldMetrics({
  hullMass: 400,
  baseShieldStrength: 350,
  generator: gen,
  boosters: [{ shieldBoost: 0.2, kineticResistance: 0 }],
});
shields.strength;                 // -> MJ
shields.resistances.kinetic;      // -> effective kinetic resistance
shields.effectiveHitPoints.kinetic; // -> kinetic damage the shield can soak

API

Guides
astro
Classes (1)
ProceduralSystem

Properties

Accessors

Methods

Interfaces (16)
Type Aliases (3)
Variables (11)
Functions (37)
Subpath modules (3)
commodities
Interfaces (1)
Type Aliases (1)
Variables (3)
Functions (3)
equipment
Interfaces (6)
Type Aliases (8)
Variables (3)
Functions (10)
Subpath modules (2)
i18n
Interfaces (1)
Type Aliases (1)
Functions (17)
materials
Enumerations (2)
Interfaces (2)
Type Aliases (2)
Variables (9)
Functions (9)
ships
Classes (3)
BuildMetrics

Methods

LoadoutEditError

Constructors

Properties

Methods

ShipLoadout

Accessors

Methods

Interfaces (125)
Type Aliases (44)
Variables (10)
Functions (85)
Subpath modules (8)

Clone this wiki locally