Namespace ElectricDrill.AstraHealth.DamageMitigationFunctions
Classes
- DamageMitigationFnSO
Base type for damage mitigation functions. Implementations compute how an incoming damage amount is reduced using a defensive statistic value.
- HyperbolicDamageMitigationFnSO
Mitigates damage by
X / (X + K), whereXis the defensive stat andKthe defense that gives 50% mitigation. The formula of LoL, Dota, WoW and Diablo.
- LogDamageMitigationFnSO
Legacy logarithmic mitigation. Kept so existing assets keep working; prefer HyperbolicDamageMitigationFnSO for new work. For small defense values it behaves like the hyperbolic function with
K = BaseValue / ScaleFactor; at high values it grows far more slowly.