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

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

Function: stackArmourResistance()

stackArmourResistance(bulkhead, reinforcements?): number

Defined in: src/ships/resistances.ts:248

A hull stack's effective resistance to one damage type.

Parameters

bulkhead

number

The fitted armour's resistance to this damage type, as a fraction (lightweight alloy is -0.2 to kinetic — a weakness).

reinforcements?

readonly number[] = []

Each fitted hull reinforcement package's resistance to the same type, as fractions.

Returns

number

The effective resistance, as a fraction.

Example

import { stackArmourResistance } from '@elite-dangerous-almanac/core/ships/resistances';

// Reactive surface composite (+25% kinetic) with three 1.5% hull reinforcements
stackArmourResistance(0.25, [0.015, 0.015, 0.015]); // -> 0.28…
⚠️ **GitHub.com Fallback** ⚠️