From: Ed <96445749+TheShuEd@users.noreply.github.com> Date: Wed, 17 Jan 2024 23:57:40 +0000 (+0300) Subject: Repairable shuttles (#24193) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=2c0e1fcfb97ba401029a122fbdeef0eae5ae979e;p=space-station-14.git Repairable shuttles (#24193) * fixable shuttle * nukie not repairable * fix --- 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