public float principalAttackValueFire(Monster attackMonster, Move attackMove)
        {
            float pAV = attackMove.getMaxDamage();


            float moveSize     = attackMove.getSize();
            float moveSpeed    = attackMove.getSpeed();
            float moveStrength = attackMove.getStrength();

            moveSize     = moveSize / 100;
            moveSpeed    = moveSpeed / 100;
            moveStrength = moveStrength / 100;

            int creatureSpeed    = attackMonster.getSpeed();
            int creatureStrength = attackMonster.getstrength();
            int creatureSize     = attackMonster.getSize();

            moveSize     = moveSize * creatureSize;
            moveSpeed    = moveSpeed * creatureSpeed;
            moveStrength = moveStrength * creatureStrength;

            float total = moveSize + moveSpeed + moveStrength;


            float effectivnessDecimal = total / 100;

            //  Console.Write("move max damage @ 100% effecency " + pAV + "\n");

            pAV = pAV * effectivnessDecimal;
            //Console.Write("max damage after applied (defense still to be calculated) " + pAV + "\n");

            float levelMod = attackMonster.getlevel();

            levelMod = levelMod / 100;
            //    Console.Write(" level mod attacker " + levelMod + "\n");
            pAV = pAV * levelMod;
            //  Console.Write("pAV w/ level consider " + pAV + "\n");
            float fireMult = attackMove.getFire();

            fireMult = fireMult / 100;
            // Console.Write("fire mult " + fireMult + "\n");

            pAV = pAV * fireMult;
            Console.Write("pAV w/ fire " + pAV + "\n");
            Console.Write("\n");
            return(pAV);
        }
Esempio n. 2
0
        public float principalAttackValue(Monster attackMonster, Move attackMove)
        {
            float pAV = attackMove.getMaxDamage();


            float moveSize     = attackMove.getSizeAttacker();
            float moveSpeed    = attackMove.getSpeed();
            float moveStrength = attackMove.getStrength();

            moveSize     = moveSize / 100;
            moveSpeed    = moveSpeed / 100;
            moveStrength = moveStrength / 100;

            int creatureSpeed    = attackMonster.getSpeed();
            int creatureStrength = attackMonster.getStrength();
            int creatureSize     = attackMonster.getSize();

            moveSize     = moveSize * creatureSize;
            moveSpeed    = moveSpeed * creatureSpeed;
            moveStrength = moveStrength * creatureStrength;
            //Console.Write("move size " + moveSize + "\n");
            //Console.Write("move speed " + moveSpeed + "\n");
            //Console.Write("move Strength " + moveStrength + "\n");

            float total = moveSize + moveSpeed + moveStrength;
            float effectivnessDecimal = total / 100;

            //Console.Write("move max damage @ 100% effecency " + pAV + "\n");
            //  Console.Write("effectivness deceimal= " + effectivnessDecimal + "\n");
            pAV = pAV * effectivnessDecimal;
            // Console.Write("max damage after applied (defense still to be calculated) " + pAV + "\n");

            float levelMod = attackMonster.getLevel();

            levelMod = levelMod / 100;
            // Console.Write(" level mod attacker " + levelMod + "\n");
            pAV = pAV * levelMod;
            //    Console.Write(" final pAV w/ level consider " + pAV + "\n");
            //      Console.Write("\n");
            return(pAV);
        }
        public float principalAttackValueFire(Monster attackMonster, Move attackMove)
        {
            float pAV = attackMove.getMaxDamage();

            float moveSize = attackMove.getSize();
            float moveSpeed = attackMove.getSpeed();
            float moveStrength = attackMove.getStrength();

            moveSize = moveSize / 100;
            moveSpeed = moveSpeed / 100;
            moveStrength = moveStrength / 100;

            int creatureSpeed = attackMonster.getSpeed();
            int creatureStrength = attackMonster.getstrength();
            int creatureSize = attackMonster.getSize();

            moveSize = moveSize * creatureSize;
            moveSpeed = moveSpeed * creatureSpeed;
            moveStrength = moveStrength * creatureStrength;

            float total = moveSize + moveSpeed + moveStrength;

            float effectivnessDecimal = total / 100;
              //  Console.Write("move max damage @ 100% effecency " + pAV + "\n");

            pAV = pAV * effectivnessDecimal;
            //Console.Write("max damage after applied (defense still to be calculated) " + pAV + "\n");

            float levelMod = attackMonster.getlevel();
            levelMod = levelMod / 100;
            //    Console.Write(" level mod attacker " + levelMod + "\n");
            pAV = pAV * levelMod;
              //  Console.Write("pAV w/ level consider " + pAV + "\n");
            float fireMult = attackMove.getFire();
            fireMult = fireMult / 100;
               // Console.Write("fire mult " + fireMult + "\n");

            pAV = pAV * fireMult;
            Console.Write("pAV w/ fire " + pAV + "\n");
            Console.Write("\n");
            return pAV;
        }
        public float principalAttackValue(Monster attackMonster, Move attackMove)
        {
            float pAV = attackMove.getMaxDamage();

            float moveSize = attackMove.getSizeAttacker();
            float moveSpeed = attackMove.getSpeed();
            float moveStrength = attackMove.getStrength();

            moveSize = moveSize / 100;
            moveSpeed = moveSpeed / 100;
            moveStrength = moveStrength / 100;

            int creatureSpeed = attackMonster.getSpeed();
            int creatureStrength = attackMonster.getStrength();
            int creatureSize = attackMonster.getSize();

            moveSize = moveSize * creatureSize;
            moveSpeed = moveSpeed * creatureSpeed;
            moveStrength = moveStrength * creatureStrength;
               //Console.Write("move size " + moveSize + "\n");
            //Console.Write("move speed " + moveSpeed + "\n");
            //Console.Write("move Strength " + moveStrength + "\n");

            float total = moveSize + moveSpeed + moveStrength;
            float effectivnessDecimal = total / 100;

            //Console.Write("move max damage @ 100% effecency " + pAV + "\n");
              //  Console.Write("effectivness deceimal= " + effectivnessDecimal + "\n");
            pAV = pAV * effectivnessDecimal;
            // Console.Write("max damage after applied (defense still to be calculated) " + pAV + "\n");

            float levelMod = attackMonster.getLevel();
            levelMod = levelMod / 100;
               // Console.Write(" level mod attacker " + levelMod + "\n");
            pAV = pAV * levelMod;
            //    Console.Write(" final pAV w/ level consider " + pAV + "\n");
              //      Console.Write("\n");
            return pAV;
        }