Example #1
0
 public static void AfterFight(ref ICharacters character, ref ICharacters opponent)
 {
     if (opponent.HitPoints <= 80)
     {
         Console.Clear();
         Console.WriteLine("YOU WIN!!! :)");
         Thread.Sleep(2000);
         character.AmountOfAtributes += 5;
         Arena.CharacterStatsAfterFight(ref character, ref opponent);
         MoneyAssignment.MoneyAfterFight(ref character);
         Increase.Add(character);
         character.Level += 1;
     }
     if (character.HitPoints <= 80)
     {
         Console.WriteLine("YOU LOST!");
         Thread.Sleep(2000);
         Arena.CharacterStatsAfterFight(ref character, ref opponent);
         MoneyAfterDefeat.MoneyAfterFight(character);
         CityMap.ShowMap(character);
     }
 }
Example #2
0
 public static void Boss(ICharacters character, ICharacters opponent)
 {
     if (opponent.HitPoints <= 80)
     {
         Console.Clear();
         Console.WriteLine("YOU WIN with bossss!!! :)");
         Thread.Sleep(2000);
         character.AmountOfAtributes += 5;
         Arena.CharacterStatsAfterFight(ref character, ref opponent);
         MoneyAssignment.MoneyAfterFight(ref character);
         Console.WriteLine("YOU WIN THE GAME. YOU ARE THE BEST! :D");
         Thread.Sleep(5000);
         Ending.TheEnd();
     }
     if (character.HitPoints <= 80)
     {
         Console.WriteLine("YOU LOST :(");
         Thread.Sleep(2000);
         Arena.CharacterStatsAfterFight(ref character, ref opponent);
         MoneyAfterDefeat.MoneyAfterFight(character);
         CityMap.ShowMap(character);
     }
 }