Climbing refactor (#20516)

This commit is contained in:
metalgearsloth
2023-10-11 10:41:11 +11:00
committed by GitHub
parent ab75941bc0
commit edbfef22d6
30 changed files with 637 additions and 661 deletions

View File

@@ -9,6 +9,8 @@ using Content.Shared.NPC;
using Robust.Shared.Physics;
using Robust.Shared.Physics.Components;
using Robust.Shared.Utility;
using ClimbableComponent = Content.Shared.Climbing.Components.ClimbableComponent;
using ClimbingComponent = Content.Shared.Climbing.Components.ClimbingComponent;
namespace Content.Server.NPC.Systems;
@@ -132,7 +134,7 @@ public sealed partial class NPCSteeringSystem
{
return SteeringObstacleStatus.Completed;
}
else if (climbing.OwnerIsTransitioning)
else if (climbing.NextTransition != null)
{
return SteeringObstacleStatus.Continuing;
}