Adjustments for Kurenai

This commit is contained in:
Liza 2024-09-08 14:56:12 +02:00
parent bd6655615c
commit 6ceff7a117
Signed by: liza
GPG Key ID: 7199F8D727D55F67
2 changed files with 18 additions and 0 deletions

View File

@ -157,6 +157,15 @@
"InteractionType": "WalkTo", "InteractionType": "WalkTo",
"Mount": true "Mount": true
}, },
{
"Position": {
"X": 163.43794,
"Y": -133.31677,
"Z": 79.0077
},
"TerritoryId": 613,
"InteractionType": "WalkTo"
},
{ {
"Position": { "Position": {
"X": -96.41638, "X": -96.41638,

View File

@ -116,6 +116,15 @@ internal static class MoveTo
actualDistance = float.MaxValue; 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) if (step.Mount == true)
yield return mountFactory.Mount(step.TerritoryId, Mount.EMountIf.Always); yield return mountFactory.Mount(step.TerritoryId, Mount.EMountIf.Always);
else if (step.Mount == false) else if (step.Mount == false)