ships.Interface.PowerBudget - Elite-Dangerous-Almanac/Almanac-Core GitHub Wiki
@elite-dangerous-almanac/core / ships / PowerBudget
Defined in: src/ships/power.ts:120
What a build's power plant makes and what the build asks of it.
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.
readonlyavailable:number
Defined in: src/ships/power.ts:122
Power the plant generates, in megawatts, post-engineering.
readonlybands: readonlyPowerBand[]
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.
readonlyconsumers: readonlyPowerConsumerResult[]
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.
readonlydeployed:number
Defined in: src/ships/power.ts:126
Total draw with hardpoints deployed, in megawatts — the figure that must fit.
readonlyheadroom:number
Defined in: src/ships/power.ts:128
available − deployed, in megawatts. Negative means the build is over budget.
readonlyretracted:number
Defined in: src/ships/power.ts:124
Total draw with hardpoints retracted, in megawatts.
readonlyutilisation: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.
readonlywithinBudget:boolean
Defined in: src/ships/power.ts:135
Whether the whole build stays powered with hardpoints deployed.