From 71d939bed5baef88202c54536c7970c8e4e89562 Mon Sep 17 00:00:00 2001 From: Galactic Chimp <63882831+GalacticChimp@users.noreply.github.com> Date: Sun, 27 Jun 2021 05:05:43 +0200 Subject: [PATCH] #3927 beakers will now break and spill on landing after a throw (#4230) --- .../Entities/Objects/Specific/chemistry.yml | 23 ++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/Resources/Prototypes/Entities/Objects/Specific/chemistry.yml b/Resources/Prototypes/Entities/Objects/Specific/chemistry.yml index 3e6b96aa1d..246b408fdb 100644 --- a/Resources/Prototypes/Entities/Objects/Specific/chemistry.yml +++ b/Resources/Prototypes/Entities/Objects/Specific/chemistry.yml @@ -30,7 +30,28 @@ - type: SolutionContainerVisualizer maxFillLevels: 6 fillBaseName: beaker - + - type: Damageable + - type: Destructible + thresholds: + - trigger: + !type:DamageTrigger + damage: 5 + behaviors: + - !type:PlaySoundCollectionBehavior + soundCollection: GlassBreak + - !type:SpillBehavior { } + - !type:SpawnEntitiesBehavior + spawn: + ShardGlass: + min: 1 + max: 1 + - !type:DoActsBehavior + acts: [ "Destruction" ] + - type: DamageOnLand + amount: 5 + - type: DamageOtherOnHit + amount: 5 + - type: entity name: large beaker parent: Beaker