Skip to content

astro.Function.assessMassStability

github-actions[bot] edited this page Aug 28, 2026 · 1 revision

@elite-dangerous-almanac/core / astro / assessMassStability

Function: assessMassStability()

assessMassStability(body): MassStabilityAssessment | null

Defined in: src/astro/star-physics.ts:277

Whether a degenerate star's mass exceeds what its kind can hold up.

Parameters

body

BodyProperties

The star. Needs StarType and StellarMass.

Returns

MassStabilityAssessment | null

The limit passed and how far outside expectation that puts the star, or null when the star is within its limits, is not a degenerate object, or carries no mass.

Remarks

A white dwarf is supported by electron degeneracy pressure and a neutron star by neutron degeneracy pressure, and each gives out at a mass: past the Chandrasekhar limit a white dwarf should collapse or detonate, past the TOV limit a neutron star should become a black hole. Elite Dangerous generates stars that sometimes sit beyond both, and this is what says so.

The kind is read from StarType, which the journal writes as "N" for a neutron star and "D"-prefixed for the white-dwarf classes ("D", "DA", "DAB", …). Black holes are outside this: "H" has already collapsed, so no ceiling is left for it to breach.

Throws

If body is not an object.

Example

import { assessMassStability } from '@elite-dangerous-almanac/core/astro/star-physics';

// An ordinary neutron star is unremarkable.
assessMassStability({ StarType: 'N', StellarMass: 1.8 }); // -> null

// Past the theoretical ceiling, but in the range the game generates freely.
assessMassStability({ StarType: 'N', StellarMass: 2.3 })?.severity; // -> 'warning'

// A white dwarf this heavy should not be a white dwarf.
assessMassStability({ StarType: 'DA', StellarMass: 1.6 })?.limit; // -> 'chandrasekhar'

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