public bool Equals(SmogonType?other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(Name == other.Name && AttackEffectiveness.SetEquals(other.AttackEffectiveness) && GenFamily.SetEquals(other.GenFamily) && Description == other.Description); }
public decimal GetAttackEffectiveness(IType against) { return(AttackEffectiveness.GetValueOrNull(against) ?? 1); }