Implement cable terminal construction graph (#4960)
Co-authored-by: Julian Giebel <j.giebel@netrocks.info>
This commit is contained in:
@@ -32,6 +32,9 @@
|
|||||||
- !type:DoActsBehavior
|
- !type:DoActsBehavior
|
||||||
acts: ["Destruction"]
|
acts: ["Destruction"]
|
||||||
- type: SubFloorHide
|
- type: SubFloorHide
|
||||||
|
- type: Construction
|
||||||
|
graph: cable_terminal
|
||||||
|
node: cable_terminal
|
||||||
- type: NodeContainer
|
- type: NodeContainer
|
||||||
nodes:
|
nodes:
|
||||||
# Just define nodes for both MV and HV. One will end up unused in 99% of cases
|
# Just define nodes for both MV and HV. One will end up unused in 99% of cases
|
||||||
|
|||||||
@@ -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
|
||||||
@@ -12,7 +12,7 @@
|
|||||||
objectType: Structure
|
objectType: Structure
|
||||||
placementMode: AlignWallProper
|
placementMode: AlignWallProper
|
||||||
canBuildInImpassable: true
|
canBuildInImpassable: true
|
||||||
|
|
||||||
- type: construction
|
- type: construction
|
||||||
name: Solar Assembly
|
name: Solar Assembly
|
||||||
id: SolarPanel
|
id: SolarPanel
|
||||||
@@ -28,4 +28,19 @@
|
|||||||
placementMode: SnapgridCenter
|
placementMode: SnapgridCenter
|
||||||
canBuildInImpassable: false
|
canBuildInImpassable: false
|
||||||
conditions:
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user