Implement cable terminal construction graph (#4960)

Co-authored-by: Julian Giebel <j.giebel@netrocks.info>
This commit is contained in:
Julian Giebel
2021-10-20 22:25:02 +02:00
committed by GitHub
parent 67a755ebaa
commit 4897a47ca9
3 changed files with 44 additions and 2 deletions

View File

@@ -0,0 +1,24 @@
- type: constructionGraph
id: cable_terminal
start: start
graph:
- node: start
edges:
- to: cable_terminal
steps:
- material: Cable
amount: 10
doAfter: 2
- node: cable_terminal
entity: CableTerminal
edges:
- to: start
completed:
- !type:SpawnPrototype
prototype: CableApcStack1
amount: 10
- !type:DeleteEntity
steps:
- tool: Cutting
doAfter: 3

View File

@@ -12,7 +12,7 @@
objectType: Structure
placementMode: AlignWallProper
canBuildInImpassable: true
- type: construction
name: Solar Assembly
id: SolarPanel
@@ -28,4 +28,19 @@
placementMode: SnapgridCenter
canBuildInImpassable: false
conditions:
- !type:TileNotBlocked {}
- !type:TileNotBlocked {}
- type: construction
name: Cable Terminal
id: cableTerminal
graph: cable_terminal
startNode: start
targetNode: cable_terminal
category: Utility
description: "Input of devices such as the SMES. The red cables needs to face the device."
icon:
sprite: Structures/Power/cable_terminal.rsi
state: term
objectType: Structure
placementMode: SnapgridCenter
canBuildInImpassable: false