action refactor proper ecs edition (#27422)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using Content.Shared.Actions;
|
||||
using Content.Shared.Actions;
|
||||
using Content.Shared.Actions.Components;
|
||||
using Content.Shared.DoAfter;
|
||||
using Content.Shared.Random;
|
||||
using Content.Shared.Random.Helpers;
|
||||
@@ -60,12 +61,13 @@ public abstract class SharedRatKingSystem : EntitySystem
|
||||
if (!TryComp(uid, out ActionsComponent? comp))
|
||||
return;
|
||||
|
||||
_action.RemoveAction(uid, component.ActionRaiseArmyEntity, comp);
|
||||
_action.RemoveAction(uid, component.ActionDomainEntity, comp);
|
||||
_action.RemoveAction(uid, component.ActionOrderStayEntity, comp);
|
||||
_action.RemoveAction(uid, component.ActionOrderFollowEntity, comp);
|
||||
_action.RemoveAction(uid, component.ActionOrderCheeseEmEntity, comp);
|
||||
_action.RemoveAction(uid, component.ActionOrderLooseEntity, comp);
|
||||
var actions = new Entity<ActionsComponent?>(uid, comp);
|
||||
_action.RemoveAction(actions, component.ActionRaiseArmyEntity);
|
||||
_action.RemoveAction(actions, component.ActionDomainEntity);
|
||||
_action.RemoveAction(actions, component.ActionOrderStayEntity);
|
||||
_action.RemoveAction(actions, component.ActionOrderFollowEntity);
|
||||
_action.RemoveAction(actions, component.ActionOrderCheeseEmEntity);
|
||||
_action.RemoveAction(actions, component.ActionOrderLooseEntity);
|
||||
}
|
||||
|
||||
private void OnOrderAction(EntityUid uid, RatKingComponent component, RatKingOrderActionEvent args)
|
||||
|
||||
Reference in New Issue
Block a user