예제 #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);
 }
예제 #2
0
 public void AddEffect(RankedEffect newEffect) => effectManager.AddEffect(newEffect);