Пример #1
0
        void UpdateQuestData(Quests quests, GameDifficulty difficulty)
        {
            var q = quests.ByDifficulty(difficulty);

            if (q == null)
            {
                return;
            }

            QuestDebugRow[,] rows = questRows[difficulty];

            foreach (var quest in q)
            {
                if (quest.Act <= 0 || quest.ActOrder <= 0)
                {
                    // cow king quest is set to act 0 act order 0 atm
                    continue;
                }

                try
                {
                    rows[quest.Act - 1, quest.ActOrder - 1].Update(quest);
                }
                catch (NullReferenceException)
                {
                }
            }
        }
Пример #2
0
        void UpdateQuestData(Quests quests, GameDifficulty difficulty)
        {
            var q = quests.ByDifficulty(difficulty);

            if (q == null)
            {
                return;
            }

            QuestDebugRow[,] rows = questRows[difficulty];

            foreach (var quest in q)
            {
                try
                {
                    rows[quest.Act - 1, quest.ActOrder - 1].Update(quest);
                }
                catch (NullReferenceException)
                {
                }
            }
        }