Class ApplyBarrierStep
- 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
-
objectApplyBarrierStep
- 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
dataDamageInfoCurrent damage pipeline data.
Returns
- DamageInfo
The same
datainstance updated with reduced amounts and any barrier consumption.