From 6ceff7a117743f8afa2db4d32acbee91a41cab0f Mon Sep 17 00:00:00 2001 From: Liza Carvelli Date: Sun, 8 Sep 2024 14:56:12 +0200 Subject: [PATCH] Adjustments for Kurenai --- .../Kurenai/2706_The Elixir of Life.json | 9 +++++++++ Questionable/Controller/Steps/Shared/MoveTo.cs | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/QuestPaths/4.x - Stormblood/Custom Deliveries/Kurenai/2706_The Elixir of Life.json b/QuestPaths/4.x - Stormblood/Custom Deliveries/Kurenai/2706_The Elixir of Life.json index 0976654b..b41673c8 100644 --- a/QuestPaths/4.x - Stormblood/Custom Deliveries/Kurenai/2706_The Elixir of Life.json +++ b/QuestPaths/4.x - Stormblood/Custom Deliveries/Kurenai/2706_The Elixir of Life.json @@ -157,6 +157,15 @@ "InteractionType": "WalkTo", "Mount": true }, + { + "Position": { + "X": 163.43794, + "Y": -133.31677, + "Z": 79.0077 + }, + "TerritoryId": 613, + "InteractionType": "WalkTo" + }, { "Position": { "X": -96.41638, diff --git a/Questionable/Controller/Steps/Shared/MoveTo.cs b/Questionable/Controller/Steps/Shared/MoveTo.cs index 28562a0b..ba76a687 100644 --- a/Questionable/Controller/Steps/Shared/MoveTo.cs +++ b/Questionable/Controller/Steps/Shared/MoveTo.cs @@ -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)