예제 #1
0
        }// End of the FightMonster Method

        /*
         * ========================================================================================
         * SpendExperiencePoints ---> Allows Player To Level Up Their Character's Stats
         * ========================================================================================
         */
        public void SpendExperiencePoints()
        {
            Console.Clear();

            string userInput = "";

            while (userInput != "4")
            {
                Console.Title = $"Spend Your EXP | Current Experience Points: {Hero.ExperiencePoints} | Stats: [> Str: {Hero.Strength} | Def: {Hero.Defense} | HP: {Hero.CurrentHP}/{Hero.OriginalHP} <]";

                Console.ForegroundColor = ConsoleColor.Yellow;
                Console.WriteLine($"**** Manage Experience Points ****");
                Console.ResetColor();

                Console.WriteLine("1. Level Up Strength");
                Console.WriteLine("2. Level Up Defense");
                Console.WriteLine("3. Level Up Original HP");
                Console.WriteLine("4. Return To Main Menu\n");

                userInput = Console.ReadLine().Trim();

                Hero.SpendExperiencePoints(userInput);

                Console.Title = $"Main Menu";
            }// End of the SpendExperiencePoints Method
        }