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

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

Function: cellBankSummary()

cellBankSummary(banks): CellBankSummary

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

Aggregate fitted shield cell banks while retaining their individual power state.

Parameters

banks

readonly CellBankInput[]

Banks in the order their slots should be reported.

Returns

CellBankSummary

Frozen per-bank metrics and totals over powered banks. An empty input returns an empty bank list and zero totals.

Throws

If any bank's powered value is not a boolean.

Example

import { cellBankSummary } from '@elite-dangerous-almanac/core/ships/shield-recovery';

cellBankSummary([{
  slot: 'Slot01_Size6', symbol: 'bank', reinforcementRate: 12,
  cells: 4, spinUp: 5, duration: 1, heat: 170, powered: true,
}]).totalRestorable; // -> 48
⚠️ **GitHub.com Fallback** ⚠️