Class ApplyDefenseStep
- Assembly
- com.electricdrill.astra-health.Runtime.dll
Damage step that applies defensive calculations based on the damage type's defensive and piercing stats and configured mitigation and penetration functions.
[Serializable]
public class ApplyDefenseStep : DamageStep
- Inheritance
-
objectApplyDefenseStep
- Inherited Members
Properties
DisplayName
Human-readable name shown in pipeline editors.
public override string DisplayName { get; }
Property Value
- string
Methods
ProcessStep(DamageInfo)
Applies defense and damage reduction logic using the damage type's configuration. If the damage type is inconsistently configured the method logs a warning and skips the corresponding reduction stage.
public override DamageInfo ProcessStep(DamageInfo data)
Parameters
dataDamageInfoCurrent damage pipeline data.
Returns
- DamageInfo
The same
datainstance updated with the reduced amount.