public override int GetHashCode() { unchecked { var hashCode = EffectName != null?EffectName.GetHashCode() : 0; hashCode = (hashCode * 397) ^ EffectDuration.GetHashCode(); hashCode = (hashCode * 397) ^ EffectPower.GetHashCode(); hashCode = (hashCode * 397) ^ EffectRate.GetHashCode(); hashCode = (hashCode * 397) ^ IsDecaying.GetHashCode(); hashCode = (hashCode * 397) ^ StatIndex; hashCode = (hashCode * 397) ^ (TargetStats != null ? TargetStats.GetHashCode() : 0); return(hashCode); } }
public override int GetHashCode() { return(EffectDuration.GetHashCode()); }