ships.Function.systemsResistance - Elite-Dangerous-Almanac/Almanac-Core GitHub Wiki

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

Function: systemsResistance()

systemsResistance(pips): number

Defined in: src/ships/resistances.ts:276

The extra shield resistance pips to SYS buy, on top of the generator and boosters.

Parameters

pips

number

Pips to the systems capacitor, 04. Fractional pips are allowed — the game's own curve is continuous.

Returns

number

The resistance the pips add, as a fraction: 0 at no pips rising to 0.6 (60%) at four, following 0.6 × (pips / 4) ^ 0.85.

Throws

If pips is not a finite number in [0, 4].

Remarks

This applies to every damage type including absolute, and multiplies with the shield's own resistance rather than adding to it: incoming damage is scaled by (1 − shieldResistance) × (1 − sysResistance).

Example

import { systemsResistance } from '@elite-dangerous-almanac/core/ships/resistances';

systemsResistance(0); // -> 0
systemsResistance(2); // -> 0.333
systemsResistance(4); // -> 0.6
⚠️ **GitHub.com Fallback** ⚠️