예제 #1
0
 public static void AddSimResult(SimResult result)
 {
     lock (CurrentResults)
     {
         CurrentResults.Add(result);
     }
 }
예제 #2
0
        public Simulation(Player player, Boss boss, double fightLength, bool autoBossLife = true, double lowLifeTime = 0, double fightLengthMod = 0.2)
        {
            Player      = player;
            Boss        = boss;
            player.Sim  = this;
            Boss.Sim    = this;
            FightLength = fightLength * (1 + fightLengthMod / 2 - (Randomer.NextDouble() * fightLengthMod));
            Results     = new SimResult(FightLength);
            Damage      = 0;
            CurrentTime = 0;
            AutoLife    = autoBossLife;
            LowLifeTime = lowLifeTime;

            lastHit = -hitEvery;

            Ended = false;
        }
예제 #3
0
        public Simulation(Player player, Boss boss, double fightLength, bool autoBossLife = true, double lowLifeTime = 0, double fightLengthMod = 0.2, bool unlimitedMana = false, bool unlimitedResource = false, bool tanking = false, double tankHitEvery = 1, double tankHitRage = 25)
        {
            Player      = player;
            Boss        = boss;
            player.Sim  = this;
            Boss.Sim    = this;
            FightLength = fightLength * (1 + fightLengthMod / 2 - (Randomer.NextDouble() * fightLengthMod));
            Results     = new SimResult(FightLength);
            Damage      = 0;
            Threat      = 0;
            CurrentTime = 0;
            AutoLife    = autoBossLife;
            LowLifeTime = lowLifeTime;

            UnlimitedMana     = unlimitedMana;
            UnlimitedResource = unlimitedResource;
            Tanking           = tanking;
            TankHitEvery      = tankHitEvery;
            TankHitRage       = tankHitRage;

            LastHit = -TankHitEvery;

            Ended = false;
        }