private static void InteractWithMob() { PlayAudio.YouAreFucked(); Print.PrintMessageWithAudio("You have encountered a Mob!"); Print.PrintMessageWithAudio("Do you want to fight?"); string input = Console.ReadLine(); if (input.ToLower().Contains("yes")) { RandomEnemyGenerator mobGenerator = new RandomEnemyGenerator(player.Level, 'O'); List <Enemy> mob = mobGenerator.EnemiesList; BattleEngineV2 battleEngine = new BattleEngineV2(player, mob); battleEngine.Run(); if (player.IsAlive) { isMapEnementForRemove = true; } player.CalculateLevelByExperience(); } else { PlayAudio.Laugh(); PlayAudio.YouPussy(); Print.PrintMessageWithAudio("You will live to fight another day, you coward!"); } }
private static void ExecuteCommand() { while (true) { string[] inputParams = SplitUserInput(Console.ReadLine()); switch (inputParams[0].ToLower()) { case "exit": Console.Clear(); Print.PrintMessageWithAudio("Goodbye"); PlayAudio.YouPussy(); Environment.Exit(0); break; case "display-area": Console.Clear(); DisplaySurroundings(); break; case "stats": Console.Clear(); Print.PrintMessage(GetPlayerStats()); break; case "items": Console.Clear(); player.Inventory.ForEach(n => Console.WriteLine(n.Id)); break; case "inventory": Console.Clear(); Inventory inventory = new Inventory(player); inventory.Run(); break; case "move": case "go": Console.Clear(); if (inputParams.Length == 2) { Move(inputParams[1]); } else { Console.WriteLine("invalid move command"); } break; case "help": Console.Clear(); DisplayCommands(); break; case "print": Console.Clear(); map.PrintMap(); break; case "save": Save(); break; case "load": Load(); break; default: Console.Clear(); Print.PrintMessageWithAudio("Invalid command."); DisplayCommands(); break; } } }