Ejemplo n.º 1
0
        public void TankDK_OverallCheck()
        {
            Rawr.TankDK.CalculationsTankDK CalcTankDK = new Rawr.TankDK.CalculationsTankDK();
            CalculationOptionsTankDK       calcOpts   = new CalculationOptionsTankDK();

            m_char.CalculationOptions = calcOpts;
            Item additionalItem = new Item("TestItem", ItemQuality.Common, ItemType.None, 102010, "", ItemSlot.Back, "", false,
                                           new Stats(), null,
                                           ItemSlot.None, ItemSlot.None, ItemSlot.None,
                                           0, 0, ItemDamageType.Physical, 0, "");

            CharacterCalculationsTankDK calcs = CalcTankDK.GetCharacterCalculations(m_char) as CharacterCalculationsTankDK;
            float OValueBase = calcs.OverallPoints;

            float[] SValueBase = calcs.SubPoints;

            // Setup the stats on what we want.
            additionalItem.Stats.Stamina = 5000;
            calcs = CalcTankDK.GetCharacterCalculations(m_char, additionalItem) as CharacterCalculationsTankDK;
            float OValueStam = calcs.OverallPoints;

            float[] SValueStam = calcs.SubPoints;
            additionalItem.Stats.Stamina = 0;
            Assert.IsTrue(OValueBase < OValueStam, "Stamina");

            additionalItem.Stats.DodgeRating = 5000;
            calcs = CalcTankDK.GetCharacterCalculations(m_char, additionalItem) as CharacterCalculationsTankDK;
            float OValueDodge = calcs.OverallPoints;

            float[] SValueDodge = calcs.SubPoints;
            additionalItem.Stats.DodgeRating = 0;

            additionalItem.Stats.DodgeRating = 10000;
            calcs = CalcTankDK.GetCharacterCalculations(m_char, additionalItem) as CharacterCalculationsTankDK;
            float OValueDodge2 = calcs.OverallPoints;

            float[] SValueDodge2 = calcs.SubPoints;
            additionalItem.Stats.DodgeRating = 0;
            Assert.IsTrue(OValueDodge < OValueDodge2, "Dodge2");
            Assert.IsTrue(SValueBase[0] < SValueDodge[0], "Dodge1"); // Due to inverse scaling between Burst & Avoidance, only check Mitigation improvement.

            additionalItem.Stats.ParryRating = 5000;
            calcs = CalcTankDK.GetCharacterCalculations(m_char, additionalItem) as CharacterCalculationsTankDK;
            float OValueParry = calcs.OverallPoints;

            float[] SValueParry = calcs.SubPoints;
            additionalItem.Stats.ParryRating = 0;
            Assert.IsTrue(SValueBase[0] < SValueParry[0], "Parry"); // Due to inverse scaling between Burst & Avoidance, only check Mitigation improvement.

            additionalItem.Stats.MasteryRating = 5000;
            calcs = CalcTankDK.GetCharacterCalculations(m_char, additionalItem) as CharacterCalculationsTankDK;
            float OValueMastery = calcs.OverallPoints;

            float[] SValueMastery = calcs.SubPoints;
            additionalItem.Stats.MasteryRating = 0;
            Assert.IsTrue(OValueBase < OValueMastery, "Mastery");
        }
Ejemplo n.º 2
0
        public void TankDK_BuildAcceptance()
        {
            Rawr.TankDK.CalculationsTankDK CalcTankDK = new Rawr.TankDK.CalculationsTankDK();

            CalculationOptionsTankDK calcOpts = new CalculationOptionsTankDK();

            m_char.CalculationOptions = calcOpts;
            this.testContextInstance.BeginTimer("GetCalc");
            CharacterCalculationsBase calcs = CalcTankDK.GetCharacterCalculations(m_char);

            calcs.GetCharacterDisplayCalculationValues();
            this.testContextInstance.EndTimer("GetCalc");
        }
