From: Liza Carvelli Date: Sun, 8 Sep 2024 12:56:12 +0000 (+0200) Subject: Adjustments for Kurenai X-Git-Tag: v3.0~11 X-Git-Url: https://git.jacobcasper.com/?a=commitdiff_plain;h=6ceff7a117743f8afa2db4d32acbee91a41cab0f;p=Questionable.git Adjustments for Kurenai --- 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)