Skip to content

ships.Interface.PowerBudget

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

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

Interface: PowerBudget

Defined in: src/ships/power.ts:118

What a build's power plant makes and what the build asks of it.

Remarks

Frozen — nested records and lists included — so a result can be held, cached and shared without a defensive copy. Derive a changed figure with a spread rather than by assigning into one.

Properties

available

readonly available: number

Defined in: src/ships/power.ts:120

Power the plant generates, in megawatts, post-engineering.


bands

readonly bands: readonly PowerBand[]

Defined in: src/ships/power.ts:138

The five priority groups, 1 first. A group is powered when its running total — its own draw plus every higher-priority group's — fits in available.


consumers

readonly consumers: readonly PowerConsumerResult[]

Defined in: src/ships/power.ts:144

Every supplied consumer in source order, including switched-off entries. Enabled entries reconcile with the band and aggregate totals. BuildMetrics.powerBudget supplies only modules with a positive draw; passive and zero-draw fittings are absent.


deployed

readonly deployed: number

Defined in: src/ships/power.ts:124

Total draw with hardpoints deployed, in megawatts — the figure that must fit.


headroom

readonly headroom: number

Defined in: src/ships/power.ts:126

available − deployed, in megawatts. Negative means the build is over budget.


retracted

readonly retracted: number

Defined in: src/ships/power.ts:122

Total draw with hardpoints retracted, in megawatts.


utilisation

readonly utilisation: number

Defined in: src/ships/power.ts:131

deployed / available, as a fraction (0.93 = 93% of the plant used). Infinity when a build draws power with no plant fitted, 0 when it draws none.


withinBudget

readonly withinBudget: boolean

Defined in: src/ships/power.ts:133

Whether the whole build stays powered with hardpoints deployed.

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