private int GetElectricCooldown(Pet host, PetLevel type)
 {
     if (Enumerable.Range(0, 30).Contains(type.Level))
         return (int)(2.5 - type.Level * 0.01666666666666666666666666666667) * 1000;
     else if (Enumerable.Range(30, 20).Contains(type.Level))
         return (int)(2.0 - (type.Level - 30) * 0.025) * 1000;
     else if (Enumerable.Range(50, 20).Contains(type.Level))
         return (int)(1.5 - (type.Level - 50) * 0.025) * 1000;
     else if (Enumerable.Range(70, 20).Contains(type.Level))
         return (int)(1.5 - (type.Level - 70) * 0.025) * 1000;
     else if (Enumerable.Range(90, 11).Contains(type.Level))
         return (int)(0.5 - (type.Level - 90) * 0.04) * 1000;
     throw new Exception("PetLevel not supported");
 }
 private int getCooldown(Pet host, PetLevel type)
 {
     if (type.Level <= 30)
     {
         double cool = 2500;
         for (int i = 0; i < type.Level; i++)
             cool -= 16.6666666666666;
         return (int)cool;
     }
     else if (type.Level > 89)
     {
         double cool = 500;
         for (int i = 0; i < type.Level - 90; i++)
             cool -= 40;
         return (int)cool;
     }
     else
     {
         double cool = 2000;
         for (int i = 0; i < type.Level - 30; i++)
             cool -= 25;
         return (int)cool;
     }
 }
 private double getDist(Pet host, PetLevel type)
 {
     return 2;
 }
 private int GetElectricDamage(Pet host, PetLevel type)
 {
     if (Enumerable.Range(0, 30).Contains(type.Level))
         return (int)(5 + type.Level * 0.5);
     else if (Enumerable.Range(30, 20).Contains(type.Level))
         return (int)(20 + (type.Level - 30) * 1.7);
     else if (Enumerable.Range(50, 20).Contains(type.Level))
         return (int)(54 + (type.Level - 50) * 3.15);
     else if (Enumerable.Range(70, 20).Contains(type.Level))
         return (int)(117 + (type.Level - 70) * 5.35);
     else if (Enumerable.Range(90, 11).Contains(type.Level))
         return (int)(224 + (type.Level - 90) * 7.6);
     throw new Exception("PetLevel not supported");
 }
 private double GetElectricDistance(Pet host, PetLevel type)
 {
     if (Enumerable.Range(0, 30).Contains(type.Level))
         return Math.Round(0.1 + type.Level * 0.01333333333333333333333333333333, 2);
     if (Enumerable.Range(30, 20).Contains(type.Level))
         return Math.Round(0.5 + (type.Level - 30) * 0.025, 2);
     if (Enumerable.Range(50, 20).Contains(type.Level))
         return Math.Round(1.0 + (type.Level - 50) * 0.025, 2);
     if (Enumerable.Range(70, 20).Contains(type.Level))
         return Math.Round(1.5 + (type.Level - 70) * 0.025, 2);
     if (Enumerable.Range(90, 11).Contains(type.Level))
         return Math.Round(2.0 + (type.Level - 90) * 0.025, 2);
     throw new Exception("PetLevel not supported");
 }