Skip to content

ships.Function.effectiveHitPoints

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

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

Function: effectiveHitPoints()

effectiveHitPoints(total, resistances): DamageTypeValues

Defined in: src/ships/resistances.ts:164

How much raw damage of each type a pool of hit points can soak — total / (1 − resistance).

Parameters

total

number

The pool, in whatever unit it is measured: hull points for armour, megajoules for shields.

resistances

DamageTypeValues

The effective resistances the pool sits behind, already stacked.

Returns

DamageTypeValues

The effective hit points per damage type, in the same unit as total, and Infinity at or above 100% — nothing of that type gets through, and a resistance past the documented (-∞, 1] range never reports a negative pool.

Remarks

A negative resistance is a weakness and reports fewer effective hit points than the pool holds, which is the point: lightweight alloy soaks less kinetic damage than its hull points suggest.

Example

import { effectiveHitPoints } from '@elite-dangerous-almanac/core/ships/resistances';

// 945 hull points behind lightweight alloy's -20% kinetic
effectiveHitPoints(945, { kinetic: -0.2, thermal: 0, explosive: -0.4, caustic: 0 })
    .kinetic; // -> 787.5

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