DotNet.Ships.Record.ShieldGeneratorParams - Elite-Dangerous-Almanac/Almanac-Core GitHub Wiki
EliteDangerousAlmanac / Ships / ShieldGeneratorParams
Defined in: dotnet/src/EliteDangerousAlmanac/Ships/Shields.cs:29
The shield generator constants a strength calculation needs, all post-engineering.
Every curve value is optional, because a catalogue record is what a caller normally has. A generator missing any of the six cannot be placed on the curve at all and raises no shield.
A generator that carries all six is held to the curve's shape, which IMassCurve documents. Anything else is refused rather than answered with a plausible-looking number.
The optimal multiplier is what a Reinforced or Thermic recipe moves, and the optimal mass 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.
new ShieldGeneratorParams(
MinMass?,OptMass?,MaxMass?,MinMultiplier?,OptMultiplier?,MaxMultiplier?)
double? = null
The hull mass at which the generator performs at its best, in tonnes.
double? = null
The hull mass at which the generator performs to specification, in tonnes.
double? = null
The hull mass beyond which the generator raises no shield, in tonnes.
double? = null
The smallest strength multiplier, reached at the maximum mass.
double? = null
The strength multiplier at the optimal mass.
double? = null
The largest strength multiplier, reached at the minimum mass.
MaxMass:
double?
The hull mass beyond which the generator raises no shield, in tonnes.
MaxMultiplier:
double?
The largest strength multiplier, reached at the minimum mass.
MinMass:
double?
The hull mass at which the generator performs at its best, in tonnes.
MinMultiplier:
double?
The smallest strength multiplier, reached at the maximum mass.
OptMass:
double?
The hull mass at which the generator performs to specification, in tonnes.
OptMultiplier:
double?
The strength multiplier at the optimal mass.
Resistances:
DamageTypeValues
Defined in: dotnet/src/EliteDangerousAlmanac/Ships/Shields.cs:38
The generator's own resistances, each a fraction. A negative figure is a weakness.
staticFromStats(stats):ShieldGeneratorParams
Defined in: dotnet/src/EliteDangerousAlmanac/Ships/Shields.cs:44
Reads a generator's curve and resistances off a module's stats.
The module's stats, post-engineering.
The generator constants the stats carry.
ArgumentNullException
stats is null.