From 09e7de7f9c37679e4631d5f64fb5ce938f018cd9 Mon Sep 17 00:00:00 2001 From: Peptide90 <78795277+Peptide90@users.noreply.github.com> Date: Thu, 10 Feb 2022 01:58:24 +0000 Subject: [PATCH] Construction graph for Pilot Seat chair (#6595) --- .../Entities/Structures/Furniture/chairs.yml | 30 ++++++++++--------- .../Construction/Graphs/furniture/seats.yml | 17 +++++++++++ .../Recipes/Construction/furniture.yml | 17 +++++++++++ 3 files changed, 50 insertions(+), 14 deletions(-) diff --git a/Resources/Prototypes/Entities/Structures/Furniture/chairs.yml b/Resources/Prototypes/Entities/Structures/Furniture/chairs.yml index 3b3c63beb6..d35011825d 100644 --- a/Resources/Prototypes/Entities/Structures/Furniture/chairs.yml +++ b/Resources/Prototypes/Entities/Structures/Furniture/chairs.yml @@ -125,6 +125,22 @@ graph: Seat node: chairComfy +- type: entity + name: pilot seat + id: ChairPilotSeat + parent: SeatBase + description: The pilot seat of a prestigious ship. + components: + - type: Transform + anchored: true + - type: Anchorable + - type: Rotatable + - type: Sprite + state: shuttle + - type: Construction + graph: Seat + node: chairPilotSeat + - type: entity name: wooden chair id: ChairWood @@ -158,20 +174,6 @@ tags: - Wooden -- type: entity - name: pilot seat - id: ChairPilotSeat - parent: SeatBase - description: The pilot seat of a prestigious ship. - components: - - type: Transform - anchored: true - - type: Anchorable - - type: Rotatable - - type: Sprite - state: shuttle - netsync: false - - type: entity name: ritual chair id: ChairRitual diff --git a/Resources/Prototypes/Recipes/Construction/Graphs/furniture/seats.yml b/Resources/Prototypes/Recipes/Construction/Graphs/furniture/seats.yml index 331b9e336e..9a1fc9c71a 100644 --- a/Resources/Prototypes/Recipes/Construction/Graphs/furniture/seats.yml +++ b/Resources/Prototypes/Recipes/Construction/Graphs/furniture/seats.yml @@ -36,6 +36,11 @@ - material: Steel amount: 5 doAfter: 1 + - to: chairPilotSeat + steps: + - material: Steel + amount: 5 + doAfter: 1 - to: chairWood steps: - material: WoodPlank @@ -110,6 +115,18 @@ steps: - tool: Screwing doAfter: 1 + + - node: chairPilotSeat + entity: ChairPilotSeat + edges: + - to: start + completed: + - !type:SpawnPrototype + prototype: SheetSteel1 + amount: 5 + steps: + - tool: Screwing + doAfter: 2 - node: chairWood entity: ChairWood diff --git a/Resources/Prototypes/Recipes/Construction/furniture.yml b/Resources/Prototypes/Recipes/Construction/furniture.yml index 3e1ea9cc63..f9fd51ce4e 100644 --- a/Resources/Prototypes/Recipes/Construction/furniture.yml +++ b/Resources/Prototypes/Recipes/Construction/furniture.yml @@ -100,6 +100,23 @@ canBuildInImpassable: false conditions: - !type:TileNotBlocked + +- type: construction + name: pilots chair + id: chairPilotSeat + graph: Seat + startNode: start + targetNode: chairPilotSeat + category: Furniture + description: Fit for a captain. + icon: + sprite: Structures/Furniture/chairs.rsi + state: shuttle + objectType: Structure + placementMode: SnapgridCenter + canBuildInImpassable: false + conditions: + - !type:TileNotBlocked - type: construction name: wooden chair