ships.Function.secondsToHeatLevel - Elite-Dangerous-Almanac/Almanac-Core GitHub Wiki
@elite-dangerous-almanac/core / ships / secondsToHeatLevel
secondsToHeatLevel(
params):number
Defined in: src/ships/heat.ts:398
How long a build takes to move from one heat level to another under a given load — heating or cooling.
The hull's two heat stats, the load, and the two heat levels.
number
The hull's heat capacity.
number
The hull's maximum heat dissipation, per second.
number
The heat level the ship starts at.
number
The heat level being asked about.
number
The thermal load being generated, per second.
number
The seconds it takes, or Infinity when the load never carries the ship
there: heating towards a level at or beyond where it settles, or cooling towards one
below it.
If any figure is not a finite non-negative number, or
heatCapacity is 0.
import { OVERHEAT_HEAT_LEVEL, secondsToHeatLevel } from '@elite-dangerous-almanac/core/ships/heat';
secondsToHeatLevel({
heatCapacity: 334, heatDissipation: 67.15, thermalLoad: 90,
startLevel: 0.5, targetLevel: OVERHEAT_HEAT_LEVEL,
}); // -> 10.9424… seconds of firing before the gauge reads 100%