Moves buckling and vehicles to shared, some cleanup (#15923)

This commit is contained in:
AJCM-git
2023-05-01 03:04:23 -04:00
committed by GitHub
parent 2343dd1d3c
commit 878c7c0b85
33 changed files with 1451 additions and 1405 deletions

View File

@@ -1,4 +1,4 @@
using Content.Server.Buckle.Systems;
using Content.Shared.Buckle;
namespace Content.Server.NPC.HTN.Preconditions;
@@ -7,14 +7,14 @@ namespace Content.Server.NPC.HTN.Preconditions;
/// </summary>
public sealed class BuckledPrecondition : HTNPrecondition
{
private BuckleSystem _buckle = default!;
private SharedBuckleSystem _buckle = default!;
[ViewVariables(VVAccess.ReadWrite)] [DataField("isBuckled")] public bool IsBuckled = true;
public override void Initialize(IEntitySystemManager sysManager)
{
base.Initialize(sysManager);
_buckle = sysManager.GetEntitySystem<BuckleSystem>();
_buckle = sysManager.GetEntitySystem<SharedBuckleSystem>();
}
public override bool IsMet(NPCBlackboard blackboard)