Skip to content

ships.Function.getLoadoutModifier

github-actions[bot] edited this page Aug 26, 2026 · 73 revisions

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

Function: getLoadoutModifier()

getLoadoutModifier(module, label): number | null

Defined in: src/ships/slef.ts:680

Read one engineering modifier off a module by its journal label.

Parameters

module

LoadoutModule

The fitted module.

label

string

The stat's journal name, e.g. "FSDOptimalMass". Matched case-insensitively after trimming surrounding whitespace.

Returns

number | null

The modifier's numeric Value, or null if the module is not engineered, states no modifiers at all, carries no such modifier, or the modifier is non-numeric.

Throws

If label is present and not a string. A nullish label is a miss, answered the way an unrecognised one is. All engineering blocks use the same modifier representation.

Example

import { getLoadoutModifier } from '@elite-dangerous-almanac/core/ships/slef';
import type { LoadoutModule } from '@elite-dangerous-almanac/core/ships/slef';

declare const fsdModule: LoadoutModule;

getLoadoutModifier(fsdModule, 'FSDOptimalMass'); // -> 7528.04, or null if stock

API

Guides
astro
Classes (1)
ProceduralSystem

Properties

Accessors

Methods

Interfaces (16)
Type Aliases (3)
Variables (11)
Functions (37)
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