Skip to content

ships.Function.shieldMassCurveMultiplier

github-actions[bot] edited this page Aug 23, 2026 · 79 revisions

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

Function: shieldMassCurveMultiplier()

shieldMassCurveMultiplier(hullMass, generator): number

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

A shield generator's strength multiplier at a given hull mass.

Parameters

hullMass

number

The hull's mass, in tonnes (not the loaded ship's).

generator

ShieldGeneratorParams

The generator's mass/multiplier curve, post-engineering.

Returns

number

The multiplier to apply to the hull's base shield strength: minMultiplier for a hull sitting exactly on maxMass, no more than maxMultiplier for a featherweight one, and 0 past maxMass — a generator cannot raise a shield around a hull heavier than it is rated for. Also 0 for a generator whose record is missing part of its curve.

Remarks

The curve is a power law fitted through the generator's three declared points: normalize the mass into [0, 1] between maxMass and minMass, raise it to the exponent that makes the curve pass through (optMass, optMultiplier), then interpolate between minMultiplier and maxMultiplier.

Example

import { shieldMassCurveMultiplier } from '@elite-dangerous-almanac/core/ships/shields';

// A 6A generator (opt 540 t) on a 400 t Anaconda performs slightly above spec
shieldMassCurveMultiplier(400, {
  minMass: 270, optMass: 540, maxMass: 1350,
  minMultiplier: 0.7, optMultiplier: 1.2, maxMultiplier: 1.7,
}); // -> 1.434…

API

Guides
astro
Classes (1)
ProceduralSystem

Properties

Accessors

Methods

Interfaces (28)
Type Aliases (6)
Variables (22)
Functions (57)
Subpath modules (3)
commodities
Interfaces (1)
Type Aliases (1)
Variables (3)
Functions (3)
equipment
Interfaces (6)
Type Aliases (8)
Variables (3)
Functions (10)
Subpath modules (2)
i18n
Interfaces (1)
Type Aliases (1)
Functions (17)
materials
Enumerations (2)
Interfaces (2)
Type Aliases (2)
Variables (9)
Functions (9)
ships
Classes (3)
BuildMetrics

Methods

LoadoutEditError

Constructors

Properties

Methods

ShipLoadout

Accessors

Methods

Interfaces (125)
Type Aliases (44)
Variables (10)
Functions (85)
Subpath modules (8)

Clone this wiki locally