]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Repairable shuttles (#24193)
authorEd <96445749+TheShuEd@users.noreply.github.com>
Wed, 17 Jan 2024 23:57:40 +0000 (02:57 +0300)
committerGitHub <noreply@github.com>
Wed, 17 Jan 2024 23:57:40 +0000 (02:57 +0300)
* fixable shuttle

* nukie not repairable

* fix

Resources/Prototypes/Entities/Structures/Shuttles/thrusters.yml

index 61218cf41c589e6100f15746fd5e286b73c5b8f6..fb053d46a4706f87ca06c9d52b401ecded21fb37 100644 (file)
@@ -39,6 +39,9 @@
         behaviors:
           - !type:DoActsBehavior
             acts: ["Destruction"]
+          - !type:PlaySoundBehavior
+            sound:
+              path: /Audio/Effects/metalbreak.ogg
     - type: StaticPrice
       price: 300
   placement:
   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:
     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