Prevents a bunch of constructions from being built inside impassables
Fixes #2747
This commit is contained in:
@@ -0,0 +1,57 @@
|
||||
- type: constructionGraph
|
||||
id: ConveyorGraph
|
||||
start: start
|
||||
graph:
|
||||
- node: start
|
||||
edges:
|
||||
- to: entity
|
||||
steps:
|
||||
- component: ConveyorAssembly
|
||||
icon:
|
||||
sprite: Constructible/Power/conveyor.rsi
|
||||
state: conveyor_loose
|
||||
name: conveyor belt assembly
|
||||
doAfter: 2
|
||||
- node: item
|
||||
entity: ConveyorBeltAssembly
|
||||
actions:
|
||||
- !type:SetAnchor
|
||||
value: false
|
||||
- node: entity
|
||||
entity: ConveyorBelt
|
||||
actions:
|
||||
- !type:SetAnchor
|
||||
value: true
|
||||
- !type:SnapToGrid
|
||||
offset: Center
|
||||
edges:
|
||||
- to: item
|
||||
steps:
|
||||
- tool: Prying
|
||||
doAfter: 3
|
||||
|
||||
- type: constructionGraph
|
||||
id: leverGraph
|
||||
start: start
|
||||
graph:
|
||||
- node: start
|
||||
actions:
|
||||
- !type:SpawnPrototype
|
||||
prototype: SteelSheet1
|
||||
amount: 2
|
||||
- !type:DeleteEntity {}
|
||||
edges:
|
||||
- to: lever
|
||||
completed:
|
||||
- !type:SnapToGrid {}
|
||||
steps:
|
||||
- material: Metal
|
||||
amount: 2
|
||||
doAfter: 1
|
||||
- node: lever
|
||||
entity: TwoWayLever
|
||||
edges:
|
||||
- to: start
|
||||
steps:
|
||||
- tool: Anchoring
|
||||
doAfter: 1
|
||||
28
Resources/Prototypes/Recipes/Construction/conveyor.yml
Normal file
28
Resources/Prototypes/Recipes/Construction/conveyor.yml
Normal file
@@ -0,0 +1,28 @@
|
||||
- type: construction
|
||||
name: conveyor belt
|
||||
id: conveyorbelt
|
||||
graph: ConveyorGraph
|
||||
startNode: start
|
||||
targetNode: entity
|
||||
category: Structures
|
||||
description: A conveyor belt, commonly used to transport large numbers of items elsewhere quite quickly.
|
||||
objectType: Structure
|
||||
placementMode: SnapgridCenter
|
||||
canBuildInImpassable: false
|
||||
icon:
|
||||
sprite: Constructible/Power/conveyor.rsi
|
||||
state: conveyor_stopped_cw
|
||||
|
||||
- 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: Constructible/Power/conveyor.rsi
|
||||
state: switch-off
|
||||
@@ -12,6 +12,7 @@
|
||||
objectType: Structure
|
||||
placementMode: SnapgridCenter
|
||||
canRotate: false
|
||||
canBuildInImpassable: false
|
||||
|
||||
- type: construction
|
||||
name: wall
|
||||
@@ -27,6 +28,7 @@
|
||||
objectType: Structure
|
||||
placementMode: SnapgridCenter
|
||||
canRotate: false
|
||||
canBuildInImpassable: false
|
||||
|
||||
- type: construction
|
||||
name: reinforced wall
|
||||
@@ -42,6 +44,7 @@
|
||||
objectType: Structure
|
||||
placementMode: SnapgridCenter
|
||||
canRotate: false
|
||||
canBuildInImpassable: false
|
||||
|
||||
- type: construction
|
||||
name: low wall
|
||||
@@ -70,6 +73,7 @@
|
||||
description: Clear. Must be built on top of a low wall.
|
||||
conditions:
|
||||
- !type:LowWallInTile {}
|
||||
- !type:NoWindowsInTile {}
|
||||
icon:
|
||||
sprite: Constructible/Structures/Windows/window.rsi
|
||||
state: full
|
||||
@@ -87,6 +91,7 @@
|
||||
description: Clear but tough. Must be built on top of a low wall.
|
||||
conditions:
|
||||
- !type:LowWallInTile {}
|
||||
- !type:NoWindowsInTile {}
|
||||
icon:
|
||||
sprite: Constructible/Structures/Windows/reinforced_window.rsi
|
||||
state: full
|
||||
@@ -104,6 +109,7 @@
|
||||
description: Clear and even tougher, with an orange tint. Must be built on top of a low wall.
|
||||
conditions:
|
||||
- !type:LowWallInTile {}
|
||||
- !type:NoWindowsInTile {}
|
||||
icon:
|
||||
sprite: Constructible/Structures/Windows/phoron_window.rsi
|
||||
state: full
|
||||
@@ -124,6 +130,7 @@
|
||||
state: closed
|
||||
objectType: Structure
|
||||
placementMode: SnapgridCenter
|
||||
canBuildInImpassable: false
|
||||
|
||||
- type: construction
|
||||
name: Table Frame
|
||||
@@ -138,6 +145,7 @@
|
||||
state: full
|
||||
objectType: Structure
|
||||
placementMode: SnapgridCenter
|
||||
canBuildInImpassable: false
|
||||
|
||||
- type: construction
|
||||
name: Poker Table
|
||||
@@ -152,6 +160,7 @@
|
||||
state: full
|
||||
objectType: Structure
|
||||
placementMode: SnapgridCenter
|
||||
canBuildInImpassable: false
|
||||
|
||||
- type: construction
|
||||
name: Catwalk
|
||||
@@ -172,6 +181,7 @@
|
||||
state: catwalk_preview
|
||||
objectType: Structure
|
||||
placementMode: SnapgridCenter
|
||||
canBuildInImpassable: false
|
||||
|
||||
- type: construction
|
||||
name: APC
|
||||
@@ -186,3 +196,4 @@
|
||||
state: apc0
|
||||
objectType: Structure
|
||||
placementMode: AlignWallProper
|
||||
canBuildInImpassable: true
|
||||
|
||||
Reference in New Issue
Block a user