Table of Contents

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.

FlatDamageMitigationFnSO
HyperbolicDamageMitigationFnSO

Mitigates damage by X / (X + K), where X is the defensive stat and K the 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.

PercentageDamageMitigationFnSO