Ejemplo n.º 1
0
        /*
         * ========================================================================================
         * Win ---> Win Message and returns to the Main Menu
         * ========================================================================================
         */
        private void Win(WinConditionEnum howHeroWon)
        {
            if (howHeroWon == WinConditionEnum.Kill)
            {
                Hero.AddExperiencePoints(MonstersEXPWorth);
                Hero.AddGoldCoins(MonstersGoldCoinWorth);

                Console.ForegroundColor = ConsoleColor.Yellow;
                Console.WriteLine($"{CurrentMonster.Name} has been defeated! You win the battle!");
                Console.WriteLine($"(+ {MonstersGoldCoinWorth} Gold Coins)");
                Console.WriteLine($"(+ {MonstersEXPWorth} EXP)");
                Console.ResetColor();
                ManageAchievements.AddDeadMonster(CurrentMonster);
            }
            else if (howHeroWon == WinConditionEnum.Flee)
            {
                Console.ForegroundColor = ConsoleColor.Yellow;
                Console.WriteLine($"You have successfully fled the battle!");
                Console.ResetColor();
            }
            Hero.ShowStats(false);

            Console.Title = $"Main Menu";
        }
Ejemplo n.º 2
0
 public static void SetCondition(WinConditionEnum condition)
 {
     MissionBuilder.condition = condition;
 }