Table of Contents

Class ApplyCriticalMultiplierStep

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

Damage step that applies critical hit multipliers when the current damage is flagged as critical.

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

Properties

DisplayName

Human readable name shown in pipeline editors.

public override string DisplayName { get; }

Property Value

string

Methods

ProcessStep(DamageInfo)

Multiplies the current damage by the critical multiplier from DamageInfo when the hit is marked critical. If the multiplier is 1 or invalid, no change occurs.

public override DamageInfo ProcessStep(DamageInfo data)

Parameters

data DamageInfo

Current damage pipeline data.

Returns

DamageInfo

The same data instance updated with the multiplied amount when applicable.