Adjustments for Kurenai
authorLiza Carvelli <liza@carvel.li>
Sun, 8 Sep 2024 12:56:12 +0000 (14:56 +0200)
committerLiza Carvelli <liza@carvel.li>
Sun, 8 Sep 2024 12:56:12 +0000 (14:56 +0200)
QuestPaths/4.x - Stormblood/Custom Deliveries/Kurenai/2706_The Elixir of Life.json
Questionable/Controller/Steps/Shared/MoveTo.cs

index 0976654bbe1142f04c5558e15f6f6a943a8b07b7..b41673c81690506d9c9a042a0f13ab4d70b153c0 100644 (file)
           "InteractionType": "WalkTo",
           "Mount": true
         },
+        {
+          "Position": {
+            "X": 163.43794,
+            "Y": -133.31677,
+            "Z": 79.0077
+          },
+          "TerritoryId": 613,
+          "InteractionType": "WalkTo"
+        },
         {
           "Position": {
             "X": -96.41638,
index 28562a0b0b91c349c573ccfe0b93a0c061f5a1bd..ba76a6875f7b903ab03d2362bb40c4ea7413b080 100644 (file)
@@ -116,6 +116,15 @@ internal static class MoveTo
                 actualDistance = float.MaxValue;
             }
 
+            // Fixes a case where you're initiating the gathering step when standing next to the NPC already
+            // TODO maybe this should be delayed up until starting movement
+            if (questId is SatisfactionSupplyNpcId)
+            {
+                logger.LogDebug("SatisfactionSupply: Changing distance to max, previous distance: {Distance}",
+                    actualDistance);
+                actualDistance = float.MaxValue;
+            }
+
             if (step.Mount == true)
                 yield return mountFactory.Mount(step.TerritoryId, Mount.EMountIf.Always);
             else if (step.Mount == false)