Add seat construction (#3653)
This commit is contained in:
@@ -53,6 +53,9 @@
|
|||||||
- Impassable
|
- Impassable
|
||||||
- VaultImpassable
|
- VaultImpassable
|
||||||
- SmallImpassable
|
- SmallImpassable
|
||||||
|
- type: Construction
|
||||||
|
graph: seat
|
||||||
|
node: chair
|
||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
name: stool
|
name: stool
|
||||||
@@ -72,6 +75,9 @@
|
|||||||
- Impassable
|
- Impassable
|
||||||
- VaultImpassable
|
- VaultImpassable
|
||||||
- SmallImpassable
|
- SmallImpassable
|
||||||
|
- type: Construction
|
||||||
|
graph: seat
|
||||||
|
node: stool
|
||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
name: bar stool
|
name: bar stool
|
||||||
@@ -90,6 +96,9 @@
|
|||||||
- Impassable
|
- Impassable
|
||||||
- VaultImpassable
|
- VaultImpassable
|
||||||
- SmallImpassable
|
- SmallImpassable
|
||||||
|
- type: Construction
|
||||||
|
graph: seat
|
||||||
|
node: stoolBar
|
||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
name: white office chair
|
name: white office chair
|
||||||
@@ -109,6 +118,9 @@
|
|||||||
- Impassable
|
- Impassable
|
||||||
- VaultImpassable
|
- VaultImpassable
|
||||||
- SmallImpassable
|
- SmallImpassable
|
||||||
|
- type: Construction
|
||||||
|
graph: seat
|
||||||
|
node: chairOffice
|
||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
name: dark office chair
|
name: dark office chair
|
||||||
@@ -117,6 +129,9 @@
|
|||||||
components:
|
components:
|
||||||
- type: Sprite
|
- type: Sprite
|
||||||
state: officechair_dark
|
state: officechair_dark
|
||||||
|
- type: Construction
|
||||||
|
graph: seat
|
||||||
|
node: chairOfficeDark
|
||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
name: comfy chair
|
name: comfy chair
|
||||||
@@ -135,6 +150,9 @@
|
|||||||
- Impassable
|
- Impassable
|
||||||
- VaultImpassable
|
- VaultImpassable
|
||||||
- SmallImpassable
|
- SmallImpassable
|
||||||
|
- type: Construction
|
||||||
|
graph: seat
|
||||||
|
node: chairComfy
|
||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
name: wooden chair
|
name: wooden chair
|
||||||
@@ -153,3 +171,6 @@
|
|||||||
- Impassable
|
- Impassable
|
||||||
- VaultImpassable
|
- VaultImpassable
|
||||||
- SmallImpassable
|
- SmallImpassable
|
||||||
|
- type: Construction
|
||||||
|
graph: seat
|
||||||
|
node: chairWood
|
||||||
|
|||||||
124
Resources/Prototypes/Recipes/Construction/Graphs/seats.yml
Normal file
124
Resources/Prototypes/Recipes/Construction/Graphs/seats.yml
Normal file
@@ -0,0 +1,124 @@
|
|||||||
|
- type: constructionGraph
|
||||||
|
id: seat
|
||||||
|
start: start
|
||||||
|
graph:
|
||||||
|
- node: start
|
||||||
|
actions:
|
||||||
|
- !type:DeleteEntity {}
|
||||||
|
edges:
|
||||||
|
- to: chair
|
||||||
|
steps:
|
||||||
|
- material: Steel
|
||||||
|
amount: 1
|
||||||
|
doAfter: 1
|
||||||
|
- to: stool
|
||||||
|
steps:
|
||||||
|
- material: Steel
|
||||||
|
amount: 1
|
||||||
|
doAfter: 1
|
||||||
|
- to: stoolBar
|
||||||
|
steps:
|
||||||
|
- material: Steel
|
||||||
|
amount: 1
|
||||||
|
doAfter: 1
|
||||||
|
- to: chairOffice
|
||||||
|
steps:
|
||||||
|
- material: Steel
|
||||||
|
amount: 2
|
||||||
|
doAfter: 1
|
||||||
|
- to: chairOfficeDark
|
||||||
|
steps:
|
||||||
|
- material: Steel
|
||||||
|
amount: 2
|
||||||
|
doAfter: 1
|
||||||
|
- to: chairComfy
|
||||||
|
steps:
|
||||||
|
- material: Steel
|
||||||
|
amount: 5
|
||||||
|
doAfter: 1
|
||||||
|
- to: chairWood
|
||||||
|
steps:
|
||||||
|
- material: WoodPlank
|
||||||
|
amount: 3
|
||||||
|
doAfter: 1
|
||||||
|
|
||||||
|
- node: chair
|
||||||
|
entity: Chair
|
||||||
|
edges:
|
||||||
|
- to: start
|
||||||
|
completed:
|
||||||
|
- !type:SpawnPrototype
|
||||||
|
prototype: SheetSteel1
|
||||||
|
steps:
|
||||||
|
- tool: Screwing
|
||||||
|
doAfter: 1
|
||||||
|
|
||||||
|
- node: stool
|
||||||
|
entity: Stool
|
||||||
|
edges:
|
||||||
|
- to: start
|
||||||
|
completed:
|
||||||
|
- !type:SpawnPrototype
|
||||||
|
prototype: SheetSteel1
|
||||||
|
steps:
|
||||||
|
- tool: Screwing
|
||||||
|
doAfter: 1
|
||||||
|
|
||||||
|
- node: stoolBar
|
||||||
|
entity: StoolBar
|
||||||
|
edges:
|
||||||
|
- to: start
|
||||||
|
completed:
|
||||||
|
- !type:SpawnPrototype
|
||||||
|
prototype: SheetSteel1
|
||||||
|
steps:
|
||||||
|
- tool: Screwing
|
||||||
|
doAfter: 1
|
||||||
|
|
||||||
|
- node: chairOffice
|
||||||
|
entity: ChairOfficeLight
|
||||||
|
edges:
|
||||||
|
- to: start
|
||||||
|
completed:
|
||||||
|
- !type:SpawnPrototype
|
||||||
|
prototype: SheetSteel1
|
||||||
|
amount: 2
|
||||||
|
steps:
|
||||||
|
- tool: Screwing
|
||||||
|
doAfter: 1
|
||||||
|
|
||||||
|
- node: chairOfficeDark
|
||||||
|
entity: ChairOfficeDark
|
||||||
|
edges:
|
||||||
|
- to: start
|
||||||
|
completed:
|
||||||
|
- !type:SpawnPrototype
|
||||||
|
prototype: SheetSteel1
|
||||||
|
amount: 2
|
||||||
|
steps:
|
||||||
|
- tool: Screwing
|
||||||
|
doAfter: 1
|
||||||
|
|
||||||
|
- node: chairComfy
|
||||||
|
entity: ComfyChair
|
||||||
|
edges:
|
||||||
|
- to: start
|
||||||
|
completed:
|
||||||
|
- !type:SpawnPrototype
|
||||||
|
prototype: SheetSteel1
|
||||||
|
amount: 5
|
||||||
|
steps:
|
||||||
|
- tool: Screwing
|
||||||
|
doAfter: 1
|
||||||
|
|
||||||
|
- node: chairWood
|
||||||
|
entity: ChairWood
|
||||||
|
edges:
|
||||||
|
- to: start
|
||||||
|
completed:
|
||||||
|
- !type:SpawnPrototype
|
||||||
|
prototype: MaterialWoodPlank1
|
||||||
|
amount: 3
|
||||||
|
steps:
|
||||||
|
- tool: Screwing
|
||||||
|
doAfter: 1
|
||||||
118
Resources/Prototypes/Recipes/Construction/furniture.yml
Normal file
118
Resources/Prototypes/Recipes/Construction/furniture.yml
Normal file
@@ -0,0 +1,118 @@
|
|||||||
|
- type: construction
|
||||||
|
name: chair
|
||||||
|
id: Chair
|
||||||
|
graph: seat
|
||||||
|
startNode: start
|
||||||
|
targetNode: chair
|
||||||
|
category: Furniture
|
||||||
|
description: You sit in this. Either by will or force.
|
||||||
|
icon:
|
||||||
|
sprite: Constructible/Misc/furniture.rsi
|
||||||
|
state: chair
|
||||||
|
objectType: Structure
|
||||||
|
placementMode: SnapgridCenter
|
||||||
|
canBuildInImpassable: false
|
||||||
|
conditions:
|
||||||
|
- !type:TileNotBlocked {}
|
||||||
|
|
||||||
|
- type: construction
|
||||||
|
name: stool
|
||||||
|
id: Stool
|
||||||
|
graph: seat
|
||||||
|
startNode: start
|
||||||
|
targetNode: stool
|
||||||
|
category: Furniture
|
||||||
|
description: You sit in this. Either by will or force.
|
||||||
|
icon:
|
||||||
|
sprite: Constructible/Misc/furniture.rsi
|
||||||
|
state: stool_base
|
||||||
|
objectType: Structure
|
||||||
|
placementMode: SnapgridCenter
|
||||||
|
canBuildInImpassable: false
|
||||||
|
conditions:
|
||||||
|
- !type:TileNotBlocked {}
|
||||||
|
|
||||||
|
- type: construction
|
||||||
|
name: bar stool
|
||||||
|
id: StoolBar
|
||||||
|
graph: seat
|
||||||
|
startNode: start
|
||||||
|
targetNode: stoolBar
|
||||||
|
category: Furniture
|
||||||
|
description: You sit in this. Either by will or force.
|
||||||
|
icon:
|
||||||
|
sprite: Constructible/Misc/furniture.rsi
|
||||||
|
state: bar_stool
|
||||||
|
objectType: Structure
|
||||||
|
placementMode: SnapgridCenter
|
||||||
|
canBuildInImpassable: false
|
||||||
|
conditions:
|
||||||
|
- !type:TileNotBlocked {}
|
||||||
|
|
||||||
|
- type: construction
|
||||||
|
name: office chair
|
||||||
|
id: ChairOfficeLight
|
||||||
|
graph: seat
|
||||||
|
startNode: start
|
||||||
|
targetNode: chairOffice
|
||||||
|
category: Furniture
|
||||||
|
description: You sit in this. Either by will or force.
|
||||||
|
icon:
|
||||||
|
sprite: Constructible/Misc/furniture.rsi
|
||||||
|
state: officechair_white
|
||||||
|
objectType: Structure
|
||||||
|
placementMode: SnapgridCenter
|
||||||
|
canBuildInImpassable: false
|
||||||
|
conditions:
|
||||||
|
- !type:TileNotBlocked {}
|
||||||
|
|
||||||
|
- type: construction
|
||||||
|
name: dark office chair
|
||||||
|
id: ChairOfficeDark
|
||||||
|
graph: seat
|
||||||
|
startNode: start
|
||||||
|
targetNode: chairOfficeDark
|
||||||
|
category: Furniture
|
||||||
|
description: You sit in this. Either by will or force.
|
||||||
|
icon:
|
||||||
|
sprite: Constructible/Misc/furniture.rsi
|
||||||
|
state: officechair_dark
|
||||||
|
objectType: Structure
|
||||||
|
placementMode: SnapgridCenter
|
||||||
|
canBuildInImpassable: false
|
||||||
|
conditions:
|
||||||
|
- !type:TileNotBlocked {}
|
||||||
|
|
||||||
|
- type: construction
|
||||||
|
name: comfy chair
|
||||||
|
id: ChairComfy
|
||||||
|
graph: seat
|
||||||
|
startNode: start
|
||||||
|
targetNode: chairComfy
|
||||||
|
category: Furniture
|
||||||
|
description: It looks comfy.
|
||||||
|
icon:
|
||||||
|
sprite: Constructible/Misc/furniture.rsi
|
||||||
|
state: comfychair_preview
|
||||||
|
objectType: Structure
|
||||||
|
placementMode: SnapgridCenter
|
||||||
|
canBuildInImpassable: false
|
||||||
|
conditions:
|
||||||
|
- !type:TileNotBlocked {}
|
||||||
|
|
||||||
|
- type: construction
|
||||||
|
name: wooden chair
|
||||||
|
id: ChairWood
|
||||||
|
graph: seat
|
||||||
|
startNode: start
|
||||||
|
targetNode: chairWood
|
||||||
|
category: Furniture
|
||||||
|
description: You sit in this. Either by will or force.
|
||||||
|
icon:
|
||||||
|
sprite: Constructible/Misc/furniture.rsi
|
||||||
|
state: wooden_chair
|
||||||
|
objectType: Structure
|
||||||
|
placementMode: SnapgridCenter
|
||||||
|
canBuildInImpassable: false
|
||||||
|
conditions:
|
||||||
|
- !type:TileNotBlocked {}
|
||||||
Reference in New Issue
Block a user