Exemple #1
0
 public new void SetEnemyMaxHealth(int health)
 {
     if (active)
     {
         throw new Exception("Unable to set maximum health on an infinite enemy... silly");
     }
     else
     {
         CustomEnemySpeed a = (CustomEnemySpeed)this;
         a.SetEnemyMaxHealth(health);
         setMaxHP = false;
     }
 }
Exemple #2
0
 // Function hiding is done here to ensure non-weird behavior from setting these with the infinite enemy loaded.
 public new void OverrideDamageDone(int damage)
 {
     if (active)
     {
         damageDone = damage;
         _CalculateNewDanceSpeed();
     }
     else
     {
         CustomEnemySpeed a = (CustomEnemySpeed)this;
         a.OverrideDamageDone(damage);
     }
 }