From cd2f531e00e8a3c272ceaa8d39e66e99826a623f Mon Sep 17 00:00:00 2001 From: slarticodefast <161409025+slarticodefast@users.noreply.github.com> Date: Sat, 24 Aug 2024 11:31:02 +1000 Subject: [PATCH] Make storage implant closable using the action again (#31381) (cherry picked from commit 8f4ee7ac9612ce550f12b4f0857e0088602b6174) --- Content.Shared/Storage/EntitySystems/SharedStorageSystem.cs | 2 +- Resources/Prototypes/Actions/types.yml | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Content.Shared/Storage/EntitySystems/SharedStorageSystem.cs b/Content.Shared/Storage/EntitySystems/SharedStorageSystem.cs index e3c41623fd..b108f65564 100644 --- a/Content.Shared/Storage/EntitySystems/SharedStorageSystem.cs +++ b/Content.Shared/Storage/EntitySystems/SharedStorageSystem.cs @@ -1521,7 +1521,7 @@ public abstract class SharedStorageSystem : EntitySystem if (session is not { } playerSession) return; - if (playerSession.AttachedEntity is not {Valid: true} playerEnt || !Exists(playerEnt)) + if (playerSession.AttachedEntity is not { Valid: true } playerEnt || !Exists(playerEnt)) return; if (!_inventory.TryGetSlotEntity(playerEnt, slot, out var storageEnt)) diff --git a/Resources/Prototypes/Actions/types.yml b/Resources/Prototypes/Actions/types.yml index db94279c6b..a7f7088875 100644 --- a/Resources/Prototypes/Actions/types.yml +++ b/Resources/Prototypes/Actions/types.yml @@ -44,8 +44,8 @@ - type: entity id: ActionOpenStorageImplant - name: Open Storage Implant - description: Opens the storage implant embedded under your skin + name: Toggle Storage Implant + description: Opens or closes the storage implant embedded under your skin components: - type: InstantAction itemIconStyle: BigAction @@ -54,6 +54,7 @@ sprite: Clothing/Back/Backpacks/backpack.rsi state: icon event: !type:OpenStorageImplantEvent + useDelay: 1 - type: entity parent: BaseSuicideAction