Beispiel #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Brute.GetHashCode();
         hashCode = (hashCode * 397) ^ Burn.GetHashCode();
         hashCode = (hashCode * 397) ^ Toxin.GetHashCode();
         hashCode = (hashCode * 397) ^ Suffocation.GetHashCode();
         return(hashCode);
     }
 }
        private static float nextSuffocate;// = 0f;
        internal void UpdateSuffocation(Player __instance)
        {
            if (__instance.GetOxygenAvailable() > 3)
            {
                return;
            }


            if (Time.time > nextSuffocate)
            {
                nextSuffocate = Time.time + 1f;
                saveData.SuffocateResist_XP += (1f * cfg.XP_Multiplier);
            }

            Suffocation.UpdateSuffocation(__instance);
        }
Beispiel #3
0
 public bool Equals(Damage other)
 {
     return(Brute.Equals(other.Brute) && Burn.Equals(other.Burn) && Toxin.Equals(other.Toxin) && Suffocation.Equals(other.Suffocation));
 }