Cleanup factions code (#11075)

Co-authored-by: Kara <lunarautomaton6@gmail.com>
This commit is contained in:
metalgearsloth
2022-09-15 04:45:02 +10:00
committed by GitHub
parent 356a6b8d2e
commit 8871c445b8
34 changed files with 311 additions and 287 deletions

View File

@@ -10,7 +10,7 @@ namespace Content.Server.NPC.HTN.PrimitiveTasks.Operators;
public abstract class NPCCombatOperator : HTNOperator
{
[Dependency] protected readonly IEntityManager EntManager = default!;
private AiFactionTagSystem _tags = default!;
private FactionSystem _tags = default!;
protected InteractionSystem Interaction = default!;
[ViewVariables, DataField("key")] public string Key = "CombatTarget";
@@ -24,7 +24,7 @@ public abstract class NPCCombatOperator : HTNOperator
public override void Initialize(IEntitySystemManager sysManager)
{
base.Initialize(sysManager);
_tags = sysManager.GetEntitySystem<AiFactionTagSystem>();
_tags = sysManager.GetEntitySystem<FactionSystem>();
Interaction = sysManager.GetEntitySystem<InteractionSystem>();
}