]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Make wallmount screen, telescreen, and signal timer destructible (#39340)
authorqwerltaz <69696513+qwerltaz@users.noreply.github.com>
Sun, 3 Aug 2025 17:12:02 +0000 (19:12 +0200)
committerGitHub <noreply@github.com>
Sun, 3 Aug 2025 17:12:02 +0000 (12:12 -0500)
* make wallmount screen destructible

* louder

* fix indent

* fix indent

Resources/Prototypes/Entities/Structures/Wallmounts/WallmountMachines/Monitors/telescreens.yml
Resources/Prototypes/Entities/Structures/Wallmounts/WallmountMachines/screen.yml
Resources/Prototypes/Entities/Structures/Wallmounts/WallmountMachines/timer.yml

index fd2ba1d072a94dbfabc391db9db1299cc12a5489..ed585aa18510b55f5bdc7966efaad70f36f49070 100644 (file)
         state: telescreen_frame
       - map: ["computerLayerScreen"]
         state: telescreen
+  - type: Destructible
+    thresholds:
+    - trigger:
+        !type:DamageTrigger
+        damage: 200
+      behaviors:
+      - !type:DoActsBehavior
+        acts: [ "Destruction" ]
+      - !type:PlaySoundBehavior
+        sound:
+          collection: MetalGlassBreak
   - type: Construction
     graph: WallmountTelescreen
     node: Telescreen
index bb794e8ac08c3b6f0d8f2066cfeac280ec5e8fae..94244d3d99a6047ba54449c22ac03bc418154c58 100644 (file)
     sprite: Structures/Wallmounts/screen.rsi
     state: screen
     noRot: true
+  - type: Destructible
+    thresholds:
+    - trigger:
+        !type:DamageTrigger
+        damage: 200
+      behaviors:
+      - !type:DoActsBehavior
+        acts: [ "Destruction" ]
+      - !type:PlaySoundBehavior
+        sound:
+          collection: MetalGlassBreak
   - type: ApcPowerReceiver
     powerLoad: 100
   - type: ExtensionCableReceiver
index 895b84eb7b72b460e256437b9014c63be6b3bcce..a9003f7e7930e09378017821c1a8a94dd7586386 100644 (file)
     sprite: Structures/Wallmounts/switch.rsi
     state: on
   - type: Appearance
+  - type: Destructible
+    thresholds:
+    - trigger:
+        !type:DamageTrigger
+        damage: 200
+      behaviors:
+      - !type:DoActsBehavior
+        acts: [ "Destruction" ]
+      - !type:PlaySoundBehavior
+        sound:
+          collection: MetalGlassBreak
   - type: Rotatable
   - type: SignalTimer
     canEditLabel: false