]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fixed directional window durability (#25259)
authorVigers Ray <60344369+VigersRay@users.noreply.github.com>
Sun, 18 Feb 2024 14:06:09 +0000 (16:06 +0200)
committerGitHub <noreply@github.com>
Sun, 18 Feb 2024 14:06:09 +0000 (17:06 +0300)
shit

Resources/Prototypes/Entities/Structures/Windows/reinforced.yml
Resources/Prototypes/Entities/Structures/Windows/window.yml

index 26d9da0745b20f5173b44cd125a86d638307d136..18da78f1b5bb071fda426d0d16e9328d2221e591 100644 (file)
@@ -18,7 +18,7 @@
     thresholds:
     - trigger:
         !type:DamageTrigger
-        damage: 150
+        damage: 150 #excess damage (nuke?). avoid computational cost of spawning entities.
       behaviors:
       - !type:DoActsBehavior
         acts: [ "Destruction" ]
     thresholds:
     - trigger:
         !type:DamageTrigger
-        damage: 150
+        damage: 150 #excess damage (nuke?). avoid computational cost of spawning entities.
+      behaviors:
+      - !type:PlaySoundBehavior
+        sound:
+          collection: WindowShatter
+      - !type:DoActsBehavior
+        acts: [ "Destruction" ]
+    - trigger:
+        !type:DamageTrigger
+        damage: 50
       behaviors:
       - !type:PlaySoundBehavior
         sound:
index 74415737dc4d659332f08ffb38de57ac7e15ec9d..9ab770d8bcf5c59b3939f693e88f7990fcfd97af 100644 (file)
@@ -46,7 +46,7 @@
     thresholds:
     - trigger:
         !type:DamageTrigger
-        damage: 100
+        damage: 150 #excess damage (nuke?). avoid computational cost of spawning entities.
       behaviors:
       - !type:PlaySoundBehavior
         sound:
           collection: WindowShatter
     - trigger:
         !type:DamageTrigger
-        damage: 50
+        damage: 25
       behaviors:
       - !type:PlaySoundBehavior
         sound: