예제 #1
0
파일: Actus.cs 프로젝트: Bedengus/ULF
 public static void Shoot(Persona Ego)
 {
     Console.WriteLine("Inform the target.");
     Σ.notou = Console.ReadLine();
     Console.WriteLine("Inform the missile type.");
     Σ.notod = Console.ReadLine();
     if (Ego.ArchTrac(Σ.notod) != null)
     {
         Ego.ArchTrac(Σ.notod).Quantitas--;
         Console.WriteLine("You have " + Ego.ArchTrac(Σ.notod).Quantitas + " " + Ego.ArchTrac(Σ.notod).Nomen + " left.");
         Mechanicae.PulsareLonge(Ego, Primor.Hostis[Σ.notou], Ego.Arma.DamnumT, Ego.ArchTrac(Σ.notod).Value, Ego.ArchTrac(Σ.notod).Pondus, 2);
         Console.WriteLine(Σ.notou + " has " + Primor.Hostis[Σ.notou].PV[1] + " out of " + Primor.Hostis[Σ.notou].PV[0] + ".");
     }
     else
     {
         Console.WriteLine("You cannot shoot with that.");
     }
 }