From 48e5c3cc8de5f830a74de5cd7671fa42c2995edd Mon Sep 17 00:00:00 2001 From: Velcroboy <107660393+IamVelcroboy@users.noreply.github.com> Date: Sat, 30 Mar 2024 21:24:38 -0500 Subject: [PATCH] Adds construction/decon graphs for plastic flaps (#26341) * Adds construction/decon graphs for plastic flaps * Dang arbitrage * undo conflict --------- Co-authored-by: Velcroboy --- .../Entities/Structures/plastic_flaps.yml | 17 ++++- .../Graphs/structures/plastic_flaps.yml | 71 +++++++++++++++++++ .../Recipes/Construction/structures.yml | 53 +++++++++++++- 3 files changed, 138 insertions(+), 3 deletions(-) diff --git a/Resources/Prototypes/Entities/Structures/plastic_flaps.yml b/Resources/Prototypes/Entities/Structures/plastic_flaps.yml index bf49eb1be3..c4ee507395 100644 --- a/Resources/Prototypes/Entities/Structures/plastic_flaps.yml +++ b/Resources/Prototypes/Entities/Structures/plastic_flaps.yml @@ -66,12 +66,15 @@ - 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 @@ -83,12 +86,17 @@ - !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 @@ -100,3 +108,8 @@ - !type:DoActsBehavior acts: ["Destruction"] - type: Airtight + - type: Construction + graph: PlasticFlapsGraph + node: airtightopaqueFlaps + - type: StaticPrice + price: 100 diff --git a/Resources/Prototypes/Recipes/Construction/Graphs/structures/plastic_flaps.yml b/Resources/Prototypes/Recipes/Construction/Graphs/structures/plastic_flaps.yml index 9f8497ac98..776c1491a6 100644 --- a/Resources/Prototypes/Recipes/Construction/Graphs/structures/plastic_flaps.yml +++ b/Resources/Prototypes/Recipes/Construction/Graphs/structures/plastic_flaps.yml @@ -13,6 +13,7 @@ - material: Plastic amount: 5 doAfter: 10 + - node: plasticFlaps entity: PlasticFlapsClear edges: @@ -24,3 +25,73 @@ 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 diff --git a/Resources/Prototypes/Recipes/Construction/structures.yml b/Resources/Prototypes/Recipes/Construction/structures.yml index 963a289bab..bea97beaaa 100644 --- a/Resources/Prototypes/Recipes/Construction/structures.yml +++ b/Resources/Prototypes/Recipes/Construction/structures.yml @@ -86,7 +86,7 @@ canRotate: false canBuildInImpassable: false conditions: - - !type:TileNotBlocked + - !type:TileNotBlocked - type: construction name: clock wall @@ -1590,6 +1590,57 @@ 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 -- 2.51.2