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