muffin v7.5.13

This commit is contained in:
alydev 2026-08-22 10:25:22 +10:00
parent 911ed68baa
commit acf3e3cb18
69 changed files with 2731 additions and 1425 deletions

View file

@ -30,6 +30,10 @@ internal static class SmartNavStep
{
yield break;
}
(bool AllowMount, bool AllowFlight) capabilities = SmartNavReRouteService.GetCapabilities(step.TravelMode);
bool item = capabilities.AllowMount;
bool item2 = capabilities.AllowFlight;
playerNavState = playerNavState.WithTravelCapabilities(item, item2);
RouteResult routeResult = navRouter.FindRoute(playerNavState, step.TerritoryId, vector.Value);
if (routeResult.Segments.Count == 0)
{
@ -37,10 +41,10 @@ internal static class SmartNavStep
}
HandledRouting = true;
logger.LogDebug("SmartNav routing to {Territory} with {Count} segments", territoryData.GetNameAndId(step.TerritoryId), routeResult.Segments.Count);
reRouteService.SetDestination(step.TerritoryId, vector.Value);
foreach (ITask item in taskMapper.MapInstructions(instructionBuilder.Build(routeResult, step.TerritoryId, step.DisableNavmesh), step))
reRouteService.SetDestination(step.TerritoryId, vector.Value, step.TravelMode);
foreach (ITask item3 in taskMapper.MapInstructions(instructionBuilder.Build(routeResult, step.TerritoryId, step.DisableNavmesh), step, step.TravelMode))
{
yield return item;
yield return item3;
}
}