Пример #1
0
        public void GoOnQuest()
        {
            Console.Clear();
            Console.ForegroundColor = ConsoleColor.DarkYellow;
            Creature.AddCreatures();

            var creature = Creature.GetRandomCreature(gameLevel);

            if (gameLevel.IfLastLevel())
            {
                AzogTheDefiler lastCreature = new AzogTheDefiler();
                creature = lastCreature;
            }
            creature.LevelUpgrade(gameLevel);
            if (RandomHelper.GetRandomNum(10) == 1)
            {
                Console.WriteLine("Be patient, you are walking on your path to Mordor..");
                Console.ReadLine();
                Menu();
            }
            else
            {
                Console.WriteLine($"Oh no! Someone is coming at you, it's {creature.Article}{creature.Name}!");
                Console.ReadLine();
                FightCreature(creature);
            }
        }