make admin interacts with storages silent (#35417)

* make admin interacts with storages silent

* review

* silent insert and transfer

* i love code

---------

Co-authored-by: ScarKy0 <scarky0@onet.eu>
This commit is contained in:
lzk
2025-03-27 18:42:57 +01:00
committed by GitHub
parent f9320aacd7
commit 8f049f174d
4 changed files with 31 additions and 8 deletions

View File

@@ -1,5 +1,6 @@
using Content.Shared.Item;
using Content.Shared.Storage.EntitySystems;
using Content.Shared.Tag;
using Content.Shared.Whitelist;
using Robust.Shared.Audio;
using Robust.Shared.Containers;
@@ -141,6 +142,12 @@ namespace Content.Shared.Storage
[DataField]
public bool HideStackVisualsWhenClosed = true;
/// <summary>
/// Entities with this tag won't trigger storage sound.
/// </summary>
[DataField]
public ProtoId<TagPrototype> SilentStorageUserTag = "SilentStorageUser";
[Serializable, NetSerializable]
public enum StorageUiKey : byte
{