Table of Contents

Class ApplyDefenseStep

Namespace
ElectricDrill.AstraHealth.Damage.CalculationPipeline
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
object
ApplyDefenseStep
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

data DamageInfo

Current damage pipeline data.

Returns

DamageInfo

The same data instance updated with the reduced amount.