Ejemplo n.º 3
0
        public void TankDK_BuildAcceptance()
        {
            Rawr.TankDK.CalculationsTankDK CalcTankDK = new Rawr.TankDK.CalculationsTankDK();

            CalculationOptionsTankDK calcOpts = new CalculationOptionsTankDK();
            m_char.CalculationOptions = calcOpts;
            this.testContextInstance.BeginTimer("GetCalc");
            CharacterCalculationsBase calcs = CalcTankDK.GetCharacterCalculations(m_char);
            calcs.GetCharacterDisplayCalculationValues();
            this.testContextInstance.EndTimer("GetCalc");
        }
Ejemplo n.º 4
0
        public void TankDK_OverallCheck()
        {
            Rawr.TankDK.CalculationsTankDK CalcTankDK = new Rawr.TankDK.CalculationsTankDK();
            CalculationOptionsTankDK calcOpts = new CalculationOptionsTankDK();
            m_char.CalculationOptions = calcOpts;
            Item additionalItem = new Item("TestItem", ItemQuality.Common, ItemType.None, 102010, "", ItemSlot.Back, "", false,
                new Stats(), null,
                ItemSlot.None, ItemSlot.None, ItemSlot.None,
                0, 0, ItemDamageType.Physical, 0, "");

            CharacterCalculationsTankDK calcs = CalcTankDK.GetCharacterCalculations(m_char) as CharacterCalculationsTankDK;
            float OValueBase = calcs.OverallPoints;
            float[] SValueBase = calcs.SubPoints;

            // Setup the stats on what we want.
            additionalItem.Stats.Stamina = 5000;
            calcs = CalcTankDK.GetCharacterCalculations(m_char, additionalItem) as CharacterCalculationsTankDK;
            float OValueStam = calcs.OverallPoints;
            float[] SValueStam = calcs.SubPoints;
            additionalItem.Stats.Stamina = 0;
            Assert.IsTrue(OValueBase < OValueStam, "Stamina");
            
            additionalItem.Stats.DodgeRating = 5000;
            calcs = CalcTankDK.GetCharacterCalculations(m_char, additionalItem) as CharacterCalculationsTankDK;
            float OValueDodge = calcs.OverallPoints;
            float[] SValueDodge = calcs.SubPoints;
            additionalItem.Stats.DodgeRating = 0;

            additionalItem.Stats.DodgeRating = 10000;
            calcs = CalcTankDK.GetCharacterCalculations(m_char, additionalItem) as CharacterCalculationsTankDK;
            float OValueDodge2 = calcs.OverallPoints;
            float[] SValueDodge2 = calcs.SubPoints;
            additionalItem.Stats.DodgeRating = 0;
            Assert.IsTrue(OValueDodge < OValueDodge2, "Dodge2");
            Assert.IsTrue(SValueBase[0] < SValueDodge[0], "Dodge1"); // Due to inverse scaling between Burst & Avoidance, only check Mitigation improvement.

            additionalItem.Stats.ParryRating = 5000;
            calcs = CalcTankDK.GetCharacterCalculations(m_char, additionalItem) as CharacterCalculationsTankDK;
            float OValueParry = calcs.OverallPoints;
            float[] SValueParry = calcs.SubPoints;
            additionalItem.Stats.ParryRating = 0;
            Assert.IsTrue(SValueBase[0] < SValueParry[0], "Parry"); // Due to inverse scaling between Burst & Avoidance, only check Mitigation improvement.
            
            additionalItem.Stats.MasteryRating = 5000;
            calcs = CalcTankDK.GetCharacterCalculations(m_char, additionalItem) as CharacterCalculationsTankDK;
            float OValueMastery = calcs.OverallPoints;
            float[] SValueMastery = calcs.SubPoints;
            additionalItem.Stats.MasteryRating = 0;
            Assert.IsTrue(OValueBase < OValueMastery, "Mastery");
            
        }