Calculation (GEC)
Last updated
Last updated
GameplayEffectCalculations (GEC) are way to execute any custom code when an GameplayEffect is applied. They can be attached to any GameplayEffect. They usually involve doing some sort of "calculation" (e.g. Damage formula involving multiple Attributes like MinDmg, MaxDmg, CritChance, CritBonus) and returning a list of Modifiers to be applied. Calculations are only applied when used with Instant or Periodic Effects (GE)
Inherit from GameplayEffectCalculation
Override the Execute method and implement whatever you want (e.g. DamageCalculation)
Create an ScriptableObject container (e.g. GameplayEffectCalculationSO_DamageCalculation)