From 11da00778c5da99c3666eb9e83b4c4aa87963a87 Mon Sep 17 00:00:00 2001 From: Nemanja <98561806+EmoGarbage404@users.noreply.github.com> Date: Thu, 18 May 2023 19:48:14 -0400 Subject: [PATCH] make vending machines destructible (#16574) --- .../Structures/Machines/vending_machines.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Resources/Prototypes/Entities/Structures/Machines/vending_machines.yml b/Resources/Prototypes/Entities/Structures/Machines/vending_machines.yml index 699625b61f..a662bafc99 100644 --- a/Resources/Prototypes/Entities/Structures/Machines/vending_machines.yml +++ b/Resources/Prototypes/Entities/Structures/Machines/vending_machines.yml @@ -40,6 +40,20 @@ - !type:DoActsBehavior acts: ["Breakage"] - !type:EjectVendorItems + - trigger: + !type:DamageTrigger + damage: 200 + behaviors: + - !type:SpawnEntitiesBehavior + spawn: + SheetSteel1: + min: 1 + max: 1 + - !type:DoActsBehavior + acts: [ "Destruction" ] + - !type:PlaySoundBehavior + sound: + path: /Audio/Effects/metalbreak.ogg - type: ActivatableUI key: enum.VendingMachineUiKey.Key - type: ActivatableUIRequiresPower -- 2.51.2