Table of Contents

Class ApplyBarrierStep

Namespace
ElectricDrill.AstraHealth.Damage.CalculationPipeline
Assembly
com.electricdrill.astra-health.Runtime.dll

Damage step that consumes target barrier (temporary shields). It doesn't remove health.

[Serializable]
public class ApplyBarrierStep : DamageStep
Inheritance
object
ApplyBarrierStep
Inherited Members

Properties

DisplayName

Human readable name shown in pipeline editors.

public override string DisplayName { get; }

Property Value

string

Methods

ProcessStep(DamageInfo)

Applies the target's barrier to reduce the current damage amount. If the damage type ignores barrier, or the target has no barrier, the method returns the input unchanged. When barrier is consumed the target's barrier value is reduced accordingly. If the barrier completely absorbs the damage, PipelineReducedToZero is added.

public override DamageInfo ProcessStep(DamageInfo data)

Parameters

data DamageInfo

Current damage pipeline data.

Returns

DamageInfo

The same data instance updated with reduced amounts and any barrier consumption.