Ejemplo n.º 1
0
 protected override void DoEnter(D3Player Entity)
 {
     if (!inited)
     {
         Astronaut.Common.Serializer<Config> serializer = new Astronaut.Common.Serializer<Config>();
         string subDir = "\\Scripts\\";
         string workingDir = System.IO.Directory.GetCurrentDirectory();
         try
         {
             CombatConfig = serializer.Load(workingDir + subDir + ConfigFileName);
         }
         catch { CombatConfig = new Config(); }
         meleeRange = CombatConfig.MeleeRange;
         inited = true;
         setPower();
     }
 }
Ejemplo n.º 2
0
 public CombatState()
 {
     if (!inited)
     {
         // load the config from a xml
         Astronaut.Common.Serializer<Config> serializer = new Astronaut.Common.Serializer<Config>();
         string subDir = string.Format("\\Scripts\\{0}\\", D3Control.playerClass);
         string workingDir = System.IO.Directory.GetCurrentDirectory();
         try
         {
             CombatConfig = serializer.Load(workingDir + subDir + ConfigFileName);
         }
         catch { CombatConfig = new Config(); }
         meleeRange = CombatConfig.MeleeRange;
         inited = true;
         setFury();
     }
     checkThreadStatus();
 }
Ejemplo n.º 3
0
        public CombatState()
        {
            if (!inited)
            {
                Astronaut.Common.Serializer<Config> serializer = new Astronaut.Common.Serializer<Config>();
                string subDir = string.Format("\\Scripts\\{0}\\", D3Control.playerClass);
                string workingDir = System.IO.Directory.GetCurrentDirectory();
                try
                {
                    CombatConfig = serializer.Load(workingDir + subDir + ConfigFileName);
                }
                catch { CombatConfig = new Config(); }
                meleeRange = CombatConfig.MeleeRange;
                inited = true;
                HitAndRuntimer.ChangeDuration(CombatConfig.DHDefaultSettings.HitandRunTimer * 1000);

            }
            setPower();
            checkThreadStatus();
        }
Ejemplo n.º 4
0
 public CombatState()
 {
     if (!inited)
     {
         // load the config from a xml
         Astronaut.Common.Serializer<Config> serializer = new Astronaut.Common.Serializer<Config>();
         string subDir = string.Format("\\Scripts\\{0}\\", D3Control.playerClass);
         string workingDir = System.IO.Directory.GetCurrentDirectory();
         try
         {
             CombatConfig = serializer.Load(workingDir + subDir + ConfigFileName);
         }
         catch { CombatConfig = new Config(); }
         meleeRange = CombatConfig.MeleeRange;
         inited = true;
         setFury();
         warCryTimer.ChangeDuration(CombatConfig.BarbDefaultSettings.WarCryTimer * 1000);
     }
     //keepSpelllStop();
     checkThreadStatus();
 }