From 3c1cad5363a7cdbbae3c992cd8d3f257e7cfb91d 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 (cherry picked from commit 8542c718c0ad6b0c77f35e3df47fa8d47f3340f0) --- .../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 26d9da0745b..18da78f1b5b 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 3ae2707f461..faae8b004b7 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: @@ -152,7 +152,7 @@ collection: WindowShatter - trigger: !type:DamageTrigger - damage: 50 + damage: 25 behaviors: - !type:PlaySoundBehavior sound: