ships.Function.heatMetrics - Elite-Dangerous-Almanac/Almanac-Core GitHub Wiki

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

Function: heatMetrics()

heatMetrics(input): HeatMetrics

Defined in: src/ships/heat.ts:471

Everything an outfitting screen shows about a build's heat: what it idles at, what it runs at flying and jumping, and whether firing everything cooks it.

Parameters

input

HeatInput

The HeatInput.

Returns

HeatMetrics

The HeatMetrics.

Throws

If any figure is not a finite non-negative number, or heatCapacity is 0.

Example

import { heatMetrics } from '@elite-dangerous-almanac/core/ships/heat';

const heat = heatMetrics({
  heatCapacity: 224, heatDissipation: 41.63, heatEfficiency: 0.4, // Fer-de-Lance, 6A plant
  retractedPowerDraw: 14.2, deployedPowerDraw: 20.1, thrusterHeatRate: 1.2,
  weaponsCapacity: 31, weapons: [{ heatPerSecond: 8.4, distributorDraw: 2.6 }],
});
heat.firingSustained.overheats;        // -> false: the guns run cool enough to hold
heat.firingDrained.secondsToOverheat;  // -> 16.63…  seconds on an empty capacitor
⚠️ **GitHub.com Fallback** ⚠️