]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Adds construction/decon graphs for plastic flaps (#26341)
authorVelcroboy <107660393+IamVelcroboy@users.noreply.github.com>
Sun, 31 Mar 2024 02:24:38 +0000 (21:24 -0500)
committerGitHub <noreply@github.com>
Sun, 31 Mar 2024 02:24:38 +0000 (13:24 +1100)
* Adds construction/decon graphs for plastic flaps

* Dang arbitrage

* undo conflict

---------

Co-authored-by: Velcroboy <velcroboy333@hotmail.com>
Resources/Prototypes/Entities/Structures/plastic_flaps.yml
Resources/Prototypes/Recipes/Construction/Graphs/structures/plastic_flaps.yml
Resources/Prototypes/Recipes/Construction/structures.yml

index bf49eb1be35a8b7948ad48559900b717baa9062e..c4ee507395f2df6791071fd82d5045970287ab7a 100644 (file)
         - Opaque
         - MidImpassable
   - type: Occluder
+  - type: Construction
+    graph: PlasticFlapsGraph
+    node: opaqueFlaps
 
 - type: entity
   id: PlasticFlapsAirtightClear
   parent: PlasticFlapsClear
   name: airtight plastic flaps
-  suffix: Airtight Clear
+  suffix: Airtight, Clear
   description: Heavy duty, slightly stronger, airtight plastic flaps. Definitely can't get past those. No way.
   components:
   - type: Destructible
       - !type:DoActsBehavior
         acts: ["Destruction"]
   - type: Airtight
+  - type: Construction
+    graph: PlasticFlapsGraph
+    node: airtightFlaps
+  - type: StaticPrice
+    price: 100
 
 - type: entity
   id: PlasticFlapsAirtightOpaque
   parent: PlasticFlapsOpaque
   name: airtight plastic flaps
-  suffix: Airtight Opaque
+  suffix: Airtight, Opaque
   description: Heavy duty, slightly stronger, airtight plastic flaps. Definitely can't get past those. No way.
   components:
   - type: Destructible
       - !type:DoActsBehavior
         acts: ["Destruction"]
   - type: Airtight
+  - type: Construction
+    graph: PlasticFlapsGraph
+    node: airtightopaqueFlaps
+  - type: StaticPrice
+    price: 100
index 9f8497ac98a00fa07fd721820de6bd7b9b347a9a..776c1491a6333c4db82c68bd9b370dfaa7b15a11 100644 (file)
@@ -13,6 +13,7 @@
           - material: Plastic
             amount: 5
             doAfter: 10
+
   - node: plasticFlaps
     entity: PlasticFlapsClear
     edges:
         steps:
           - tool: Anchoring
             doAfter: 10
+
+      - to: opaqueFlaps
+        completed:
+          - !type:SnapToGrid { }
+        steps:
+          - tool: Welding
+            doAfter: 5
+
+      - to: airtightFlaps
+        completed:
+          - !type:SnapToGrid { }
+        steps:
+          - material: Plastic
+            amount: 5
+            doAfter: 5
+          - tool: Screwing
+            doAfter: 5
+
+  - node: opaqueFlaps
+    entity: PlasticFlapsOpaque
+    edges:
+      - to: start
+        completed:
+          - !type:SpawnPrototype
+            prototype: SheetPlastic
+            amount: 5
+        steps:
+          - tool: Anchoring
+            doAfter: 10
+
+      - to: airtightopaqueFlaps
+        completed:
+          - !type:SnapToGrid { }
+        steps:
+          - material: Plastic
+            amount: 5
+            doAfter: 5
+          - tool: Screwing
+            doAfter: 5
+
+  - node: airtightFlaps
+    entity: PlasticFlapsAirtightClear
+    edges:
+      - to: plasticFlaps
+        completed:
+          - !type:SpawnPrototype
+            prototype: SheetPlastic
+            amount: 5
+        steps:
+          - tool: Screwing
+            doAfter: 10
+
+      - to: airtightopaqueFlaps #test
+        completed:
+          - !type:SnapToGrid { }
+        steps:
+          - tool: Welding
+            doAfter: 5
+
+  - node: airtightopaqueFlaps
+    entity: PlasticFlapsAirtightOpaque
+    edges:
+      - to: opaqueFlaps
+        completed:
+          - !type:SpawnPrototype
+            prototype: SheetPlastic
+            amount: 5
+        steps:
+          - tool: Screwing
+            doAfter: 10
index 963a289babf7634f0312decf4efd9467476f1b81..bea97beaaa593a2b6ae2c18f47984a3669396366 100644 (file)
@@ -86,7 +86,7 @@
   canRotate: false
   canBuildInImpassable: false
   conditions:
-    - !type:TileNotBlocked    
+    - !type:TileNotBlocked
 
 - type: construction
   name: clock wall
   conditions:
     - !type:TileNotBlocked
 
+- type: construction
+  name: airtight plastic flaps
+  id: PlasticFlapsAirtight
+  graph: PlasticFlapsGraph
+  startNode: start
+  targetNode: airtightFlaps
+  category: construction-category-structures
+  placementMode: SnapgridCenter
+  description: An airtight plastic flap to let items through and keep people out.
+  objectType: Structure
+  canBuildInImpassable: false
+  icon:
+    sprite: Structures/plastic_flaps.rsi
+    state: plasticflaps
+  conditions:
+    - !type:TileNotBlocked
+
+- type: construction
+  name: opaque plastic flaps
+  id: PlasticFlapsOpaque
+  graph: PlasticFlapsGraph
+  startNode: start
+  targetNode: opaqueFlaps
+  category: construction-category-structures
+  placementMode: SnapgridCenter
+  description: An opaque plastic flap to let items through and keep people out.
+  objectType: Structure
+  canBuildInImpassable: false
+  icon:
+    sprite: Structures/plastic_flaps.rsi
+    state: plasticflaps
+  conditions:
+    - !type:TileNotBlocked
+
+- type: construction
+  name: airtight opaque plastic flaps
+  id: PlasticFlapsAirtightOpaque
+  graph: PlasticFlapsGraph
+  startNode: start
+  targetNode: airtightopaqueFlaps
+  category: construction-category-structures
+  placementMode: SnapgridCenter
+  description: An opaque, airtight plastic flap to let items through and keep people out.
+  objectType: Structure
+  canBuildInImpassable: false
+  icon:
+    sprite: Structures/plastic_flaps.rsi
+    state: plasticflaps
+  conditions:
+    - !type:TileNotBlocked
+
 - type: construction
   name: bananium clown statue
   id: BananiumClownStatue