Table of Contents

Class ApplyPercentageDmgModifiersStep

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

Damage step that applies generic and configured damage source/type modifiers (for example weaknesses and resistances) to the current damage amount.

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

Properties

DisplayName

Human readable name shown in pipeline editors.

public override string DisplayName { get; }

Property Value

string

Methods

ProcessStep(DamageInfo)

Applies configured percentage-based modifiers to Amounts. If the configured adjustments lead to immunity or a terminal prevention condition the method will mark the DamageInfo with the appropriate DamagePreventionReason.

public override DamageInfo ProcessStep(DamageInfo data)

Parameters

data DamageInfo

Current damage pipeline data.

Returns

DamageInfo

The same data instance updated with the modified amounts and any prevention reasons.