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.
- HyperbolicDefensePenetrationFnSO
Pierces
P / (P + K)of the target's defense, wherePis the piercing stat andKthe piercing that removes half of it. The penetration counterpart of HyperbolicDamageMitigationFnSO.
- 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 (Legacy).
- 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.