Glass airlock construction (#7877)

* Lower indentation

* Add glass airlock construction

* Fix glass airlock wrong name
This commit is contained in:
ShadowCommander
2022-05-08 22:52:19 -07:00
committed by GitHub
parent df49c2fd57
commit 2a3f1d2ae0
2 changed files with 131 additions and 82 deletions

View File

@@ -105,6 +105,9 @@
layer: #removed opaque from the layer, allowing lasers to pass through glass airlocks
- Impassable
- VaultImpassable
- type: Construction
graph: Airlock
node: glassAirlock
- type: PaintableAirlock
group: Windoor

View File

@@ -2,89 +2,135 @@
id: Airlock
start: start
graph:
- node: start
edges:
- to: assembly
completed:
- !type:SetAnchor
value: false
steps:
- material: Steel
amount: 4
doAfter: 2
- node: start
edges:
- to: assembly
completed:
- !type:SetAnchor
value: false
steps:
- material: Steel
amount: 4
doAfter: 2
- node: assembly
entity: AirlockAssembly
actions:
- !type:SpriteStateChange
state: assembly
- !type:SnapToGrid {}
- !type:SetAnchor {}
edges:
- to: wired
conditions:
- !type:EntityAnchored {}
steps:
- material: Cable
amount: 5
doAfter: 2.5
- to: start
conditions:
- !type:EntityAnchored
anchored: false
completed:
- !type:SpawnPrototype
prototype: SheetSteel1
amount: 4
- !type:DeleteEntity {}
steps:
- tool: Welding
doAfter: 3
- node: assembly
entity: AirlockAssembly
actions:
- !type:SpriteStateChange
state: assembly
- !type:SnapToGrid {}
- !type:SetAnchor {}
edges:
- to: wired
conditions:
- !type:EntityAnchored {}
steps:
- material: Cable
amount: 5
doAfter: 2.5
- to: start
conditions:
- !type:EntityAnchored
anchored: false
completed:
- !type:SpawnPrototype
prototype: SheetSteel1
amount: 4
- !type:DeleteEntity {}
steps:
- tool: Welding
doAfter: 3
- node: wired
entity: AirlockAssembly
edges:
- to: electronics
conditions:
- !type:EntityAnchored {}
steps:
- tag: DoorElectronics
store: board
name: "door electronics circuit board"
icon:
sprite: "Objects/Misc/module.rsi"
state: "door_electronics"
doAfter: 3
- to: assembly
completed:
- !type:SpawnPrototype
prototype: CableApcStack1
amount: 5
steps:
- tool: Cutting
doAfter: 2.5
- node: wired
entity: AirlockAssembly
edges:
- to: electronics
conditions:
- !type:EntityAnchored {}
steps:
- tag: DoorElectronics
store: board
name: "door electronics circuit board"
icon:
sprite: "Objects/Misc/module.rsi"
state: "door_electronics"
doAfter: 3
- to: assembly
completed:
- !type:SpawnPrototype
prototype: CableApcStack1
amount: 5
steps:
- tool: Cutting
doAfter: 2.5
- node: electronics
edges:
- to: airlock
conditions:
- !type:EntityAnchored {}
steps:
- tool: Screwing
doAfter: 2.5
- node: electronics
edges:
- to: airlock
conditions:
- !type:EntityAnchored {}
steps:
- tool: Screwing
doAfter: 2.5
- to: glassElectronics
conditions:
- !type:EntityAnchored {}
steps:
- material: ReinforcedGlass
amount: 1
doAfter: 2
- node: airlock
entity: Airlock
edges:
- to: wired #TODO DOOR ELECTRONICS. If door electronics ever govern access permissions, this step should probably be further down? It makes it too easy to swap permissions around. See also windoor.
conditions:
- !type:EntityAnchored {}
- !type:DoorWelded {}
- !type:AirlockBolted
value: false
- !type:WirePanel {}
completed:
- !type:EmptyAllContainers {}
steps:
- tool: Prying
doAfter: 5
- node: airlock
entity: Airlock
edges:
- to: wired #TODO DOOR ELECTRONICS. If door electronics ever govern access permissions, this step should probably be further down? It makes it too easy to swap permissions around. See also windoor.
conditions:
- !type:EntityAnchored {}
- !type:DoorWelded {}
- !type:AirlockBolted
value: false
- !type:WirePanel {}
completed:
- !type:EmptyAllContainers {}
steps:
- tool: Prying
doAfter: 5
- node: glassElectronics
entity: AirlockAssembly
edges:
- to: glassAirlock
conditions:
- !type:EntityAnchored {}
steps:
- material: ReinforcedGlass
amount: 1
doAfter: 2
- tool: Screwing
doAfter: 2.5
- to: wired
conditions:
- !type:EntityAnchored {}
completed:
- !type:EmptyAllContainers {}
steps:
- tool: Prying
doAfter: 5
- node: glassAirlock
entity: AirlockGlass
edges:
- to: glassElectronics
conditions:
- !type:EntityAnchored {}
- !type:DoorWelded {}
- !type:AirlockBolted
value: false
- !type:WirePanel {}
completed:
- !type:SpawnPrototype
prototype: SheetRGlass1
amount: 1
steps:
- tool: Prying
doAfter: 2