Class ApplyCriticalMultiplierStep
- 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
-
objectApplyCriticalMultiplierStep
- 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
dataDamageInfoCurrent damage pipeline data.
Returns
- DamageInfo
The same
datainstance updated with the multiplied amount when applicable.