]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Make Mime PDA interactions silent (#34426)
authorArtisticRoomba <145879011+ArtisticRoomba@users.noreply.github.com>
Wed, 15 Jan 2025 18:03:49 +0000 (10:03 -0800)
committerGitHub <noreply@github.com>
Wed, 15 Jan 2025 18:03:49 +0000 (19:03 +0100)
* make insert and eject datafields in ItemSlotsComponent.cs nullable, make mime PDA silent

* make it so that you can't fit wirecutters into the slots, among other various things

Content.Shared/Containers/ItemSlot/ItemSlotsComponent.cs
Resources/Prototypes/Entities/Objects/Devices/pda.yml

index 42e7f721b3e682837426bb3d6f58328495984ffb..29443e284a06a0d1efef018c8b545efbb42b0532 100644 (file)
@@ -75,10 +75,10 @@ namespace Content.Shared.Containers.ItemSlots
         public EntityWhitelist? Blacklist;
 
         [DataField]
-        public SoundSpecifier InsertSound = new SoundPathSpecifier("/Audio/Weapons/Guns/MagIn/revolver_magin.ogg");
+        public SoundSpecifier? InsertSound = new SoundPathSpecifier("/Audio/Weapons/Guns/MagIn/revolver_magin.ogg");
 
         [DataField]
-        public SoundSpecifier EjectSound = new SoundPathSpecifier("/Audio/Weapons/Guns/MagOut/revolver_magout.ogg");
+        public SoundSpecifier? EjectSound = new SoundPathSpecifier("/Audio/Weapons/Guns/MagOut/revolver_magout.ogg");
 
         /// <summary>
         ///     The name of this item slot. This will be shown to the user in the verb menu.
index dbd589bbe00cdc4b591bdc28267e58db5cf1c9b4..0e8b51cc6a365ddebcc89d5169abe8668c1bebec 100644 (file)
   components:
   - type: Pda
     id: MimeIDCard
-    idSlot: #  rewrite without sound because mime
-      name: ID Card
+    paiSlot:
+      priority: -2
+      ejectSound: null
+      insertSound: null
+      whitelist:
+        components:
+        - PAI
+    idSlot:
+      name: access-id-card-component-default
+      ejectSound: null # mime is silent
+      insertSound: null
       whitelist:
         components:
         - IdCard
+    penSlot:
+      startingItem: Pen
+      priority: -1
+      whitelist:
+        tags:
+        - Write
+      ejectSound: null
+      insertSound: null
+  - type: CartridgeLoader
+    cartridgeSlot:
+      ejectSound: null
+      insertSound: null
+      whitelist:
+        components:
+        - Cartridge
   - type: Appearance
     appearanceDataInit:
      enum.PdaVisuals.PdaType: