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

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

Function: shieldRecovery()

shieldRecovery(input): ShieldRecovery

Defined in: src/ships/shield-recovery.ts:144

Calculate shield recovery and regeneration times at one SYS-pip allocation.

Parameters

input

ShieldRecoveryInput

Shield strength, generator rates and power-distributor figures.

Returns

ShieldRecovery

Rates and seconds to 50%/100%. A phase that cannot finish returns Infinity.

Throws

If systemsPips is outside [0, 4], or any numeric input is negative or not finite.

Example

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
⚠️ **GitHub.com Fallback** ⚠️