From 3cb18bd25847426401280ea1d90558f7d40e1132 Mon Sep 17 00:00:00 2001 From: stopka-html <85645977+stopka-html@users.noreply.github.com> Date: Tue, 8 Nov 2022 04:44:32 +0200 Subject: [PATCH] rtg returns (#12143) --- .../Power/Generation/generators.yml | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/Resources/Prototypes/Entities/Structures/Power/Generation/generators.yml b/Resources/Prototypes/Entities/Structures/Power/Generation/generators.yml index 4ba2270553..f15c17d7a7 100644 --- a/Resources/Prototypes/Entities/Structures/Power/Generation/generators.yml +++ b/Resources/Prototypes/Entities/Structures/Power/Generation/generators.yml @@ -234,6 +234,23 @@ range: 5 sound: path: /Audio/Ambience/Objects/buzzing.ogg + - type: Destructible + thresholds: + - trigger: + !type:DamageTrigger + damage: 300 + behaviors: + - !type:PlaySoundBehavior + sound: + path: /Audio/Effects/metalbreak.ogg + - !type:SpawnEntitiesBehavior + spawn: + GeneratorRTGDamaged: + min: 1 + max: 1 + - !type:DoActsBehavior + acts: [ "Destruction" ] + # TODO: need radioactive fallout when destroyed - type: entity @@ -253,3 +270,22 @@ - state: rtg_glow - type: RadiationSource # ideally only when opened. intensity: 2 + - type: Destructible + thresholds: + - trigger: + !type:DamageTrigger + damage: 50 + behaviors: + - !type:PlaySoundBehavior + sound: + path: /Audio/Effects/metalbreak.ogg + - !type:SpawnEntitiesBehavior + spawn: + SheetSteel1: + min: 1 + max: 5 + SheetUranium1: + min: 1 + max: 5 + - !type:DoActsBehavior + acts: [ "Destruction" ]