From 6d4c600fee73abd78a37497443d4b05e45d1f9a9 Mon Sep 17 00:00:00 2001 From: Alexsey Bezyuk Date: Wed, 4 Jun 2025 18:04:51 +1000 Subject: [PATCH] leather workbench construction --- .../Entities/Structures/Furniture/workbenchs.yml | 8 ++++---- .../Construction/Graphs/Furniture/tables.yml | 16 ++++++++++++++++ .../_CP14/Recipes/Construction/workstations.yml | 12 ++++++++++++ 3 files changed, 32 insertions(+), 4 deletions(-) diff --git a/Resources/Prototypes/_CP14/Entities/Structures/Furniture/workbenchs.yml b/Resources/Prototypes/_CP14/Entities/Structures/Furniture/workbenchs.yml index 204c396ff2..c41c7bc671 100644 --- a/Resources/Prototypes/_CP14/Entities/Structures/Furniture/workbenchs.yml +++ b/Resources/Prototypes/_CP14/Entities/Structures/Furniture/workbenchs.yml @@ -126,12 +126,12 @@ - CP14RecipeSewing - type: entity - id: CP14WorkbenchLeatherWorking + id: CP14WorkbenchLeather parent: - CP14BaseWorkbench - CP14BaseFlammable name: tanner table - suffix: Leather Workbench + suffix: Leather Workbench description: Table for leather processing and creation of leather goods. components: - type: Sprite @@ -139,8 +139,8 @@ - type: Icon state: tanner_table - type: Construction - graph: CP14WorkbenchTanner - node: CP14WorkbenchTanner + graph: CP14WorkbenchLeather + node: CP14WorkbenchLeather - type: CP14Workbench craftSound: collection: CP14Leather # TODO? diff --git a/Resources/Prototypes/_CP14/Recipes/Construction/Graphs/Furniture/tables.yml b/Resources/Prototypes/_CP14/Recipes/Construction/Graphs/Furniture/tables.yml index 3e802b545a..29f88e4812 100644 --- a/Resources/Prototypes/_CP14/Recipes/Construction/Graphs/Furniture/tables.yml +++ b/Resources/Prototypes/_CP14/Recipes/Construction/Graphs/Furniture/tables.yml @@ -124,3 +124,19 @@ doAfter: 2 - node: CP14WorkbenchSewing entity: CP14WorkbenchSewing + +- type: constructionGraph + id: CP14WorkbenchLeather + start: start + graph: + - node: start + actions: + - !type:DestroyEntity {} + edges: + - to: CP14WorkbenchLeather + steps: + - stackGroup: WoodenPlanks + amount: 3 + doAfter: 2 + - node: CP14WorkbenchLeather + entity: CP14WorkbenchLeather diff --git a/Resources/Prototypes/_CP14/Recipes/Construction/workstations.yml b/Resources/Prototypes/_CP14/Recipes/Construction/workstations.yml index c7673e5b0d..33bf33761b 100644 --- a/Resources/Prototypes/_CP14/Recipes/Construction/workstations.yml +++ b/Resources/Prototypes/_CP14/Recipes/Construction/workstations.yml @@ -37,3 +37,15 @@ conditions: - !type:TileNotBlocked +- type: construction + crystallPunkAllowed: true + id: CP14WorkbenchLeather + graph: CP14WorkbenchLeather + startNode: start + targetNode: CP14WorkbenchLeather + category: construction-category-machines + objectType: Structure + placementMode: SnapgridCenter + canBuildInImpassable: false + conditions: + - !type:TileNotBlocked \ No newline at end of file