diff --git a/Encounters.cs b/Encounters.cs index af47ceb..94d4271 100644 --- a/Encounters.cs +++ b/Encounters.cs @@ -94,7 +94,7 @@ public static void Combat(Enemy enemy) WriteLine("You lose " + damage + " health and deal " + attack + " damage"); currentPlayer.health -= damage; enemy.health -= attack; - ReadKey(); + ReadKey(true); } else if (input == "r") { @@ -108,12 +108,12 @@ public static void Combat(Enemy enemy) damage = 0; WriteLine("You lose " + damage + " health and are unable to escape."); currentPlayer.health -= damage; - ReadKey(); + ReadKey(true); } else { WriteLine("You use your crazy mobility to evade the attacks of " + enemy.name + " and you escape!"); - ReadKey(); + ReadKey(true); Shop.RunShop(currentPlayer); } @@ -143,12 +143,12 @@ public static void Combat(Enemy enemy) WriteLine("You lose " + damage + " health. \nOne Potion Consumed."); currentPlayer.potion--; } - ReadKey(); + ReadKey(true); } if (currentPlayer.health <= 0) { WriteLine("\nAs the " + enemy.name + " strikes you it hits with a fatal blow!"); - ReadKey(); + ReadKey(true); System.Environment.Exit(0); } } @@ -157,7 +157,7 @@ public static void Combat(Enemy enemy) WriteLine("\nAs you stand victorious over the " + enemy.name + ", it's body dissolves into " + lootCoins + " gold coins!"); currentPlayer.coins += lootCoins; currentPlayer.LevelCheck(enemy.xp); - ReadKey(); + ReadKey(true); } } } diff --git a/Shop.cs b/Shop.cs index fc5c9ec..263acae 100644 --- a/Shop.cs +++ b/Shop.cs @@ -87,8 +87,9 @@ static void TryBuy(string item, int cost, Player player) } else { + Clear(); WriteLine("You don't have enough coins."); - ReadKey(); + ReadKey(true); } }