Fix NPC door prying (#15605)

This commit is contained in:
metalgearsloth
2023-04-21 15:05:29 +10:00
committed by GitHub
parent 2744ef81d8
commit e780c6a98a
7 changed files with 40 additions and 15 deletions

View File

@@ -1,5 +1,6 @@
using System.Threading;
using Content.Server.NPC.Pathfinding;
using Content.Shared.DoAfter;
using Content.Shared.NPC;
using Robust.Shared.Map;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;
@@ -96,6 +97,12 @@ public sealed class NPCSteeringComponent : Component
[ViewVariables] public SteeringStatus Status = SteeringStatus.Moving;
[ViewVariables(VVAccess.ReadWrite)] public PathFlags Flags = PathFlags.None;
/// <summary>
/// If the NPC is using a do_after to clear an obstacle.
/// </summary>
[DataField("doAfterId")]
public DoAfterId? DoAfterId = null;
}
public enum SteeringStatus : byte