Class ApplyPercentageDmgModifiersStep
- 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
-
objectApplyPercentageDmgModifiersStep
- 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
dataDamageInfoCurrent damage pipeline data.
Returns
- DamageInfo
The same
datainstance updated with the modified amounts and any prevention reasons.