ships.Interface.DamageResistanceParams - Elite-Dangerous-Almanac/Almanac-Core GitHub Wiki

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

Interface: DamageResistanceParams

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

The four resistances one fitted module contributes, each an optional fraction of that damage type removed: 0.4 is 40% resisted, and a negative value is a weakness. A field the record does not carry counts as 0 — no resistance and no weakness.

Remarks

The four fittings that carry resistances inherit these fields rather than restating them — ShieldGeneratorParams, ShieldBoosterParams, BulkheadParams and HullReinforcementParams — so an OutfittingModule record, which spells them the same way, satisfies each of them as it comes. A module reinforcement package carries none of these four: what it absorbs is moduleProtection, one type-agnostic figure over module damage.

This is the input shape, one module at a time. DamageResistances is the output: four required figures for a whole stack, keyed by bare damage type.

Extended by

Properties

causticResistance?

readonly optional causticResistance?: number

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

Caustic resistance, as a fraction (negative is a weakness). Defaults to 0.


explosiveResistance?

readonly optional explosiveResistance?: number

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

Explosive resistance, as a fraction (negative is a weakness). Defaults to 0.


kineticResistance?

readonly optional kineticResistance?: number

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

Kinetic resistance, as a fraction (negative is a weakness). Defaults to 0.


thermalResistance?

readonly optional thermalResistance?: number

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

Thermal resistance, as a fraction (negative is a weakness). Defaults to 0.

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