ships.Interface.PowerBudget - Elite-Dangerous-Almanac/Almanac-Core GitHub Wiki

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

Interface: PowerBudget

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

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:122

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


bands

readonly bands: readonly PowerBand[]

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

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:146

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:126

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


headroom

readonly headroom: number

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

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


retracted

readonly retracted: number

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

Total draw with hardpoints retracted, in megawatts.


utilisation

readonly utilisation: number

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

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:135

Whether the whole build stays powered with hardpoints deployed.

⚠️ **GitHub.com Fallback** ⚠️