]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Cleanup railings yml (#31618)
authorlzk <124214523+lzk228@users.noreply.github.com>
Mon, 2 Sep 2024 02:01:25 +0000 (04:01 +0200)
committerGitHub <noreply@github.com>
Mon, 2 Sep 2024 02:01:25 +0000 (04:01 +0200)
* Cleanup railings

* fix line

* real fix

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

index ace34a8052d6346843377d165f8ea21c361b1863..28227afa17e939e2dae4bebbc64096a38dcd530e 100644 (file)
@@ -1,18 +1,38 @@
 - type: entity
   parent: BaseStructure
-  id: Railing
+  id: BaseRailing
+  abstract: true
   name: railing
   description: Basic railing meant to protect idiots like you from falling.
   components:
   - type: Sprite
     drawdepth: SmallObjects
     sprite: Structures/Walls/railing.rsi
-    state: side
   - type: Icon
     sprite: Structures/Walls/railing.rsi
-    state: side
   - type: Physics
     bodyType: Static
+  - type: InteractionOutline
+  - type: Repairable
+  - type: Damageable
+    damageContainer: Inorganic
+    damageModifierSet: FlimsyMetallic
+  - type: Climbable
+  - type: Construction
+    graph: Railing
+  - type: RCDDeconstructable
+    cost: 2
+    delay: 2
+    fx: EffectRCDDeconstruct2
+
+- type: entity
+  parent: BaseRailing
+  id: Railing
+  components:
+  - type: Sprite
+    state: side
+  - type: Icon
+    state: side
   - type: Fixtures
     fixtures:
       fix1:
         - TableMask
         layer:
         - TableLayer
-  - type: InteractionOutline
-  - type: Repairable
-  - type: Damageable
-    damageContainer: Inorganic
-    damageModifierSet: FlimsyMetallic
   - type: Destructible
     thresholds:
     - trigger:
             max: 1
       - !type:DoActsBehavior
         acts: [ "Destruction" ]
-  - type: Climbable
   - type: Construction
-    graph: Railing
     node: railing
-  - type: RCDDeconstructable
-    cost: 2
-    delay: 2
-    fx: EffectRCDDeconstruct2
 
 - type: entity
-  parent: BaseStructure
+  parent: BaseRailing
   id: RailingCorner
-  name: railing
-  description: Basic railing meant to protect idiots like you from falling.
   components:
   - type: Sprite
-    drawdepth: SmallObjects
-    sprite: Structures/Walls/railing.rsi
     state: corner
   - type: Icon
-    sprite: Structures/Walls/railing.rsi
     state: corner
-  - type: Physics
-    bodyType: Static
   - type: Fixtures
     fixtures:
       fix1:
         - TableMask
         layer:
         - TableLayer
-  - type: InteractionOutline
-  - type: Repairable
-  - type: Damageable
-    damageContainer: Inorganic
-    damageModifierSet: FlimsyMetallic
   - type: Destructible
     thresholds:
     - trigger:
             max: 2
       - !type:DoActsBehavior
         acts: [ "Destruction" ]
-  - type: Climbable
   - type: Construction
-    graph: Railing
     node: railingCorner
-  - type: RCDDeconstructable
-    cost: 2
-    delay: 2
-    fx: EffectRCDDeconstruct2
 
 - type: entity
-  parent: BaseStructure
+  parent: BaseRailing
   id: RailingCornerSmall
-  name: railing
-  description: Basic railing meant to protect idiots like you from falling.
   components:
   - type: Sprite
-    drawdepth: SmallObjects
-    sprite: Structures/Walls/railing.rsi
     state: corner_small
   - type: Icon
-    sprite: Structures/Walls/railing.rsi
     state: corner_small
-  - type: Physics
-    bodyType: Static
   - type: Fixtures
     fixtures:
       fix1:
         - TableMask
         layer:
         - TableLayer
-  - type: InteractionOutline
-  - type: Repairable
-  - type: Damageable
-    damageContainer: Inorganic
-    damageModifierSet: FlimsyMetallic
   - type: Destructible
     thresholds:
     - trigger:
             max: 1
       - !type:DoActsBehavior
         acts: [ "Destruction" ]
-  - type: Climbable
   - type: Construction
-    graph: Railing
     node: railingCornerSmall
-  - type: RCDDeconstructable
-    cost: 2
-    delay: 2
-    fx: EffectRCDDeconstruct2
-
+    
 - type: entity
-  parent: BaseStructure
+  parent: BaseRailing
   id: RailingRound
-  name: railing
-  description: Basic railing meant to protect idiots like you from falling.
   components:
   - type: Sprite
-    drawdepth: SmallObjects
-    sprite: Structures/Walls/railing.rsi
     state: round
-  - type: Physics
-    bodyType: Static
+  - type: Icon
+    state: round
   - type: Fixtures
     fixtures:
       fix1:
           - TableMask
         layer:
           - TableLayer
-  - type: InteractionOutline
-  - type: Repairable
-  - type: Damageable
-    damageContainer: Inorganic
-    damageModifierSet: FlimsyMetallic
   - type: Destructible
     thresholds:
     - trigger:
             max: 2
       - !type:DoActsBehavior
         acts: [ "Destruction" ]
-  - type: Climbable
   - type: Construction
-    graph: Railing
     node: railingRound
-  - type: RCDDeconstructable
-    cost: 2
-    delay: 2
-    fx: EffectRCDDeconstruct2