]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix shuttle walls rusting when initialized on station grid (#31162)
authorSlamBamActionman <83650252+SlamBamActionman@users.noreply.github.com>
Mon, 19 Aug 2024 13:43:31 +0000 (15:43 +0200)
committerGitHub <noreply@github.com>
Mon, 19 Aug 2024 13:43:31 +0000 (15:43 +0200)
* Initial commit

* Also reinforced

Resources/Prototypes/Entities/Structures/Walls/walls.yml

index 03593305eb54a8210818b22d1e5ee96e1b1328da..51cdaa457675bc9f96848713597e391d5073c59a 100644 (file)
     node: diagonalshuttleWall
 
 - type: entity
-  parent: WallReinforced
+  parent: BaseWall
   id: WallShuttle
   name: shuttle wall
   suffix: Reinforced, Exterior
   components:
+  - type: Damageable
+    damageContainer: StructuralInorganic
+    damageModifierSet: StructuralMetallicStrong
+  - type: Destructible
+    thresholds:
+    - trigger:
+        !type:DamageTrigger
+        damage: 600
+      behaviors:
+      - !type:DoActsBehavior
+        acts: ["Destruction"]
+      - !type:PlaySoundBehavior
+        sound:
+          collection: MetalSlam
+    - trigger:
+        !type:DamageTrigger
+        damage: 400
+      behaviors:
+      - !type:PlaySoundBehavior
+        sound:
+          collection: MetalSlam
+      - !type:ChangeConstructionNodeBehavior
+        node: girder
+      - !type:DoActsBehavior
+        acts: ["Destruction"]
+  - type: StaticPrice
+    price: 150
+  - type: RadiationBlocker
+    resistance: 5
   - type: Sprite
     sprite: Structures/Walls/shuttle.rsi
   - type: Icon
     reflectProb: 1
 
 - type: entity
-  parent: WallSolid
+  parent: BaseWall
   id: WallShuttleInterior
   name: shuttle wall
   suffix: Interior
   components:
+  - type: Tag
+    tags:
+      - Wall
+  - type: RCDDeconstructable
+    cost: 6
+    delay: 8
+    fx: EffectRCDDeconstruct8
+  - type: Destructible
+    thresholds:
+    - trigger:
+        !type:DamageTrigger
+        damage: 400
+      behaviors:
+      - !type:DoActsBehavior
+        acts: ["Destruction"]
+      - !type:PlaySoundBehavior
+        sound:
+          collection: MetalSlam
+    - trigger:
+        !type:DamageTrigger
+        damage: 200
+      behaviors:
+      - !type:PlaySoundBehavior
+        sound:
+          collection: MetalSlam
+      - !type:ChangeConstructionNodeBehavior
+        node: girder
+      - !type:DoActsBehavior
+        acts: ["Destruction"]
   - type: Sprite
     sprite: Structures/Walls/shuttleinterior.rsi
   - type: Icon