Crafting for spike rack, signal switches and buttons. (#7420)
Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
This commit is contained in:
@@ -1,7 +1,11 @@
|
|||||||
- type: entity
|
- type: entity
|
||||||
id: SignalSwitch
|
id: SignalSwitch
|
||||||
name: "signal switch"
|
name: signal switch
|
||||||
description: "Its a switch for toggling power to things."
|
description: It's a switch for toggling power to things.
|
||||||
|
placement:
|
||||||
|
mode: SnapgridCenter
|
||||||
|
snap:
|
||||||
|
- Wallmount
|
||||||
components:
|
components:
|
||||||
- type: WallMount
|
- type: WallMount
|
||||||
arc: 360
|
arc: 360
|
||||||
@@ -15,15 +19,18 @@
|
|||||||
- type: UseDelay
|
- type: UseDelay
|
||||||
delay: 0.5 # prevent light-toggling auto-clickers.
|
delay: 0.5 # prevent light-toggling auto-clickers.
|
||||||
- type: Rotatable
|
- type: Rotatable
|
||||||
|
- type: Construction
|
||||||
|
graph: SignalSwitchGraph
|
||||||
|
node: SignalSwitchNode
|
||||||
|
|
||||||
|
- type: entity
|
||||||
|
id: SignalButton
|
||||||
|
name: signal button
|
||||||
|
description: It's a button for activating something.
|
||||||
placement:
|
placement:
|
||||||
mode: SnapgridCenter
|
mode: SnapgridCenter
|
||||||
snap:
|
snap:
|
||||||
- Wallmount
|
- Wallmount
|
||||||
|
|
||||||
- type: entity
|
|
||||||
id: SignalButton
|
|
||||||
name: "signal button"
|
|
||||||
description: "It's a button for activating something."
|
|
||||||
components:
|
components:
|
||||||
- type: WallMount
|
- type: WallMount
|
||||||
arc: 360
|
arc: 360
|
||||||
@@ -37,15 +44,18 @@
|
|||||||
- type: UseDelay
|
- type: UseDelay
|
||||||
delay: 0.5 # prevent light-toggling auto-clickers.
|
delay: 0.5 # prevent light-toggling auto-clickers.
|
||||||
- type: Rotatable
|
- type: Rotatable
|
||||||
placement:
|
- type: Construction
|
||||||
mode: SnapgridCenter
|
graph: SignalButtonGraph
|
||||||
snap:
|
node: SignalButtonNode
|
||||||
- Wallmount
|
|
||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
id: ApcNetSwitch
|
id: ApcNetSwitch
|
||||||
name: apc net switch
|
name: apc net switch
|
||||||
description: Its a switch for toggling lights that are connected to the same apc.
|
description: Its a switch for toggling lights that are connected to the same apc.
|
||||||
|
placement:
|
||||||
|
mode: SnapgridCenter
|
||||||
|
snap:
|
||||||
|
- Wallmount
|
||||||
components:
|
components:
|
||||||
- type: WallMount
|
- type: WallMount
|
||||||
arc: 360
|
arc: 360
|
||||||
@@ -58,19 +68,15 @@
|
|||||||
sprite: Structures/Wallmounts/switch.rsi
|
sprite: Structures/Wallmounts/switch.rsi
|
||||||
state: on
|
state: on
|
||||||
- type: Rotatable
|
- type: Rotatable
|
||||||
- type: Construction
|
|
||||||
graph: LightSwitch
|
|
||||||
node: lightSwitch
|
|
||||||
- type: ExtensionCableReceiver
|
- type: ExtensionCableReceiver
|
||||||
- type: DeviceNetwork
|
- type: DeviceNetwork
|
||||||
deviceNetId: Apc
|
deviceNetId: Apc
|
||||||
transmitFrequencyId: SmartLight # assuming people want to use it for light switches.
|
transmitFrequencyId: SmartLight # assuming people want to use it for light switches.
|
||||||
- type: ApcNetworkConnection
|
- type: ApcNetworkConnection
|
||||||
- type: ApcNetSwitch
|
- type: ApcNetSwitch
|
||||||
placement:
|
- type: Construction
|
||||||
mode: SnapgridCenter
|
graph: LightSwitchGraph
|
||||||
snap:
|
node: LightSwitchNode
|
||||||
- Wallmount
|
|
||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
id: TwoWayLever
|
id: TwoWayLever
|
||||||
@@ -94,9 +100,6 @@
|
|||||||
state_forward: switch-fwd
|
state_forward: switch-fwd
|
||||||
state_off: switch-off
|
state_off: switch-off
|
||||||
state_reversed: switch-rev
|
state_reversed: switch-rev
|
||||||
- type: Construction
|
|
||||||
graph: LeverGraph
|
|
||||||
node: lever
|
|
||||||
- type: Damageable
|
- type: Damageable
|
||||||
damageContainer: Inorganic
|
damageContainer: Inorganic
|
||||||
damageModifierSet: Metallic
|
damageModifierSet: Metallic
|
||||||
@@ -108,4 +111,6 @@
|
|||||||
behaviors:
|
behaviors:
|
||||||
- !type:DoActsBehavior
|
- !type:DoActsBehavior
|
||||||
acts: [ "Destruction" ]
|
acts: [ "Destruction" ]
|
||||||
|
- type: Construction
|
||||||
|
graph: LeverGraph
|
||||||
|
node: LeverNode
|
||||||
|
|||||||
@@ -42,3 +42,6 @@
|
|||||||
states:
|
states:
|
||||||
enum.KitchenSpikeStatus.Empty: spike
|
enum.KitchenSpikeStatus.Empty: spike
|
||||||
enum.KitchenSpikeStatus.Bloody: spikebloody
|
enum.KitchenSpikeStatus.Bloody: spikebloody
|
||||||
|
- type: Construction
|
||||||
|
graph: MeatSpike
|
||||||
|
node: MeatSpike
|
||||||
|
|||||||
@@ -0,0 +1,28 @@
|
|||||||
|
- type: constructionGraph
|
||||||
|
id: MeatSpike
|
||||||
|
start: start
|
||||||
|
graph:
|
||||||
|
- node: start
|
||||||
|
edges:
|
||||||
|
- to: MeatSpike
|
||||||
|
completed:
|
||||||
|
- !type:SnapToGrid
|
||||||
|
southRotation: true
|
||||||
|
steps:
|
||||||
|
- material: Steel
|
||||||
|
amount: 15
|
||||||
|
doAfter: 10
|
||||||
|
- node: MeatSpike
|
||||||
|
entity: KitchenSpike
|
||||||
|
edges:
|
||||||
|
- to: start
|
||||||
|
completed:
|
||||||
|
- !type:SpawnPrototype
|
||||||
|
prototype: SheetSteel1
|
||||||
|
amount: 15
|
||||||
|
conditions:
|
||||||
|
- !type:EntityAnchored
|
||||||
|
anchored: false
|
||||||
|
steps:
|
||||||
|
- tool: Welding
|
||||||
|
doAfter: 10
|
||||||
@@ -0,0 +1,99 @@
|
|||||||
|
# Levers
|
||||||
|
- type: constructionGraph
|
||||||
|
id: LeverGraph
|
||||||
|
start: start
|
||||||
|
graph:
|
||||||
|
- node: start
|
||||||
|
actions:
|
||||||
|
- !type:SpawnPrototype
|
||||||
|
prototype: SheetSteel1
|
||||||
|
amount: 2
|
||||||
|
- !type:DeleteEntity {}
|
||||||
|
edges:
|
||||||
|
- to: LeverNode
|
||||||
|
completed:
|
||||||
|
- !type:SnapToGrid {}
|
||||||
|
steps:
|
||||||
|
- material: Steel
|
||||||
|
amount: 2
|
||||||
|
doAfter: 1
|
||||||
|
- node: LeverNode
|
||||||
|
entity: TwoWayLever
|
||||||
|
edges:
|
||||||
|
- to: start
|
||||||
|
steps:
|
||||||
|
- tool: Anchoring
|
||||||
|
doAfter: 1
|
||||||
|
|
||||||
|
# Switches
|
||||||
|
- type: constructionGraph
|
||||||
|
id: LightSwitchGraph
|
||||||
|
start: start
|
||||||
|
graph:
|
||||||
|
- node: start
|
||||||
|
edges:
|
||||||
|
- to: LightSwitchNode
|
||||||
|
steps:
|
||||||
|
- material: Steel
|
||||||
|
amount: 1
|
||||||
|
doAfter: 2.0
|
||||||
|
- node: LightSwitchNode
|
||||||
|
entity: ApcNetSwitch
|
||||||
|
edges:
|
||||||
|
- to: start
|
||||||
|
steps:
|
||||||
|
- tool: Screwing
|
||||||
|
doAfter: 2.0
|
||||||
|
completed:
|
||||||
|
- !type:SpawnPrototype
|
||||||
|
prototype: SheetSteel1
|
||||||
|
amount: 1
|
||||||
|
- !type:DeleteEntity {}
|
||||||
|
|
||||||
|
- type: constructionGraph
|
||||||
|
id: SignalSwitchGraph
|
||||||
|
start: start
|
||||||
|
graph:
|
||||||
|
- node: start
|
||||||
|
edges:
|
||||||
|
- to: SignalSwitchNode
|
||||||
|
steps:
|
||||||
|
- material: Steel
|
||||||
|
amount: 1
|
||||||
|
doAfter: 2.0
|
||||||
|
- node: SignalSwitchNode
|
||||||
|
entity: SignalSwitch
|
||||||
|
edges:
|
||||||
|
- to: start
|
||||||
|
steps:
|
||||||
|
- tool: Screwing
|
||||||
|
doAfter: 2.0
|
||||||
|
completed:
|
||||||
|
- !type:SpawnPrototype
|
||||||
|
prototype: SheetSteel1
|
||||||
|
amount: 1
|
||||||
|
- !type:DeleteEntity {}
|
||||||
|
|
||||||
|
- type: constructionGraph
|
||||||
|
id: SignalButtonGraph
|
||||||
|
start: start
|
||||||
|
graph:
|
||||||
|
- node: start
|
||||||
|
edges:
|
||||||
|
- to: SignalButtonNode
|
||||||
|
steps:
|
||||||
|
- material: Steel
|
||||||
|
amount: 1
|
||||||
|
doAfter: 2.0
|
||||||
|
- node: SignalButtonNode
|
||||||
|
entity: SignalButton
|
||||||
|
edges:
|
||||||
|
- to: start
|
||||||
|
steps:
|
||||||
|
- tool: Screwing
|
||||||
|
doAfter: 2.0
|
||||||
|
completed:
|
||||||
|
- !type:SpawnPrototype
|
||||||
|
prototype: SheetSteel1
|
||||||
|
amount: 1
|
||||||
|
- !type:DeleteEntity {}
|
||||||
@@ -29,29 +29,3 @@
|
|||||||
steps:
|
steps:
|
||||||
- tool: Prying
|
- tool: Prying
|
||||||
doAfter: 3
|
doAfter: 3
|
||||||
|
|
||||||
- type: constructionGraph
|
|
||||||
id: LeverGraph
|
|
||||||
start: start
|
|
||||||
graph:
|
|
||||||
- node: start
|
|
||||||
actions:
|
|
||||||
- !type:SpawnPrototype
|
|
||||||
prototype: SheetSteel1
|
|
||||||
amount: 2
|
|
||||||
- !type:DeleteEntity {}
|
|
||||||
edges:
|
|
||||||
- to: lever
|
|
||||||
completed:
|
|
||||||
- !type:SnapToGrid {}
|
|
||||||
steps:
|
|
||||||
- material: Steel
|
|
||||||
amount: 2
|
|
||||||
doAfter: 1
|
|
||||||
- node: lever
|
|
||||||
entity: TwoWayLever
|
|
||||||
edges:
|
|
||||||
- to: start
|
|
||||||
steps:
|
|
||||||
- tool: Anchoring
|
|
||||||
doAfter: 1
|
|
||||||
|
|||||||
@@ -64,28 +64,3 @@
|
|||||||
prototype: SheetSteel1
|
prototype: SheetSteel1
|
||||||
amount: 5
|
amount: 5
|
||||||
- !type:DeleteEntity {}
|
- !type:DeleteEntity {}
|
||||||
|
|
||||||
|
|
||||||
- type: constructionGraph
|
|
||||||
id: LightSwitch
|
|
||||||
start: start
|
|
||||||
graph:
|
|
||||||
- node: start
|
|
||||||
edges:
|
|
||||||
- to: lightSwitch
|
|
||||||
steps:
|
|
||||||
- material: Steel
|
|
||||||
amount: 1
|
|
||||||
doAfter: 2.0
|
|
||||||
- node: lightSwitch
|
|
||||||
entity: ApcNetSwitch
|
|
||||||
edges:
|
|
||||||
- to: start
|
|
||||||
steps:
|
|
||||||
- tool: Screwing
|
|
||||||
doAfter: 2.0
|
|
||||||
completed:
|
|
||||||
- !type:SpawnPrototype
|
|
||||||
prototype: SheetSteel1
|
|
||||||
amount: 1
|
|
||||||
- !type:DeleteEntity {}
|
|
||||||
|
|||||||
@@ -359,3 +359,20 @@
|
|||||||
canBuildInImpassable: false
|
canBuildInImpassable: false
|
||||||
conditions:
|
conditions:
|
||||||
- !type:TileNotBlocked
|
- !type:TileNotBlocked
|
||||||
|
|
||||||
|
- type: construction
|
||||||
|
id: MeatSpike
|
||||||
|
name: meat spike
|
||||||
|
description: A spike found in kitchens butchering animals.
|
||||||
|
graph: MeatSpike
|
||||||
|
startNode: start
|
||||||
|
targetNode: MeatSpike
|
||||||
|
category: Furniture
|
||||||
|
icon:
|
||||||
|
sprite: Structures/meat_spike.rsi
|
||||||
|
state: spike
|
||||||
|
objectType: Structure
|
||||||
|
placementMode: SnapgridCenter
|
||||||
|
canBuildInImpassable: false
|
||||||
|
conditions:
|
||||||
|
- !type:TileNotBlocked
|
||||||
|
|||||||
@@ -23,3 +23,74 @@
|
|||||||
icon:
|
icon:
|
||||||
sprite: Structures/Machines/parts.rsi
|
sprite: Structures/Machines/parts.rsi
|
||||||
state: "box_0"
|
state: "box_0"
|
||||||
|
|
||||||
|
# Switching
|
||||||
|
- type: construction
|
||||||
|
name: two-way lever
|
||||||
|
id: TwoWayLeverRecipe
|
||||||
|
graph: LeverGraph
|
||||||
|
startNode: start
|
||||||
|
targetNode: LeverNode
|
||||||
|
category: Machines
|
||||||
|
description: A lever to control machines. It has 3 modes.
|
||||||
|
objectType: Structure
|
||||||
|
canBuildInImpassable: false
|
||||||
|
icon:
|
||||||
|
sprite: Structures/conveyor.rsi
|
||||||
|
state: switch-off
|
||||||
|
conditions:
|
||||||
|
- !type:TileNotBlocked
|
||||||
|
|
||||||
|
- type: construction
|
||||||
|
name: light switch
|
||||||
|
id: LightSwitchRecipe
|
||||||
|
graph: LightSwitchGraph
|
||||||
|
startNode: start
|
||||||
|
targetNode: LightSwitchNode
|
||||||
|
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: signal switch
|
||||||
|
id: SignalSwitchRecipe
|
||||||
|
graph: SignalSwitchGraph
|
||||||
|
startNode: start
|
||||||
|
targetNode: SignalSwitchNode
|
||||||
|
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: signal button
|
||||||
|
id: SignalButtonRecipe
|
||||||
|
graph: SignalButtonGraph
|
||||||
|
startNode: start
|
||||||
|
targetNode: SignalButtonNode
|
||||||
|
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
|
||||||
@@ -469,25 +469,6 @@
|
|||||||
conditions:
|
conditions:
|
||||||
- !type:TileNotBlocked
|
- !type:TileNotBlocked
|
||||||
|
|
||||||
- type: construction
|
|
||||||
name: light switch
|
|
||||||
id: LightSwitchRecipe
|
|
||||||
graph: LightSwitch
|
|
||||||
startNode: start
|
|
||||||
targetNode: lightSwitch
|
|
||||||
category: Structures
|
|
||||||
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
|
|
||||||
|
|
||||||
|
|
||||||
#conveyor
|
#conveyor
|
||||||
- type: construction
|
- type: construction
|
||||||
name: conveyor belt
|
name: conveyor belt
|
||||||
@@ -506,22 +487,6 @@
|
|||||||
conditions:
|
conditions:
|
||||||
- !type:TileNotBlocked
|
- !type:TileNotBlocked
|
||||||
|
|
||||||
- type: construction
|
|
||||||
name: two-way lever
|
|
||||||
id: TwoWayLever
|
|
||||||
graph: LeverGraph
|
|
||||||
startNode: start
|
|
||||||
targetNode: lever
|
|
||||||
category: Structures
|
|
||||||
description: A lever to control machines. It has 3 modes.
|
|
||||||
objectType: Structure
|
|
||||||
canBuildInImpassable: false
|
|
||||||
icon:
|
|
||||||
sprite: Structures/conveyor.rsi
|
|
||||||
state: switch-off
|
|
||||||
conditions:
|
|
||||||
- !type:TileNotBlocked
|
|
||||||
|
|
||||||
- type: construction
|
- type: construction
|
||||||
name: metal door
|
name: metal door
|
||||||
id: MetalDoor
|
id: MetalDoor
|
||||||
|
|||||||
Reference in New Issue
Block a user