muffin v7.5.13
This commit is contained in:
parent
911ed68baa
commit
acf3e3cb18
69 changed files with 2731 additions and 1425 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue