From 8e8d5f31abfd80d1ee0ffd7113cf5cb13d5c898f Mon Sep 17 00:00:00 2001 From: Chomp Date: Sat, 5 Aug 2023 08:47:03 +0100 Subject: [PATCH] Add event quest prereqs --- .../Helpers/QuestRequirements.cs | 25 ++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/QuestValidator.Common/Helpers/QuestRequirements.cs b/QuestValidator.Common/Helpers/QuestRequirements.cs index 2fe7f88..74abe5f 100644 --- a/QuestValidator.Common/Helpers/QuestRequirements.cs +++ b/QuestValidator.Common/Helpers/QuestRequirements.cs @@ -771,6 +771,30 @@ namespace QuestValidator.Common.Helpers { Quest.Tourist, GetQuestData(Quest.Tourist)}, { Quest.Hustle, GetQuestData(Quest.Hustle)}, { Quest.FailedSetup, GetQuestData(Quest.FailedSetup)}, + { Quest.TerraGroupTrailP2, GetQuestData(Quest.TerraGroupTrailP2).AddPrerequisiteQuest(Quest.TerraGroupTrailP1, QuestStatus.Success)}, + { Quest.TerraGroupTrailP3, GetQuestData(Quest.TerraGroupTrailP3).AddPrerequisiteQuest(Quest.TerraGroupTrailP2, QuestStatus.Success)}, + { Quest.TerraGroupTrailP4, GetQuestData(Quest.TerraGroupTrailP4).AddPrerequisiteQuest(Quest.TerraGroupTrailP3, QuestStatus.Success)}, + { Quest.TerraGroupTrailP5, GetQuestData(Quest.TerraGroupTrailP5).AddPrerequisiteQuest(Quest.TerraGroupTrailP4, QuestStatus.Success)}, + { Quest.TerraGroupTrailP6, GetQuestData(Quest.TerraGroupTrailP6).AddPrerequisiteQuest(Quest.TerraGroupTrailP5, QuestStatus.Success)}, + { Quest.TerraGroupTrailP7, GetQuestData(Quest.TerraGroupTrailP7).AddPrerequisiteQuest(Quest.TerraGroupTrailP6, QuestStatus.Success)}, + { Quest.TerraGroupTrailP8, GetQuestData(Quest.TerraGroupTrailP8).AddPrerequisiteQuest(Quest.TerraGroupTrailP7, QuestStatus.Started)}, + { Quest.TerraGroupTrailP9, GetQuestData(Quest.TerraGroupTrailP9).AddPrerequisiteQuest(Quest.TerraGroupTrailP8, QuestStatus.Success)}, + { Quest.TerraGroupTrailP10, GetQuestData(Quest.TerraGroupTrailP10).AddPrerequisiteQuest(Quest.TerraGroupTrailP9, QuestStatus.Success)}, + { Quest.TerraGroupTrailP11, GetQuestData(Quest.TerraGroupTrailP11).AddPrerequisiteQuest(Quest.TerraGroupTrailP6, QuestStatus.Success)}, + { Quest.TerraGroupTrailP12, GetQuestData(Quest.TerraGroupTrailP12).AddPrerequisiteQuest(Quest.TerraGroupTrailP11, QuestStatus.Success)}, + { Quest.TerraGroupTrailP13, GetQuestData(Quest.TerraGroupTrailP13).AddPrerequisiteQuest(Quest.TerraGroupTrailP12, QuestStatus.Success)}, + { Quest.TerraGroupTrailP14, GetQuestData(Quest.TerraGroupTrailP14).AddPrerequisiteQuest(Quest.TerraGroupTrailP6, QuestStatus.Success)}, + { Quest.TerraGroupTrailP15, GetQuestData(Quest.TerraGroupTrailP15) + .AddPrerequisiteQuest(Quest.TerraGroupTrailP14, QuestStatus.Success) + .AddPrerequisiteQuest(Quest.TerraGroupTrailP10, QuestStatus.Success)}, + { Quest.TerraGroupTrailP16, GetQuestData(Quest.TerraGroupTrailP16).AddPrerequisiteQuest(Quest.TerraGroupTrailP15, QuestStatus.Success)}, + { Quest.TerraGroupTrailP17, GetQuestData(Quest.TerraGroupTrailP17).AddPrerequisiteQuest(Quest.TerraGroupTrailP15, QuestStatus.Success)}, + { Quest.TerraGroupTrailP18, GetQuestData(Quest.TerraGroupTrailP18).AddPrerequisiteQuest(Quest.TerraGroupTrailP15, QuestStatus.Success)}, + { Quest.TerraGroupTrailP19, GetQuestData(Quest.TerraGroupTrailP19) + .AddPrerequisiteQuest(Quest.TerraGroupTrailP16, QuestStatus.Success) + .AddPrerequisiteQuest(Quest.TerraGroupTrailP17, QuestStatus.Success) + .AddPrerequisiteQuest(Quest.TerraGroupTrailP18, QuestStatus.Success)}, + // Collector requires a large amount of requisite tasks, so it's at the end { Quest.Collector, GetQuestData(Quest.Collector) .AddPrerequisiteLevel(50) @@ -996,7 +1020,6 @@ namespace QuestValidator.Common.Helpers .AddPrerequisiteQuest(Quest.StrayDogs, QuestStatus.Success) .AddPrerequisiteQuest(Quest.TheDeliciousSausage, QuestStatus.Success) } - }; private static QuestData GetQuestData(Quest quest)