Example #1
0
        public static void GenerateStartingQuests()
        {
            Requests.Clear();

            int requestCount = Random.Range(4, 6);

            for (int i = 0; i < requestCount; i++)
            {
                QuestInstance newQuest = QuestGenerator.GenerateQuestInstance();
                Requests.Add(newQuest);
            }
        }
Example #2
0
        private static void NextDay()
        {
            int questCount = m_QuestAmountChoser.GetRandomValue() * Mathf.Clamp(HeroManager.GetHeroCount() / 5, 1, 2);

            for (int i = 0; i < questCount; i++)
            {
                bool          forceFactionQuest = i <= questCount / 3;
                QuestInstance newQuest;
                if (forceFactionQuest)
                {
                    newQuest = QuestGenerator.GenerateQuestInstance(QuestSourceTypes.FACTION);
                }
                else
                {
                    newQuest = QuestGenerator.GenerateQuestInstance();
                }
                Requests.Add(newQuest);
            }

            QuestGenerator.daysSinceHeroRecruit = Mathf.Clamp(QuestGenerator.daysSinceHeroRecruit - 1, 0, int.MaxValue);
        }