Make storage implant closable using the action again (#31381)

(cherry picked from commit 8f4ee7ac9612ce550f12b4f0857e0088602b6174)
This commit is contained in:
slarticodefast
2024-08-24 11:31:02 +10:00
committed by Spatison
parent c2c9954477
commit cd2f531e00
2 changed files with 4 additions and 3 deletions

View File

@@ -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))

View File

@@ -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