From 8542c718c0ad6b0c77f35e3df47fa8d47f3340f0 Mon Sep 17 00:00:00 2001 From: Vigers Ray <60344369+VigersRay@users.noreply.github.com> Date: Sun, 18 Feb 2024 16:06:09 +0200 Subject: [PATCH] Fixed directional window durability (#25259) shit --- .../Entities/Structures/Windows/reinforced.yml | 13 +++++++++++-- .../Entities/Structures/Windows/window.yml | 4 ++-- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/Resources/Prototypes/Entities/Structures/Windows/reinforced.yml b/Resources/Prototypes/Entities/Structures/Windows/reinforced.yml index 26d9da0745..18da78f1b5 100644 --- a/Resources/Prototypes/Entities/Structures/Windows/reinforced.yml +++ b/Resources/Prototypes/Entities/Structures/Windows/reinforced.yml @@ -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" ] @@ -103,7 +103,16 @@ 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: diff --git a/Resources/Prototypes/Entities/Structures/Windows/window.yml b/Resources/Prototypes/Entities/Structures/Windows/window.yml index 74415737dc..9ab770d8bc 100644 --- a/Resources/Prototypes/Entities/Structures/Windows/window.yml +++ b/Resources/Prototypes/Entities/Structures/Windows/window.yml @@ -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: @@ -151,7 +151,7 @@ collection: WindowShatter - trigger: !type:DamageTrigger - damage: 50 + damage: 25 behaviors: - !type:PlaySoundBehavior sound: -- 2.52.0