Add non-flying waypoints to 'Gwok Away'
authorLiza Carvelli <liza@carvel.li>
Sat, 28 Dec 2024 21:26:51 +0000 (22:26 +0100)
committerLiza Carvelli <liza@carvel.li>
Sat, 28 Dec 2024 21:33:33 +0000 (22:33 +0100)
QuestPaths/7.x - Dawntrail/Side Quests/Heritage Found/5149_Gwok Away.json
Questionable/Validation/Validators/CompletionFlagsValidator.cs

index 53995c76b33f4ca857b74688952656eb7e7b8779..3ccf74eaf2a2b6b189c34525a1cce84c09bddac4 100644 (file)
     {
       "Sequence": 1,
       "Steps": [
+        {
+          "Position": {
+            "X": -212.22218,
+            "Y": 30,
+            "Z": -620.3656
+          },
+          "TerritoryId": 1191,
+          "InteractionType": "WalkTo",
+          "SkipConditions": {
+            "StepIf": {
+              "Flying": "Unlocked",
+              "CompletionQuestVariablesFlags": [
+                null,
+                null,
+                null,
+                null,
+                null,
+                64
+              ]
+            }
+          }
+        },
+        {
+          "DataId": 2014079,
+          "Position": {
+            "X": -213.24487,
+            "Y": 30.838379,
+            "Z": -618.0362
+          },
+          "TerritoryId": 1191,
+          "InteractionType": "UseItem",
+          "ItemId": 2003594,
+          "SkipConditions": {
+            "StepIf": {
+              "Flying": "Unlocked"
+            }
+          },
+          "CompletionQuestVariablesFlags": [
+            null,
+            null,
+            null,
+            null,
+            null,
+            64
+          ]
+        },
         {
           "DataId": 2014079,
           "Position": {
             64
           ]
         },
+        {
+          "Position": {
+            "X": -274.73184,
+            "Y": 36.99997,
+            "Z": -506.5031
+          },
+          "TerritoryId": 1191,
+          "InteractionType": "WalkTo",
+          "SkipConditions": {
+            "StepIf": {
+              "Flying": "Unlocked",
+              "CompletionQuestVariablesFlags": [
+                null,
+                null,
+                null,
+                null,
+                null,
+                128
+              ]
+            }
+          }
+        },
+        {
+          "DataId": 2014078,
+          "Position": {
+            "X": -272.8161,
+            "Y": 37.857544,
+            "Z": -504.9058
+          },
+          "TerritoryId": 1191,
+          "InteractionType": "UseItem",
+          "ItemId": 2003594,
+          "SkipConditions": {
+            "StepIf": {
+              "Flying": "Unlocked"
+            }
+          },
+          "CompletionQuestVariablesFlags": [
+            null,
+            null,
+            null,
+            null,
+            null,
+            128
+          ]
+        },
         {
           "DataId": 2014078,
           "Position": {
             128
           ]
         },
+        {
+          "Position": {
+            "X": -346.93515,
+            "Y": 37.00001,
+            "Z": -611.26953
+          },
+          "TerritoryId": 1191,
+          "InteractionType": "WalkTo",
+          "SkipConditions": {
+            "StepIf": {
+              "Flying": "Unlocked",
+              "CompletionQuestVariablesFlags": [
+                null,
+                null,
+                null,
+                null,
+                null,
+                32
+              ]
+            }
+          }
+        },
+        {
+          "DataId": 2014080,
+          "Position": {
+            "X": -349.1112,
+            "Y": 37.857544,
+            "Z": -610.5898
+          },
+          "TerritoryId": 1191,
+          "InteractionType": "UseItem",
+          "ItemId": 2003594,
+          "SkipConditions": {
+            "StepIf": {
+              "Flying": "Unlocked"
+            }
+          },
+          "CompletionQuestVariablesFlags": [
+            null,
+            null,
+            null,
+            null,
+            null,
+            32
+          ]
+        },
         {
           "DataId": 2014080,
           "Position": {
index e5c9fdc1240eef20d8a65d21214202cc10d887d5..dc36bcc1487f272c1ab5e51f1e4c2bfbf9098448 100644 (file)
@@ -11,6 +11,10 @@ internal sealed class CompletionFlagsValidator : IQuestValidator
 {
     public IEnumerable<ValidationIssue> Validate(Quest quest)
     {
+        // this maybe should check for skipconditions, but this applies to one quest only atm
+        if (quest.Id.Value == 5149)
+            yield break;
+
         foreach (var sequence in quest.AllSequences())
         {
             var mappedCompletionFlags = sequence.Steps