From 59ae1ccdc0db2d5789f0543c1e3c4d70de231787 Mon Sep 17 00:00:00 2001 From: Chomp Date: Fri, 16 Sep 2022 10:13:43 +0100 Subject: [PATCH] Make textile p2 bear require completion of textile p1 bear, not p1 usec --- GenerateQuestFile/Examples/quests.json | 28 ++++--------------- .../Helpers/QuestRequirements.cs | 2 +- 2 files changed, 7 insertions(+), 23 deletions(-) diff --git a/GenerateQuestFile/Examples/quests.json b/GenerateQuestFile/Examples/quests.json index ce1245b..05bf0c5 100644 --- a/GenerateQuestFile/Examples/quests.json +++ b/GenerateQuestFile/Examples/quests.json @@ -44932,20 +44932,6 @@ }, "dynamicLocale": false }, - { - "_parent": "Quest", - "_props": { - "dynamicLocale": false, - "id": "", - "index": 0, - "parentId": "", - "status": [ - 4 - ], - "target": "5e383a6386f77465910ce1f3" - }, - "dynamicLocale": false - }, { "_parent": "Level", "_props": { @@ -45158,16 +45144,14 @@ "dynamicLocale": false }, { - "_parent": "Quest", + "_parent": "Level", "_props": { + "compareMethod": ">=", "dynamicLocale": false, - "id": "", + "id": "29a4299488f7747aab09a77s", "index": 1, "parentId": "", - "status": [ - 4 - ], - "target": "5e381b0286f77420e3417a74" + "value": "40" }, "dynamicLocale": false } @@ -45779,7 +45763,7 @@ "availableAfter": 0, "dynamicLocale": false, "id": "51d33b2d4fad9e61441772c0", - "index": 0, + "index": 1, "parentId": "", "status": [ 4 @@ -45795,7 +45779,7 @@ "availableAfter": 0, "dynamicLocale": false, "id": "51d33b2d4fad9e61441772c0", - "index": 0, + "index": 2, "parentId": "", "status": [ 4 diff --git a/QuestValidator.Common/Helpers/QuestRequirements.cs b/QuestValidator.Common/Helpers/QuestRequirements.cs index af2e242..659074e 100644 --- a/QuestValidator.Common/Helpers/QuestRequirements.cs +++ b/QuestValidator.Common/Helpers/QuestRequirements.cs @@ -365,7 +365,7 @@ namespace QuestValidator.Common.Helpers { Quest.TextileP1Usec, GetQuestData(Quest.TextileP1Usec).AddPrerequisiteQuest(Quest.SewItGoodP4, QuestStatus.Success) }, { Quest.TextileP2Usec, GetQuestData(Quest.TextileP2Usec).AddPrerequisiteQuest(Quest.TextileP1Usec, QuestStatus.Success) }, { Quest.TextileP1Bear, GetQuestData(Quest.TextileP1Bear).AddPrerequisiteQuest(Quest.SewItGoodP4, QuestStatus.Success) }, - { Quest.TextileP2Bear, GetQuestData(Quest.TextileP2Bear).AddPrerequisiteQuest(Quest.TextileP1Usec, QuestStatus.Success) }, + { Quest.TextileP2Bear, GetQuestData(Quest.TextileP2Bear).AddPrerequisiteQuest(Quest.TextileP1Bear, QuestStatus.Success) }, { Quest.BunkerP1, GetQuestData(Quest.BunkerP1) .AddPrerequisiteQuest(Quest.BPDepot, QuestStatus.Success) }, { Quest.BunkerP2, GetQuestData(Quest.BunkerP2)