Adds Directional Switches (#19175)
* Adds directional switches * Revert unintended line deletion * Consistent recipes --------- Co-authored-by: Jeff <velcroboy333@hotmail.com>
This commit is contained in:
@@ -175,3 +175,47 @@
|
||||
- Left
|
||||
- Right
|
||||
- Middle
|
||||
|
||||
#directional
|
||||
|
||||
- type: entity
|
||||
id: SignalSwitchDirectional
|
||||
name: signal switch
|
||||
suffix: directional
|
||||
parent: SignalSwitch
|
||||
components:
|
||||
- type: WallMount
|
||||
arc: 180
|
||||
- type: Sprite
|
||||
offset: 0,-0.25
|
||||
- type: Construction
|
||||
graph: SignalSwitchDirectionalGraph
|
||||
node: SignalSwitchDirectionalNode
|
||||
|
||||
- type: entity
|
||||
id: SignalButtonDirectional
|
||||
name: signal button
|
||||
suffix: directional
|
||||
parent: SignalButton
|
||||
components:
|
||||
- type: WallMount
|
||||
arc: 180
|
||||
- type: Sprite
|
||||
offset: 0,-0.25
|
||||
- type: Construction
|
||||
graph: SignalButtonDirectionalGraph
|
||||
node: SignalButtonDirectionalNode
|
||||
|
||||
- type: entity
|
||||
id: ApcNetSwitchDirectional
|
||||
name: apc net switch
|
||||
suffix: directional
|
||||
parent: ApcNetSwitch
|
||||
components:
|
||||
- type: WallMount
|
||||
arc: 180
|
||||
- type: Sprite
|
||||
offset: 0,-0.25
|
||||
- type: Construction
|
||||
graph: LightSwitchDirectionalGraph
|
||||
node: LightSwitchDirectionalNode
|
||||
|
||||
@@ -8,6 +8,9 @@
|
||||
- !type:SpawnPrototype
|
||||
prototype: SheetSteel1
|
||||
amount: 2
|
||||
- !type:SpawnPrototype
|
||||
prototype: CableApcStack1
|
||||
amount: 1
|
||||
- !type:DeleteEntity {}
|
||||
edges:
|
||||
- to: LeverNode
|
||||
@@ -17,6 +20,8 @@
|
||||
- material: Steel
|
||||
amount: 2
|
||||
doAfter: 1
|
||||
- material: Cable
|
||||
amount: 1
|
||||
- node: LeverNode
|
||||
entity: TwoWayLever
|
||||
edges:
|
||||
@@ -37,6 +42,8 @@
|
||||
- material: Steel
|
||||
amount: 1
|
||||
doAfter: 2.0
|
||||
- material: Cable
|
||||
amount: 1
|
||||
- node: LightSwitchNode
|
||||
entity: ApcNetSwitch
|
||||
edges:
|
||||
@@ -48,6 +55,9 @@
|
||||
- !type:SpawnPrototype
|
||||
prototype: SheetSteel1
|
||||
amount: 1
|
||||
- !type:SpawnPrototype
|
||||
prototype: CableApcStack1
|
||||
amount: 1
|
||||
- !type:DeleteEntity {}
|
||||
|
||||
- type: constructionGraph
|
||||
@@ -61,6 +71,8 @@
|
||||
- material: Steel
|
||||
amount: 1
|
||||
doAfter: 2.0
|
||||
- material: Cable
|
||||
amount: 1
|
||||
- node: SignalSwitchNode
|
||||
entity: SignalSwitch
|
||||
edges:
|
||||
@@ -72,8 +84,11 @@
|
||||
- !type:SpawnPrototype
|
||||
prototype: SheetSteel1
|
||||
amount: 1
|
||||
- !type:SpawnPrototype
|
||||
prototype: CableApcStack1
|
||||
amount: 1
|
||||
- !type:DeleteEntity {}
|
||||
|
||||
|
||||
- type: constructionGraph
|
||||
id: SignalButtonGraph
|
||||
start: start
|
||||
@@ -85,6 +100,8 @@
|
||||
- material: Steel
|
||||
amount: 1
|
||||
doAfter: 2.0
|
||||
- material: Cable
|
||||
amount: 1
|
||||
- node: SignalButtonNode
|
||||
entity: SignalButton
|
||||
edges:
|
||||
@@ -96,4 +113,94 @@
|
||||
- !type:SpawnPrototype
|
||||
prototype: SheetSteel1
|
||||
amount: 1
|
||||
- !type:DeleteEntity {}
|
||||
- !type:SpawnPrototype
|
||||
prototype: CableApcStack1
|
||||
amount: 1
|
||||
- !type:DeleteEntity {}
|
||||
|
||||
- type: constructionGraph
|
||||
id: LightSwitchDirectionalGraph
|
||||
start: start
|
||||
graph:
|
||||
- node: start
|
||||
edges:
|
||||
- to: LightSwitchDirectionalNode
|
||||
steps:
|
||||
- material: Steel
|
||||
amount: 1
|
||||
doAfter: 2.0
|
||||
- material: Cable
|
||||
amount: 1
|
||||
- node: LightSwitchDirectionalNode
|
||||
entity: ApcNetSwitchDirectional
|
||||
edges:
|
||||
- to: start
|
||||
steps:
|
||||
- tool: Screwing
|
||||
doAfter: 2.0
|
||||
completed:
|
||||
- !type:SpawnPrototype
|
||||
prototype: SheetSteel1
|
||||
amount: 1
|
||||
- !type:SpawnPrototype
|
||||
prototype: CableApcStack1
|
||||
amount: 1
|
||||
- !type:DeleteEntity {}
|
||||
|
||||
- type: constructionGraph
|
||||
id: SignalSwitchDirectionalGraph
|
||||
start: start
|
||||
graph:
|
||||
- node: start
|
||||
edges:
|
||||
- to: SignalSwitchDirectionalNode
|
||||
steps:
|
||||
- material: Steel
|
||||
amount: 1
|
||||
doAfter: 2.0
|
||||
- material: Cable
|
||||
amount: 1
|
||||
- node: SignalSwitchDirectionalNode
|
||||
entity: SignalSwitchDirectional
|
||||
edges:
|
||||
- to: start
|
||||
steps:
|
||||
- tool: Screwing
|
||||
doAfter: 2.0
|
||||
completed:
|
||||
- !type:SpawnPrototype
|
||||
prototype: SheetSteel1
|
||||
amount: 1
|
||||
- !type:SpawnPrototype
|
||||
prototype: CableApcStack1
|
||||
amount: 1
|
||||
- !type:DeleteEntity {}
|
||||
|
||||
- type: constructionGraph
|
||||
id: SignalButtonDirectionalGraph
|
||||
start: start
|
||||
graph:
|
||||
- node: start
|
||||
edges:
|
||||
- to: SignalButtonDirectionalNode
|
||||
steps:
|
||||
- material: Steel
|
||||
amount: 1
|
||||
doAfter: 2.0
|
||||
- material: Cable
|
||||
amount: 1
|
||||
- node: SignalButtonDirectionalNode
|
||||
entity: SignalButtonDirectional
|
||||
edges:
|
||||
- to: start
|
||||
steps:
|
||||
- tool: Screwing
|
||||
doAfter: 2.0
|
||||
completed:
|
||||
- !type:SpawnPrototype
|
||||
prototype: SheetSteel1
|
||||
amount: 1
|
||||
- !type:SpawnPrototype
|
||||
prototype: CableApcStack1
|
||||
amount: 1
|
||||
- !type:DeleteEntity {}
|
||||
|
||||
@@ -96,3 +96,57 @@
|
||||
canBuildInImpassable: true
|
||||
conditions:
|
||||
- !type:WallmountCondition
|
||||
|
||||
- type: construction
|
||||
name: directional light switch
|
||||
id: LightSwitchDirectionalRecipe
|
||||
graph: LightSwitchDirectionalGraph
|
||||
startNode: start
|
||||
targetNode: LightSwitchDirectionalNode
|
||||
category: construction-category-machines
|
||||
description: A switch for toggling lights that are connected to the same apc.
|
||||
icon:
|
||||
sprite: Structures/Wallmounts/switch.rsi
|
||||
state: on
|
||||
objectType: Structure
|
||||
placementMode: SnapgridCenter
|
||||
canRotate: true
|
||||
canBuildInImpassable: true
|
||||
conditions:
|
||||
- !type:WallmountCondition
|
||||
|
||||
- type: construction
|
||||
name: directional signal switch
|
||||
id: SignalSwitchDirectionalRecipe
|
||||
graph: SignalSwitchDirectionalGraph
|
||||
startNode: start
|
||||
targetNode: SignalSwitchDirectionalNode
|
||||
category: construction-category-machines
|
||||
description: It's a switch for toggling power to things.
|
||||
icon:
|
||||
sprite: Structures/Wallmounts/switch.rsi
|
||||
state: on
|
||||
objectType: Structure
|
||||
placementMode: SnapgridCenter
|
||||
canRotate: true
|
||||
canBuildInImpassable: true
|
||||
conditions:
|
||||
- !type:WallmountCondition
|
||||
|
||||
- type: construction
|
||||
name: directional signal button
|
||||
id: SignalButtonDirectionalRecipe
|
||||
graph: SignalButtonDirectionalGraph
|
||||
startNode: start
|
||||
targetNode: SignalButtonDirectionalNode
|
||||
category: construction-category-machines
|
||||
description: It's a button for activating something.
|
||||
icon:
|
||||
sprite: Structures/Wallmounts/switch.rsi
|
||||
state: on
|
||||
objectType: Structure
|
||||
placementMode: SnapgridCenter
|
||||
canRotate: true
|
||||
canBuildInImpassable: true
|
||||
conditions:
|
||||
- !type:WallmountCondition
|
||||
|
||||
Reference in New Issue
Block a user