ActionBlocker CanDrop uses EntityUid exclusively
This commit is contained in:
@@ -7,7 +7,7 @@ using Robust.Shared.Localization;
|
||||
|
||||
namespace Content.Server.Access
|
||||
{
|
||||
public class IdCardConsoleSystem : EntitySystem
|
||||
public class IdCardConsoleSystem : EntitySystem
|
||||
{
|
||||
[Dependency] private readonly ActionBlockerSystem _actionBlockerSystem = default!;
|
||||
|
||||
@@ -24,10 +24,10 @@ namespace Content.Server.Access
|
||||
!args.CanAccess ||
|
||||
!args.CanInteract ||
|
||||
!args.Using.HasComponent<IdCardComponent>() ||
|
||||
!_actionBlockerSystem.CanDrop(args.User))
|
||||
!_actionBlockerSystem.CanDrop(args.User.Uid))
|
||||
return;
|
||||
|
||||
// Can we insert a privileged ID?
|
||||
// Can we insert a privileged ID?
|
||||
if (component.PrivilegedIDEmpty)
|
||||
{
|
||||
Verb verb = new();
|
||||
@@ -56,7 +56,7 @@ namespace Content.Server.Access
|
||||
!_actionBlockerSystem.CanPickup(args.User))
|
||||
return;
|
||||
|
||||
// Can we eject a privileged ID?
|
||||
// Can we eject a privileged ID?
|
||||
if (!component.PrivilegedIDEmpty)
|
||||
{
|
||||
Verb verb = new();
|
||||
|
||||
@@ -53,7 +53,7 @@ namespace Content.Server.Chemistry.EntitySystems
|
||||
!args.CanInteract ||
|
||||
component.HasBeaker ||
|
||||
!args.Using.HasComponent<FitsInDispenserComponent>() ||
|
||||
!_actionBlockerSystem.CanDrop(args.User))
|
||||
!_actionBlockerSystem.CanDrop(args.User.Uid))
|
||||
return;
|
||||
|
||||
Verb verb = new();
|
||||
|
||||
@@ -56,7 +56,7 @@ namespace Content.Server.Chemistry.EntitySystems
|
||||
!args.CanInteract ||
|
||||
component.HasBeaker ||
|
||||
!args.Using.HasComponent<FitsInDispenserComponent>() ||
|
||||
!_actionBlockerSystem.CanDrop(args.User))
|
||||
!_actionBlockerSystem.CanDrop(args.User.Uid))
|
||||
return;
|
||||
|
||||
Verb verb = new();
|
||||
|
||||
@@ -56,7 +56,7 @@ namespace Content.Server.Power.EntitySystems
|
||||
!args.CanInteract ||
|
||||
component.HasCell ||
|
||||
!component.IsEntityCompatible(args.Using) ||
|
||||
!_actionBlockerSystem.CanDrop(args.User))
|
||||
!_actionBlockerSystem.CanDrop(args.User.Uid))
|
||||
return;
|
||||
|
||||
Verb verb = new();
|
||||
|
||||
@@ -48,7 +48,7 @@ namespace Content.Server.PowerCell
|
||||
!args.CanInteract ||
|
||||
component.HasCell ||
|
||||
!args.Using.HasComponent<PowerCellComponent>() ||
|
||||
!_actionBlockerSystem.CanDrop(args.User))
|
||||
!_actionBlockerSystem.CanDrop(args.User.Uid))
|
||||
return;
|
||||
|
||||
Verb verb = new();
|
||||
|
||||
@@ -88,7 +88,7 @@ namespace Content.Server.Weapon.Ranged.Barrels
|
||||
!args.CanInteract ||
|
||||
component.PowerCell != null ||
|
||||
!args.Using.HasComponent<BatteryComponent>() ||
|
||||
!_actionBlockerSystem.CanDrop(args.User))
|
||||
!_actionBlockerSystem.CanDrop(args.User.Uid))
|
||||
return;
|
||||
|
||||
Verb verb = new();
|
||||
@@ -135,7 +135,7 @@ namespace Content.Server.Weapon.Ranged.Barrels
|
||||
// Are we holding a mag that we can insert?
|
||||
if (args.Using == null ||
|
||||
!component.CanInsertMagazine(args.User, args.Using) ||
|
||||
!_actionBlockerSystem.CanDrop(args.User))
|
||||
!_actionBlockerSystem.CanDrop(args.User.Uid))
|
||||
return;
|
||||
|
||||
// Insert mag verb
|
||||
|
||||
Reference in New Issue
Block a user