From 70d6e3dcbd44efeeca017ce2a7c9e6b3c1666bc0 Mon Sep 17 00:00:00 2001 From: Puro <103608145+PuroSlavKing@users.noreply.github.com> Date: Fri, 7 Jul 2023 05:52:09 +0300 Subject: [PATCH] [Fix] Dresser and broken ballistic turret (#17866) --- .../Entities/Objects/Weapons/Guns/turrets.yml | 18 ++++++++++++++++++ .../Entities/Structures/Furniture/dresser.yml | 13 ++++++++++++- 2 files changed, 30 insertions(+), 1 deletion(-) diff --git a/Resources/Prototypes/Entities/Objects/Weapons/Guns/turrets.yml b/Resources/Prototypes/Entities/Objects/Weapons/Guns/turrets.yml index cf162fa4fd..8cbf19ef77 100644 --- a/Resources/Prototypes/Entities/Objects/Weapons/Guns/turrets.yml +++ b/Resources/Prototypes/Entities/Objects/Weapons/Guns/turrets.yml @@ -11,6 +11,24 @@ drawdepth: WallMountedItems layers: - state: syndie_broken + - type: Damageable + damageContainer: Inorganic + - type: Destructible + thresholds: + - trigger: + !type:DamageTrigger + damage: 450 + behaviors: + - !type:DoActsBehavior + acts: [ "Destruction" ] + - !type:PlaySoundBehavior + sound: + path: /Audio/Effects/metalbreak.ogg + - !type:SpawnEntitiesBehavior + spawn: + SheetSteel1: + min: 2 + max: 4 - type: entity parent: BaseStructure diff --git a/Resources/Prototypes/Entities/Structures/Furniture/dresser.yml b/Resources/Prototypes/Entities/Structures/Furniture/dresser.yml index 3a7f1756bc..f48df30dbf 100644 --- a/Resources/Prototypes/Entities/Structures/Furniture/dresser.yml +++ b/Resources/Prototypes/Entities/Structures/Furniture/dresser.yml @@ -23,6 +23,17 @@ max: 3 - !type:DoActsBehavior acts: [ "Destruction" ] + - type: Storage + capacity: 50 + - type: ContainerContainer + containers: + storagebase: !type:Container + - type: UserInterface + interfaces: + - key: enum.StorageUiKey.Key + type: StorageBoundUserInterface + - type: InteractionOutline + - type: Clickable - type: Tag tags: - - Wooden \ No newline at end of file + - Wooden