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

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

Function: effectiveWeaponThermalLoad()

effectiveWeaponThermalLoad(thermalLoad, distributorDraw, weaponsCapacity, capacitorLevel): number

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

A weapon's thermal load once the weapons capacitor's state is folded in.

A shot the capacitor cannot pay for in full generates up to five times its listed thermal load — which is why a build that never overheats in a duel can cook itself in a wing fight, firing the same guns on an empty capacitor.

Parameters

thermalLoad

number

The weapon's thermal load, in the game's units.

distributorDraw

number

Weapons-capacitor draw of one discharge, in megajoules.

weaponsCapacity

number

The distributor's weapons-capacitor capacity, in megajoules.

capacitorLevel

number

How full the capacitor is, 0 (empty) through 1 (full).

Returns

number

The effective thermal load, between thermalLoad and five times it.

Throws

If any argument is not a finite non-negative number, or capacitorLevel is above 1.

Example

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

effectiveWeaponThermalLoad(2.4, 2.6, 26, 1); // -> 3.36  a full capacitor barely notices
effectiveWeaponThermalLoad(2.4, 2.6, 26, 0); // -> 12    an empty one is five times the heat
⚠️ **GitHub.com Fallback** ⚠️