ships.Function.shieldRecovery - Elite-Dangerous-Almanac/Almanac-Core GitHub Wiki
@elite-dangerous-almanac/core / ships / shieldRecovery
shieldRecovery(
input):ShieldRecovery
Defined in: src/ships/shield-recovery.ts:144
Calculate shield recovery and regeneration times at one SYS-pip allocation.
Shield strength, generator rates and power-distributor figures.
Rates and seconds to 50%/100%. A phase that cannot finish returns Infinity.
If systemsPips is outside [0, 4], or any numeric input is
negative or not finite.
import { shieldRecovery } from '@elite-dangerous-almanac/core/ships/shield-recovery';
shieldRecovery({
strength: 200, regenRate: 2, brokenRegenRate: 4,
distributorDraw: 0.6, systemsCapacity: 20, systemsRecharge: 2,
}).recoveryTime; // -> 41