]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Unbreakable bar sign fix. (#35490)
authorspderman3333 <118777573+spderman3333@users.noreply.github.com>
Tue, 25 Feb 2025 14:43:03 +0000 (06:43 -0800)
committerGitHub <noreply@github.com>
Tue, 25 Feb 2025 14:43:03 +0000 (15:43 +0100)
* Fixed bar signs being indestructable

* Apply suggestions from code review

---------

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
Resources/Prototypes/Entities/Structures/Wallmounts/Signs/bar_sign.yml

index 653031133c1f75b1adf4ca1a9b0844157a4edbe5..f00216393bdbc5ac22c99600e62cda23bcdbe622 100644 (file)
@@ -31,6 +31,8 @@
       enum.WiresUiKey.Key:
         type: WiresBoundUserInterface
   - type: Appearance
+  - type: Damageable
+    damageContainer: StructuralInorganic
   - type: Destructible
     thresholds:
     - trigger:
         damage: 50
       behaviors:
       - !type:DoActsBehavior
-        acts: ["Destruction"]
+        acts: [ "Destruction" ]
+      - !type:PlaySoundBehavior
+        sound:
+          collection: MetalGlassBreak
   - type: StationAiWhitelist
   - type: WiresPanel
   - type: Wires