]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
made thin firelocks constructable/deconstructable (#26745)
authorosjarw <62134478+osjarw@users.noreply.github.com>
Sat, 6 Apr 2024 01:55:31 +0000 (04:55 +0300)
committerGitHub <noreply@github.com>
Sat, 6 Apr 2024 01:55:31 +0000 (21:55 -0400)
Resources/Prototypes/Entities/Structures/Doors/Firelocks/firelock.yml
Resources/Prototypes/Recipes/Construction/Graphs/structures/firelock.yml
Resources/Prototypes/Recipes/Construction/structures.yml

index a678ab74438037be7468a2a5c3c7c217715cf99a..1ba867773bc717b796881184ba08dcaf694f2bd8 100644 (file)
 
 - type: entity
   id: FirelockEdge
-  parent: BaseFirelock
+  parent: Firelock
   name: firelock
   components:
     - type: Sprite
       canCollide: false
     - type: StaticPrice
       price: 100
+    - type: Construction
+      graph: Firelock
+      node: FirelockEdge
index 0dbf26794d9338a3b43941d85a1c1a960ae826bd..0d7bdddd2f29a4264f5b2c10b5c90ea23a2281e1 100644 (file)
             - tool: Anchoring
               doAfter: 1
 
+        - to: FirelockEdge
+          conditions:
+            - !type:EntityAnchored
+              anchored: true
+          steps:
+            - tool: Welding
+              doAfter: 0.5
+
         - to: FirelockGlassFrame
           conditions:
             - !type:EntityAnchored
           steps:
             - tool: Anchoring
               doAfter: 1
+
+    - node: FirelockEdge
+      entity: FirelockEdge
+      edges:
+        - to: frame4
+          conditions:
+            - !type:DoorWelded
+              welded: true
+          steps:
+            - tool: Anchoring
+              doAfter: 0.25
index bea97beaaa593a2b6ae2c18f47984a3669396366..a1f370cc1bd23e758f96576cbe9793c44e0043f0 100644 (file)
   conditions:
     - !type:TileNotBlocked
 
+- type: construction
+  name: Thin firelock
+  id: FirelockEdge
+  graph: Firelock
+  startNode: start
+  targetNode: FirelockEdge
+  category: construction-category-structures
+  description: This is a firelock - it locks an area when a fire alarm in the area is triggered. Don't get squished!
+  icon:
+    sprite: Structures/Doors/edge_door_hazard.rsi
+    state: closed
+  placementMode: SnapgridCenter
+  objectType: Structure
+  canBuildInImpassable: false
+  conditions:
+    - !type:TileNotBlocked
+
 - type: construction
   name: shutter
   id: Shutters