Exemplo n.º 1
0
 internal bool AddEffect(RankedEffect newEffect)
 {
     foreach (RankedEffect existing in effects)
     {
         if (existing.Effect.StackCategory == newEffect.Effect.StackCategory)
         {
             if (newEffect.Rank >= existing.Rank)
             {
                 effects.Remove(existing);
                 effects.Add(newEffect);
                 return(true);
             }
             else
             {
                 return(false);
             }
         }
     }
     effects.Add(newEffect);
     return(true);
 }
Exemplo n.º 2
0
 public void AddEffect(RankedEffect newEffect) => effectManager.AddEffect(newEffect);