public void AddStatusEffect(StatusEffect effect)
        {
            if (effect != null) {
                Type type = effect.GetType();
                if (statusEffects.ContainsKey(type)) {
                    statusEffects[type].Stack(effect);
                } else {
                    statusEffects[type] = effect;
                    effect.OnAdd(this);
                }

                StatusInflicted(this, new FighterEventArgs {
                    StatusEffect = statusEffects[type]
                });
            }
        }
 public abstract void Stack(StatusEffect other);
示例#3
0
 public abstract void Stack(StatusEffect other);