Exemplo n.º 1
0
 public static void DP(Wrestler instance, Wrestler opponent, Round round)
 {
     round.SetActionFromOrder(instance, Round.action.Null);
     if (Special_attack.GetProbability() <= 30)
     {
         instance.Heal(2);
         Console.WriteLine($"{instance.Name} se soigne de deux points de vie");
         round.SetActionFromOrder(instance, Round.action.Null);
     }
     if (Special_attack.GetProbability() <= 10)
     {
         instance.extraBlock = -(instance.defensePoint - 1);
         Console.WriteLine($"{instance.Name} rate son attaque spéciale mais effectue une blocage de dernière seconde");
         round.SetActionFromOrder(instance, Round.action.Null);
     }
     if (Special_attack.GetProbability() <= 10)
     {
         opponent.Damage(3);
         instance.Heal(3);
         round.SetActionFromOrder(instance, Round.action.Attack);
         Console.WriteLine($"{instance.Name} vole 3 points de vie à {opponent.Name} et l'attaque");
     }
 }
Exemplo n.º 2
0
        public static void JS(Wrestler instance, Wrestler opponent, Round round)
        {
            if (Special_attack.GetProbability() <= 40)
            {
                instance.Heal(5);

                Console.WriteLine($"{instance.Name} regagne 5 points de vie");
            }
            if (Special_attack.GetProbability() <= 60)
            {
                instance.defensePoint += 1;
                Console.WriteLine($"La défense de {instance.Name} augmente d'un point");
            }

            round.SetActionFromOrder(instance, Round.action.Null);
        }