]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
fix mousetraps (#35486)
authorslarticodefast <161409025+slarticodefast@users.noreply.github.com>
Tue, 25 Feb 2025 03:52:05 +0000 (04:52 +0100)
committerGitHub <noreply@github.com>
Tue, 25 Feb 2025 03:52:05 +0000 (19:52 -0800)
fix mousetrap

Resources/Prototypes/Entities/Objects/Devices/mousetrap.yml

index cde95fda6bda2fca934a5d172f0b30925e17b5f7..04349c3a1c16babb137eaffa140cf521e21687ca 100644 (file)
@@ -22,6 +22,7 @@
           Blunt: 2 # base damage, scales based on mass
     - type: EmitSoundOnUse
       sound: "/Audio/Items/Handcuffs/cuff_end.ogg"
+      handle: false
     - type: EmitSoundOnTrigger
       sound: "/Audio/Items/snap.ogg"
     - type: Item
@@ -62,5 +63,9 @@
   id: MousetrapArmed
   description: Useful for catching rodents sneaking into your kitchen.
   components:
-    - type: Mousetrap
-      isActive: true
+  - type: Sprite
+    layers:
+    - state: mousetraparmed
+      map: ["base"]
+  - type: Mousetrap
+    isActive: true