Exemple #1
0
        public void Atk()
        {
            Print.Combat1();
            Print.Combat2(boss.Nom, boss.Life);
            while (boss.Life >= 10 && chara.Life > 0)
            {
                Print.Combat3(boss.Nom.ToUpper(), chara.Nom.ToUpper(), boss.Power);
                chara.Damage(boss.Power);
                Print.Combat4(chara.Nom, chara.Life);
                Console.WriteLine("Que veux-tu faire " + chara.Nom.ToUpper());
                Print.Combat5();
                int c = int.Parse(Console.ReadLine());
                Choice(c);
                if (boss.Life > 0 && c != 4)
                {
                    Print.Combat6(boss.Nom);
                }
            }

            Print.Combat7();
            phase2();
        }
Exemple #2
0
 public void phase2()
 {
     if (boss.Life < 10)
     {
         boss.Power += 4;
         Console.Clear();
         Print.Combat11();
         Print.Combat12(boss.Nom, boss.Life);
         while (boss.Life > 0 && chara.Life > 0)
         {
             Print.Combat13(boss.Nom.ToUpper(), chara.Nom.ToUpper(), boss.Power);
             chara.Damage(boss.Power);
             Print.Combat4(chara.Nom, chara.Life);
             Console.WriteLine("Que veux-tu faire " + chara.Nom.ToUpper());
             Print.Combat5();
             int c = int.Parse(Console.ReadLine());
             Choice2(c);
             if (boss.Life > 0 && c != 4)
             {
                 Print.Combat6(boss.Nom);
             }
         }
     }
 }