using System.Collections; using System.Collections.Generic; using UnityEngine; public class StatusEffect : BaseEffect { public float duration; public StackingRule stackingRule; public bool applyToTargetsHit; [Header("Should be toggled only when you want to apply the effect ONLY to yourself")] public bool applyToSelf; public float chanceToApply = 100f; public int defaultNumberOfStacks = 1; //TODO: add chance to apply and increase number based on chance rolls public override void ApplyEffect(Taggable user, List targets, BaseAbility source) { base.ApplyEffect(user, targets, source); } public virtual RuntimeEffectInstance CreateEffectInstance() { return CObjectPool.Get(); } } public enum StackingRule { StackUnlimited, Refresh_And_ReplaceIfHigher, }