Table of Contents

Class ApplyFlatDmgModifiersStep

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

Damage step that applies flat damage modifiers (both positive increments and negative reductions) based on configured generic flat damage modifiers & source/type flat damage modifiers. This step should typically be applied AFTER percentage-based modifications.

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

Properties

DisplayName

Human-readable name shown in pipeline editors.

public override string DisplayName { get; }

Property Value

string

Methods

ProcessStep(DamageInfo)

Applies configured flat modifiers to Amounts. Flat modifiers are summed additively and applied to the current damage amount. The final damage cannot go below 0 (negative results are clamped to 0).

public override DamageInfo ProcessStep(DamageInfo data)

Parameters

data DamageInfo

Current damage pipeline data.

Returns

DamageInfo

The same data instance updated with the modified amounts.