mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-17 05:27:38 +03:00
Make storage implant closable using the action again (#31381)
(cherry picked from commit 8f4ee7ac9612ce550f12b4f0857e0088602b6174)
This commit is contained in:
@@ -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))
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user