From 2c0e1fcfb97ba401029a122fbdeef0eae5ae979e Mon Sep 17 00:00:00 2001 From: Ed <96445749+TheShuEd@users.noreply.github.com> Date: Thu, 18 Jan 2024 02:57:40 +0300 Subject: [PATCH] Repairable shuttles (#24193) * fixable shuttle * nukie not repairable * fix --- .../Structures/Shuttles/thrusters.yml | 42 ++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/Resources/Prototypes/Entities/Structures/Shuttles/thrusters.yml b/Resources/Prototypes/Entities/Structures/Shuttles/thrusters.yml index 61218cf41c..fb053d46a4 100644 --- a/Resources/Prototypes/Entities/Structures/Shuttles/thrusters.yml +++ b/Resources/Prototypes/Entities/Structures/Shuttles/thrusters.yml @@ -39,6 +39,9 @@ behaviors: - !type:DoActsBehavior acts: ["Destruction"] + - !type:PlaySoundBehavior + sound: + path: /Audio/Effects/metalbreak.ogg - type: StaticPrice price: 300 placement: @@ -49,9 +52,27 @@ name: thruster parent: [ BaseThruster, ConstructibleMachine ] components: - - type: Thruster - type: Machine board: ThrusterMachineCircuitboard + - type: Destructible + thresholds: + - trigger: + !type:DamageTrigger + damage: 300 + behaviors: + - !type:DoActsBehavior + acts: ["Destruction"] + - trigger: + !type:DamageTrigger + damage: 100 + behaviors: + - !type:DoActsBehavior + acts: ["Destruction"] + - !type:PlaySoundBehavior + sound: + path: /Audio/Effects/metalbreak.ogg + - !type:ChangeConstructionNodeBehavior + node: machineFrame - type: Sprite sprite: Structures/Shuttles/thruster.rsi layers: @@ -142,6 +163,25 @@ color: "#4246b3" - type: Machine board: GyroscopeMachineCircuitboard + - type: Destructible + thresholds: + - trigger: + !type:DamageTrigger + damage: 300 + behaviors: + - !type:DoActsBehavior + acts: ["Destruction"] + - trigger: + !type:DamageTrigger + damage: 100 + behaviors: + - !type:DoActsBehavior + acts: ["Destruction"] + - !type:PlaySoundBehavior + sound: + path: /Audio/Effects/metalbreak.ogg + - !type:ChangeConstructionNodeBehavior + node: machineFrame - type: UpgradePowerDraw powerDrawMultiplier: 0.75 scaling: Exponential