From 77a150d6c8e8283825cbf5f013982ef6dcf671e0 Mon Sep 17 00:00:00 2001 From: Alex Evgrashin Date: Mon, 14 Nov 2022 15:57:59 +0100 Subject: [PATCH] Cell charger tweaks (#12514) --- .../Entities/Structures/Power/chargers.yml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/Resources/Prototypes/Entities/Structures/Power/chargers.yml b/Resources/Prototypes/Entities/Structures/Power/chargers.yml index d026cdf699..17336e6e66 100644 --- a/Resources/Prototypes/Entities/Structures/Power/chargers.yml +++ b/Resources/Prototypes/Entities/Structures/Power/chargers.yml @@ -22,6 +22,21 @@ - type: Pullable - type: Clickable - type: InteractionOutline + - type: Damageable + damageContainer: Inorganic + damageModifierSet: Metallic + - type: Destructible + thresholds: + - trigger: + !type:DamageTrigger + damage: 40 + behaviors: + - !type:EmptyAllContainersBehaviour + - !type:DoActsBehavior + acts: [ "Destruction" ] + - !type:PlaySoundBehavior + sound: + path: /Audio/Effects/metalbreak.ogg - type: Physics bodyType: Static - type: Fixtures @@ -31,9 +46,7 @@ bounds: "-0.10,-0.10,0.10,0.10" density: 500 mask: - - MachineMask - layer: - - HighImpassable + - TabletopMachineMask - type: ItemSlots slots: charger_slot: