示例#1
0
        public static void fifthChapter()
        {
            string    choice;
            Adventure adventuresDescription = jsonReader();

            Console.WriteLine($"{adventuresDescription.fifthChapterDescription}");
            choice = Console.ReadLine().ToLower();
            Console.Clear();

            switch (choice)
            {
            case "1":
                Console.WriteLine("");
                Console.WriteLine("You feel weak and little dizzy...");
                firstChapter();
                break;

            case "2":
                Encounters.sergeEncounter();
                if (Program.currentPlayer.health <= 0)
                {
                    //Player is dead
                    Console.ReadLine();
                    Console.Clear();
                    Console.WriteLine($"{adventuresDescription.playerIsDead}");
                    Console.ReadKey();
                    Program.gameOver();
                }
                else
                {
                    youWin();
                }
                break;

            case "3":
                Console.WriteLine("You tourned the door handle and in the same time you felt like thousand little nedles");
                Console.WriteLine("Poisoned darts fly out of the walls...");
                gameOver();
                break;

            default:
                Console.WriteLine("I do not understand this command...");
                break;
            }
        }