Prevents a bunch of constructions from being built inside impassables

Fixes #2747
This commit is contained in:
Vera Aguilera Puerto
2020-12-16 14:31:07 +01:00
parent 91f2f4f599
commit 09ab14a3e6
4 changed files with 13 additions and 0 deletions

View File

@@ -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

View 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

View File

@@ -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