From 31f7acf223c40cb7b300b7a87cb7f3c9f08bd817 Mon Sep 17 00:00:00 2001 From: liltenhead <104418166+liltenhead@users.noreply.github.com> Date: Tue, 30 Jan 2024 00:11:43 -0800 Subject: [PATCH] Jugs are destructible (#24719) * destructible jug * destruction * Update Resources/Prototypes/Entities/Objects/Specific/chemical-containers.yml --------- Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> --- .../Objects/Specific/chemical-containers.yml | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/Resources/Prototypes/Entities/Objects/Specific/chemical-containers.yml b/Resources/Prototypes/Entities/Objects/Specific/chemical-containers.yml index 31af4d206a..027ff206f8 100644 --- a/Resources/Prototypes/Entities/Objects/Specific/chemical-containers.yml +++ b/Resources/Prototypes/Entities/Objects/Specific/chemical-containers.yml @@ -47,6 +47,34 @@ inHandsFillBaseName: -fill- - type: StaticPrice price: 60 + - type: Damageable + damageContainer: Inorganic + - type: Destructible + thresholds: + - trigger: + !type:DamageTrigger + damage: 200 + behaviors: + - !type:DoActsBehavior + acts: [ "Destruction" ] + - trigger: + !type:DamageTrigger + damage: 20 + behaviors: + - !type:PlaySoundBehavior + sound: + collection: MetalBreak + params: + volume: -4 + - !type:SpillBehavior { } + - !type:SpawnEntitiesBehavior + spawn: + SheetPlastic1: + min: 0 + max: 1 + transferForensics: true + - !type:DoActsBehavior + acts: [ "Destruction" ] - type: Label originalName: jug - type: Tag