From bba83e88b0b59507cfe912a1ec19b5daa0358718 Mon Sep 17 00:00:00 2001 From: SnappingOpossum Date: Tue, 21 Oct 2025 20:28:59 +1100 Subject: [PATCH] Allow upgraded solars to take structural damage (#40992) Parent Damageable on solars --- .../Structures/Power/Generation/solar.yml | 21 +++---------------- 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/Resources/Prototypes/Entities/Structures/Power/Generation/solar.yml b/Resources/Prototypes/Entities/Structures/Power/Generation/solar.yml index 973bd6e119..bf04eaaab4 100644 --- a/Resources/Prototypes/Entities/Structures/Power/Generation/solar.yml +++ b/Resources/Prototypes/Entities/Structures/Power/Generation/solar.yml @@ -13,6 +13,9 @@ - type: InteractionOutline - type: Transform anchored: true + - type: Damageable + damageContainer: StructuralInorganic + damageModifierSet: Metallic - type: Physics bodyType: Static - type: Fixtures @@ -68,9 +71,6 @@ - type: Sprite sprite: Structures/Power/Generation/solar_panel.rsi state: solar_panel_plasma - - type: Damageable - damageContainer: Inorganic - damageModifierSet: Metallic - type: Destructible thresholds: - trigger: # Excess damage, don't spawn entities @@ -111,9 +111,6 @@ - type: Sprite sprite: Structures/Power/Generation/solar_panel.rsi state: solar_panel_uranium - - type: Damageable - damageContainer: Inorganic - damageModifierSet: Metallic - type: Destructible thresholds: - trigger: # Excess damage, don't spawn entities @@ -150,9 +147,6 @@ supplyRampTolerance: 500 supplyRampRate: 500 - type: SolarPanel - - type: Damageable - damageContainer: StructuralInorganic - damageModifierSet: Metallic - type: Destructible thresholds: - trigger: # Excess damage, don't spawn entities @@ -189,9 +183,6 @@ components: - type: Sprite state: solar_panel_glass_broken - - type: Damageable - damageContainer: StructuralInorganic - damageModifierSet: Metallic - type: Destructible thresholds: - trigger: # Excess damage, don't spawn entities @@ -230,9 +221,6 @@ components: - type: Sprite state: solar_panel_plasma_broken - - type: Damageable - damageContainer: Inorganic - damageModifierSet: Metallic - type: Destructible thresholds: - trigger: # Excess damage, don't spawn entities @@ -271,9 +259,6 @@ components: - type: Sprite state: solar_panel_uranium_broken - - type: Damageable - damageContainer: Inorganic - damageModifierSet: Metallic - type: Destructible thresholds: - trigger: # Excess damage, don't spawn entities -- 2.51.2