Skip to content

ships.Function.shieldCapacitorMetrics

github-actions[bot] edited this page Aug 26, 2026 · 4 revisions

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

Function: shieldCapacitorMetrics()

shieldCapacitorMetrics(input): ShieldCapacitorMetrics

Defined in: src/ships/shield-capacitor.ts:150

Calculate what a SYS-pip allocation gives a raised shield.

Parameters

input

ShieldCapacitorInput

The bare shield's strength and stacked resistances, the distributor's SYS capacity and rated four-pip recharge, and the allocation to model.

Returns

ShieldCapacitorMetrics

The ShieldCapacitorMetrics. At no pips systemsResistance and rechargeRate are 0 and the effective figures equal the bare ones that went in.

Throws

If systemsPips is outside [0, 4], if a strength, capacity or recharge is negative or non-finite, or if a resistance is not a finite number. The pips are checked first, so a bad allocation is reported before the shield.

Throws

If resistances is not an object carrying the four damage types.

Example

import { shieldMetrics } from '@elite-dangerous-almanac/core/ships/shields';
import { shieldCapacitorMetrics } from '@elite-dangerous-almanac/core/ships/shield-capacitor';

// The bare shield, then what four pips to SYS make of it.
const shields = shieldMetrics({
  hullMass: 400,
  baseShieldStrength: 350,
  generator: {
    minMass: 270, optMass: 540, maxMass: 1350,
    minMultiplier: 0.7, optMultiplier: 1.2, maxMultiplier: 1.7,
    kineticResistance: 0.4,
  },
});
const sys = shieldCapacitorMetrics({
  ...shields,
  systemsCapacity: 41,
  systemsRecharge: 3.9,
  systemsPips: 4,
});
Number(sys.systemsResistance.toFixed(2));            // -> 0.6
Number(sys.effectiveResistances.kinetic.toFixed(2)); // -> 0.76
sys.effectiveHitPoints.kinetic > shields.effectiveHitPoints.kinetic; // -> true

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