diff --git a/Resources/Prototypes/_Nuclear14/Entities/Structures/Furniture/table.yml b/Resources/Prototypes/_Nuclear14/Entities/Structures/Furniture/table.yml index 675a04e9389..590834e35e3 100644 --- a/Resources/Prototypes/_Nuclear14/Entities/Structures/Furniture/table.yml +++ b/Resources/Prototypes/_Nuclear14/Entities/Structures/Furniture/table.yml @@ -473,6 +473,9 @@ sprite: _Nuclear14/Structures/Furniture/Tables/metalgrate.rsi - type: Icon sprite: _Nuclear14/Structures/Furniture/Tables/metalgrate.rsi + - type: Construction + graph: N14TableMetalGrateRecipes + node: N14TableMetalGrate - type: entity id: N14TableWoodSettler @@ -485,7 +488,7 @@ - type: Icon sprite: _Nuclear14/Structures/Furniture/Tables/table_settler.rsi - type: Construction - graph: N14Table + graph: N14TableRecipes node: N14TableWoodSettler # - type: entity @@ -508,4 +511,7 @@ - type: Sprite sprite: _Nuclear14/Structures/Furniture/Tables/barcounter.rsi - type: Icon - sprite: _Nuclear14/Structures/Furniture/Tables/barcounter.rsi \ No newline at end of file + sprite: _Nuclear14/Structures/Furniture/Tables/barcounter.rsi + - type: Construction + graph: N14TableCounterBarRecipes + node: N14TableCounterBar diff --git a/Resources/Prototypes/_Nuclear14/Recipes/Construction/Graphs/tables.yml b/Resources/Prototypes/_Nuclear14/Recipes/Construction/Graphs/tables.yml index 7f365634cd2..20be6f8a4c6 100644 --- a/Resources/Prototypes/_Nuclear14/Recipes/Construction/Graphs/tables.yml +++ b/Resources/Prototypes/_Nuclear14/Recipes/Construction/Graphs/tables.yml @@ -1,27 +1,77 @@ -- type: constructionGraph - id: N14Table +- type: constructionGraph + id: N14TableCounterBarRecipes start: start graph: - node: start - actions: - - !type:DeleteEntity {} edges: - - to: N14TableWoodSettler + - to: TableCounterBar + completed: + - !type:SnapToGrid + southRotation: true + conditions: + - !type:EntityAnchored {} steps: - material: WoodPlank amount: 2 - doAfter: 1 - - tool: Screwing - doAfter: 3 - - - node: N14TableWoodSettler - entity: N14TableWoodSettler + doAfter: 2 + + - node: TableCounterBar + entity: N14TableCounterBar edges: - to: start completed: - - !type:SpawnPrototype - prototype: MaterialWoodPlank1 + - !type:GivePrototype + prototype: N14TableCounterBar + amount: 1 + +- type: constructionGraph + id: N14TableMetalGrateRecipes + start: start + graph: + - node: start + edges: + - to: TableMetalGrate + completed: + - !type:SnapToGrid + southRotation: true + conditions: + - !type:EntityAnchored {} + steps: + - material: Steel amount: 2 + doAfter: 2 + + - node: TableMetalGrate + entity: N14TableMetalGrate + edges: + - to: start + completed: + - !type:GivePrototype + prototype: N14TableMetalGrate + amount: 1 + +- type: constructionGraph + id: N14TableRecipes + start: start + graph: + - node: start + edges: + - to: TableWoodSettler + completed: + - !type:SnapToGrid + southRotation: true + conditions: + - !type:EntityAnchored {} steps: - - tool: Prying - doAfter: 3 + - material: WoodPlank + amount: 2 + doAfter: 2 + + - node: TableWoodSettler + entity: N14TableWoodSettler + edges: + - to: start + completed: + - !type:GivePrototype + prototype: N14TableWoodSettler + amount: 1 diff --git a/Resources/Prototypes/_Nuclear14/Recipes/Construction/furniture.yml b/Resources/Prototypes/_Nuclear14/Recipes/Construction/furniture.yml index cddebca45ff..97899d74818 100644 --- a/Resources/Prototypes/_Nuclear14/Recipes/Construction/furniture.yml +++ b/Resources/Prototypes/_Nuclear14/Recipes/Construction/furniture.yml @@ -415,20 +415,60 @@ hide: false # Tables + - type: construction - name: wooden table - id: N14TableWoodSettler - graph: N14Table + name: bar counter + id: N14TableCounterBar + graph: N14TableCounterBarRecipes startNode: start - targetNode: N14TableWoodSettler + targetNode: TableCounterBar category: construction-category-furniture - description: You sit in this. Either by will or force. + description: An alcohol stained bartop. + objectType: Structure + placementMode: SnapgridCenter + canBuildInImpassable: false + hide: false + canRotate: true icon: - sprite: _Nuclear14/Structures/Furniture/Tables/table_settler.rsi + sprite: _Nuclear14/Structures/Furniture/Tables/barcounter.rsi state: full + conditions: + - !type:TileNotBlocked + +- type: construction + name: metal table + id: N14TableMetalGrate + graph: N14TableMetalGrateRecipes + startNode: start + targetNode: TableMetalGrate + category: construction-category-furniture + description: A cold handmade metal table made from grating. objectType: Structure placementMode: SnapgridCenter canBuildInImpassable: false + hide: false + canRotate: true + icon: + sprite: _Nuclear14/Structures/Furniture/Tables/metalgrate.rsi + state: full + conditions: + - !type:TileNotBlocked + +- type: construction + name: wooden table + id: N14TableWoodSettler + graph: N14TableRecipes + startNode: start + targetNode: TableWoodSettler + category: construction-category-furniture + description: A wooden table used by settlers. + objectType: Structure + placementMode: SnapgridCenter + canBuildInImpassable: false + hide: false + canRotate: true + icon: + sprite: _Nuclear14/Structures/Furniture/Tables/table_settler.rsi + state: full conditions: - !type:TileNotBlocked - hide: false \ No newline at end of file