Table of Contents

Namespace ElectricDrill.AstraHealth.DefensePenetrationFunctions

Classes

DefensePenetrationFnSO

Base type for defense penetration functions. Implementations compute a reduced defense value based on a piercing stat and the pierced defense stat.

FlatDefensePenetrationFnSO

Reduces defense by subtracting a scaled amount of the piercing stat from the pierced defense. The result is clamped to the stat's min/max bounds. Create instances via Assets -> Create -> Astra Health / Def Penetration Functions / Flat Def Penetration.

LogDefensePenetrationFnSO

Applies a logarithmic divisive reduction to defense to provide diminishing returns as piercing increases. Create instances via Assets -> Create -> Astra Health / Def Penetration Functions / Log Def Penetration.

PercentageDefensePenetrationFnSO

Reduces defense by subtracting a percentage of the pierced defense equal to the piercing stat percentage. Example: piercingStatValue = 20 -> reduces defense by 20%. Create isntances via Assets -> Create -> Astra Health / Def Mitigation Functions / Log Def Mitigation.