Add buildable plastic flaps (#6583)

Co-authored-by: fishfish458 <fishfish458>
This commit is contained in:
Fishfish458
2022-02-21 23:01:58 -06:00
committed by GitHub
parent 8d111c8959
commit df53d50721
19 changed files with 159 additions and 33 deletions

View File

@@ -0,0 +1,26 @@
- type: constructionGraph
id: PlasticFlapsGraph
start: start
graph:
- node: start
actions:
- !type:DestroyEntity {}
edges:
- to: plasticFlaps
completed:
- !type:SnapToGrid { }
steps:
- material: Plastic
amount: 5
doAfter: 10
- node: plasticFlaps
entity: PlasticFlapsClear
edges:
- to: start
completed:
- !type:SpawnPrototype
prototype: SheetPlastic
amount: 5
steps:
- tool: Anchoring
doAfter: 10

View File

@@ -450,7 +450,7 @@
conditions:
# Same here. - 20kdc
- !type:TileNotBlocked
- type: construction
name: ground light post
id: LightGroundFixture
@@ -672,5 +672,20 @@
icon:
sprite: Structures/Doors/MineralDoors/paper_door.rsi
state: closed
- type: construction
name: airtight plastic flaps
id: PlasticFlapsClear
graph: PlasticFlapsGraph
startNode: start
targetNode: plasticFlaps
category: Structures
placementMode: SnapgridCenter
description: A 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