ECS airlocks (#13500)

This commit is contained in:
metalgearsloth
2023-01-18 05:44:32 +11:00
committed by GitHub
parent 8550baa218
commit 2873a830bd
19 changed files with 270 additions and 291 deletions

View File

@@ -23,6 +23,7 @@ using Content.Shared.Construction.Components;
using Content.Shared.Containers.ItemSlots;
using Content.Shared.Damage;
using Content.Shared.Database;
using Content.Shared.Doors.Components;
using Content.Shared.Inventory;
using Content.Shared.PDA;
using Content.Shared.Stacks;
@@ -72,7 +73,7 @@ public sealed partial class AdminVerbSystem
: "/Textures/Interface/AdminActions/bolt.png",
Act = () =>
{
airlock.SetBoltsWithAudio(!airlock.BoltsDown);
_airlockSystem.SetBoltsWithAudio(args.Target, airlock, !airlock.BoltsDown);
},
Impact = LogImpact.Medium,
Message = Loc.GetString(airlock.BoltsDown
@@ -90,7 +91,7 @@ public sealed partial class AdminVerbSystem
IconTexture = "/Textures/Interface/AdminActions/emergency_access.png",
Act = () =>
{
_airlockSystem.ToggleEmergencyAccess(airlock);
_airlockSystem.ToggleEmergencyAccess(args.Target, airlock);
},
Impact = LogImpact.Medium,
Message = Loc.GetString(airlock.EmergencyAccess