From: Nemanja <98561806+EmoGarbage404@users.noreply.github.com> Date: Thu, 18 May 2023 23:48:14 +0000 (-0400) Subject: make vending machines destructible (#16574) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=11da00778c5da99c3666eb9e83b4c4aa87963a87;p=space-station-14.git make vending machines destructible (#16574) --- 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