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

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

Interface: ShieldGeneratorParams

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

The shield generator constants a strength calculation needs — all post-engineering.

Remarks

An OutfittingModule record satisfies this as-is, so a catalogue entry can be passed straight in — the six curve fields and the resistances are exactly what a generator's record carries. optMultiplier is what a Reinforced/Thermic blueprint moves, and optMass what Enhanced Low Power moves. A recipe names those two alone and the four endpoints follow them, so pass the whole moved curve rather than a moved optimum on stock endpoints. FittedModule.effectiveStats carries it already. Every field is optional because the type accepts those records; a generator missing any of the six curve fields cannot be placed on the curve at all, and raises no shield (shieldMassCurveMultiplier returns 0).

A generator that carries all six is held to the curve's shape: every value finite and non-negative, masses strictly ordered minMass < optMass < maxMass (or all equal, for a constant curve), multipliers strictly ordered minMultiplier < optMultiplier < maxMultiplier (or all equal), and equal multipliers wherever the masses are all equal. Anything else is a RangeError rather than a plausible-looking number.

Extends

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.

Inherited from

DamageResistanceParams.causticResistance


explosiveResistance?

readonly optional explosiveResistance?: number

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

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

Inherited from

DamageResistanceParams.explosiveResistance


kineticResistance?

readonly optional kineticResistance?: number

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

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

Inherited from

DamageResistanceParams.kineticResistance


maxMass?

readonly optional maxMass?: number

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

Hull mass beyond which the generator cannot raise a shield, in tonnes.


maxMultiplier?

readonly optional maxMultiplier?: number

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

Maximum strength multiplier, reached at minMass (the lightest hull).


minMass?

readonly optional minMass?: number

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

Hull mass at which the generator performs at maxMultiplier, in tonnes.


minMultiplier?

readonly optional minMultiplier?: number

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

Minimum strength multiplier, reached at maxMass (the heaviest hull).


optMass?

readonly optional optMass?: number

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

Hull mass at which the generator performs to spec, in tonnes.


optMultiplier?

readonly optional optMultiplier?: number

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

Strength multiplier at optMass.


thermalResistance?

readonly optional thermalResistance?: number

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

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

Inherited from

DamageResistanceParams.thermalResistance

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