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

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

Function: thrusterMassCurveMultiplier()

thrusterMassCurveMultiplier(mass, thrusters): number

Defined in: src/ships/mobility.ts:130

Resolve a thruster's performance multiplier at a loaded mass.

Parameters

mass

number

Loaded mass in tonnes.

thrusters

ThrusterCurveParams

The fitted thruster curve, post-engineering.

Returns

number

The curve multiplier, or 0 above the thrusters' maximum supported mass.

Throws

If mass or a curve value is not finite and non-negative, or the curve masses or multipliers do not follow the ordering documented by ThrusterCurveParams.

Example

import { thrusterMassCurveMultiplier } from '@elite-dangerous-almanac/core/ships/mobility';

thrusterMassCurveMultiplier(48, {
  minMass: 24, optMass: 48, maxMass: 72,
  minMultiplier: 0.83, optMultiplier: 1, maxMultiplier: 1.03,
}); // -> 1
⚠️ **GitHub.com Fallback** ⚠️