Exemplo n.º 1
0
        private static void testCombat(int lvl)
        {
            Player p1 = new Player();
            for (int i = 0; i <= 5; i++)
            {
                Console.WriteLine("Case: "+i);
                p1.testBalance(lvl, i);
                int totalKillCount = 0;
                for (int j = 0; j < 1000; j++)
                {
                    while (p1.HP > 0)
                    {
                        Monster monster = makeMonster(p1.Level);

                        battleTest(p1, monster);
                    }
                    p1.HP = p1.MaxHP;
                    totalKillCount += killCount;
                    killCount = 0;
                }
                p1.DisplayPlayer();
                Console.WriteLine("Total Kill Count: "+totalKillCount);
                Console.WriteLine("KDR: "+(totalKillCount/1000.0));
                Console.WriteLine();
            }
             
        }