Пример #1
0
        public int Action(int strength, double crit, double multiplier, int increase)
        {
            var dmg = 5 + strength * 4;

            crit = crit + 25;
            return(AttackLogic.CalculateAttackDamage(dmg, crit, multiplier, increase));
        }
Пример #2
0
        public int Action(int spellPower, double crit, double multiplier, int increase)
        {
            var value = Convert.ToInt32(spellPower * 1.4);

            return(AttackLogic.CalculateAttackDamage(value, crit, multiplier, increase));
        }
Пример #3
0
        public int Action(int spellPower, double crit, double multi, int increase)
        {
            var heal = Convert.ToInt32(spellPower * 2.2);

            return(AttackLogic.CalculateAttackDamage(heal, crit, multi, increase));
        }
Пример #4
0
 public void Test1()
 {
     Assert.AreEqual(200, AttackLogic.CalculateAttackDamage(100, 20, 1, 0));
 }
Пример #5
0
        public int DoT(int spellPower, double crit, double multi, int increase)
        {
            var dmg = Convert.ToInt32(spellPower * .9);

            return(AttackLogic.CalculateAttackDamage(dmg, crit, multi, increase));
        }