public static bool TryFindByStatus(string status, out ChatEffectBase chatEffect) { foreach (ChatEffectBase base2 in All.Values) { if (base2.Status.Name.ToLower() == status.ToLower()) { chatEffect = base2; return true; } } chatEffect = null; return false; }
public static bool TryFindByDescription(string description, out ChatEffectBase effect) { effect = null; foreach (ChatEffectBase base2 in All.Values) { if (base2.Name.ToLower() == description.ToLower()) { effect = base2; return true; } } return false; }