Adds construction/decon graphs for plastic flaps (#26341)

* Adds construction/decon graphs for plastic flaps

* Dang arbitrage

* undo conflict

---------

Co-authored-by: Velcroboy <velcroboy333@hotmail.com>
This commit is contained in:
Velcroboy
2024-03-30 21:24:38 -05:00
committed by GitHub
parent 9d1d5de4a7
commit 48e5c3cc8d
3 changed files with 138 additions and 3 deletions

View File

@@ -66,12 +66,15 @@
- Opaque - Opaque
- MidImpassable - MidImpassable
- type: Occluder - type: Occluder
- type: Construction
graph: PlasticFlapsGraph
node: opaqueFlaps
- type: entity - type: entity
id: PlasticFlapsAirtightClear id: PlasticFlapsAirtightClear
parent: PlasticFlapsClear parent: PlasticFlapsClear
name: airtight plastic flaps 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. description: Heavy duty, slightly stronger, airtight plastic flaps. Definitely can't get past those. No way.
components: components:
- type: Destructible - type: Destructible
@@ -83,12 +86,17 @@
- !type:DoActsBehavior - !type:DoActsBehavior
acts: ["Destruction"] acts: ["Destruction"]
- type: Airtight - type: Airtight
- type: Construction
graph: PlasticFlapsGraph
node: airtightFlaps
- type: StaticPrice
price: 100
- type: entity - type: entity
id: PlasticFlapsAirtightOpaque id: PlasticFlapsAirtightOpaque
parent: PlasticFlapsOpaque parent: PlasticFlapsOpaque
name: airtight plastic flaps 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. description: Heavy duty, slightly stronger, airtight plastic flaps. Definitely can't get past those. No way.
components: components:
- type: Destructible - type: Destructible
@@ -100,3 +108,8 @@
- !type:DoActsBehavior - !type:DoActsBehavior
acts: ["Destruction"] acts: ["Destruction"]
- type: Airtight - type: Airtight
- type: Construction
graph: PlasticFlapsGraph
node: airtightopaqueFlaps
- type: StaticPrice
price: 100

View File

@@ -13,6 +13,7 @@
- material: Plastic - material: Plastic
amount: 5 amount: 5
doAfter: 10 doAfter: 10
- node: plasticFlaps - node: plasticFlaps
entity: PlasticFlapsClear entity: PlasticFlapsClear
edges: edges:
@@ -24,3 +25,73 @@
steps: steps:
- tool: Anchoring - tool: Anchoring
doAfter: 10 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

View File

@@ -1590,6 +1590,57 @@
conditions: conditions:
- !type:TileNotBlocked - !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 - type: construction
name: bananium clown statue name: bananium clown statue
id: BananiumClownStatue id: BananiumClownStatue