Beispiel #1
0
 public void Hit(Wrestler opponent)
 {
     if (!opponent.Shield)
     {
         opponent.Damage(attackPoint + extraAttack - opponent.extraBlock);
     }
 }
 public static void BB(Wrestler instance, Wrestler opponent, Round round)
 {
     if (Special_attack.GetProbability() <= 8)
     {
         opponent.Damage(opponent.lifePoint);
         Console.WriteLine($"{instance.Name} OS son adversaire, c'est cheaté...");
     }
     else
     {
         Console.WriteLine($"{instance.Name} rate son attaque spéciale");
     }
     round.SetActionFromOrder(instance, Round.action.Null);
 }
        public static void TH(Wrestler instance, Wrestler opponent, Round round)
        {
            if (Special_attack.GetProbability() <= 20)
            {
                instance.attackPoint += 2;
                instance.Damage(1);
                Console.WriteLine($"L'attaque de {instance.Name} augmente de deux points mais il perd 1 point de vie");
            }
            else
            {
                Console.WriteLine($"{instance.Name} rate son attaque spéciale");
            }

            round.SetActionFromOrder(instance, Round.action.Null);
        }
 public static void RM(Wrestler instance, Wrestler opponent, Round round)
 {
     if (Special_attack.GetProbability() <= 40)
     {
         instance.Damage(3);
         Console.WriteLine($"{instance.Name} s'inglige 3 points de dégats");
     }
     else
     {
         instance.attackPoint += 1;
         instance.extraBlock  += 2;
         Console.WriteLine($"{instance.Name} augmente ses dégats de 1 et bloque 2 dégats");
     }
     round.SetActionFromOrder(instance, Round.action.Null);
 }
 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");
     }
 }