From 41559c78f70ff7916eba35b5c73ff43f1dea4193 Mon Sep 17 00:00:00 2001 From: Ladyayla Date: Sat, 4 Jan 2025 11:11:40 -0500 Subject: [PATCH 1/5] Lets-a see Adds a graph and the construction for the jar (i hope) --- .../Recipes/Crafting/Graphs/items.yml | 21 ++++++++++++++++++- .../_Nuclear14/Recipes/Crafting/items.yml | 17 ++++++++++----- 2 files changed, 32 insertions(+), 6 deletions(-) diff --git a/Resources/Prototypes/_Nuclear14/Recipes/Crafting/Graphs/items.yml b/Resources/Prototypes/_Nuclear14/Recipes/Crafting/Graphs/items.yml index 474d71acb10..95f033937af 100644 --- a/Resources/Prototypes/_Nuclear14/Recipes/Crafting/Graphs/items.yml +++ b/Resources/Prototypes/_Nuclear14/Recipes/Crafting/Graphs/items.yml @@ -21,4 +21,23 @@ # - !type:SpawnPrototype # prototype: MaterialCloth1 # amount: 2 -# - !type:DeleteEntity \ No newline at end of file +# - !type:DeleteEntity + +- type: constructionGraph + id: N14FoodJarBase + start: start + graph: + - node: start + edges: + - to: empty + steps: + - material: glass + - tag: Jam + name: a glass + icon: + sprite: _Nuclear14\Objects\Consumable\Food\preserves.rsi + state: empty + doAfter: 1 + + - node: empty + entity: N14FoodJarBase \ No newline at end of file diff --git a/Resources/Prototypes/_Nuclear14/Recipes/Crafting/items.yml b/Resources/Prototypes/_Nuclear14/Recipes/Crafting/items.yml index ebaee600c4c..de26597669f 100644 --- a/Resources/Prototypes/_Nuclear14/Recipes/Crafting/items.yml +++ b/Resources/Prototypes/_Nuclear14/Recipes/Crafting/items.yml @@ -13,9 +13,16 @@ # state: bedroll_rolled # objectType: Item -- type: latheRecipe +- type: construction + name: jar id: N14FoodJarBase - result: N14FoodJarBase - completetime: 0.8 - materials: - Glass: 100 \ No newline at end of file + graph: N14FoodJarBase + startNode: start + targetNode: empty + category: construction-category-medical + description: A glass jar + hide: false + icon: + sprite: _Nuclear14\Objects\Consumable\Food\preserves.rsi + state: empty + objectType: Item \ No newline at end of file From 62d3679b11a07ddaad97163994176ee550a1e5e0 Mon Sep 17 00:00:00 2001 From: Ladyayla Date: Sat, 4 Jan 2025 11:20:15 -0500 Subject: [PATCH 2/5] this it? cap-ed the g --- .../Prototypes/_Nuclear14/Recipes/Crafting/Graphs/items.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Resources/Prototypes/_Nuclear14/Recipes/Crafting/Graphs/items.yml b/Resources/Prototypes/_Nuclear14/Recipes/Crafting/Graphs/items.yml index 95f033937af..0a9e49aef47 100644 --- a/Resources/Prototypes/_Nuclear14/Recipes/Crafting/Graphs/items.yml +++ b/Resources/Prototypes/_Nuclear14/Recipes/Crafting/Graphs/items.yml @@ -31,7 +31,7 @@ edges: - to: empty steps: - - material: glass + - material: Glass - tag: Jam name: a glass icon: From 2bb74599e5bd328671bb5d4b63fe09338cf18aa8 Mon Sep 17 00:00:00 2001 From: Ladyayla Date: Sat, 4 Jan 2025 11:36:55 -0500 Subject: [PATCH 3/5] slashes fixed slashes were the wrong way, should help --- .../Prototypes/_Nuclear14/Recipes/Crafting/Graphs/items.yml | 2 +- Resources/Prototypes/_Nuclear14/Recipes/Crafting/items.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Resources/Prototypes/_Nuclear14/Recipes/Crafting/Graphs/items.yml b/Resources/Prototypes/_Nuclear14/Recipes/Crafting/Graphs/items.yml index 0a9e49aef47..ae985d285ac 100644 --- a/Resources/Prototypes/_Nuclear14/Recipes/Crafting/Graphs/items.yml +++ b/Resources/Prototypes/_Nuclear14/Recipes/Crafting/Graphs/items.yml @@ -35,7 +35,7 @@ - tag: Jam name: a glass icon: - sprite: _Nuclear14\Objects\Consumable\Food\preserves.rsi + sprite: _Nuclear14/Objects/Consumable/Food/preserves.rsi state: empty doAfter: 1 diff --git a/Resources/Prototypes/_Nuclear14/Recipes/Crafting/items.yml b/Resources/Prototypes/_Nuclear14/Recipes/Crafting/items.yml index de26597669f..673a5c2f5dd 100644 --- a/Resources/Prototypes/_Nuclear14/Recipes/Crafting/items.yml +++ b/Resources/Prototypes/_Nuclear14/Recipes/Crafting/items.yml @@ -23,6 +23,6 @@ description: A glass jar hide: false icon: - sprite: _Nuclear14\Objects\Consumable\Food\preserves.rsi + sprite: _Nuclear14/Objects/Consumable/Food/preserves.rsi state: empty objectType: Item \ No newline at end of file From c4de87e241a72fa25d21f5226e65336a7938ee1c Mon Sep 17 00:00:00 2001 From: Ladyayla Date: Sat, 4 Jan 2025 11:46:04 -0500 Subject: [PATCH 4/5] changed it to icon maybe my problem? --- .../Prototypes/_Nuclear14/Recipes/Crafting/Graphs/items.yml | 6 +++--- Resources/Prototypes/_Nuclear14/Recipes/Crafting/items.yml | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Resources/Prototypes/_Nuclear14/Recipes/Crafting/Graphs/items.yml b/Resources/Prototypes/_Nuclear14/Recipes/Crafting/Graphs/items.yml index ae985d285ac..48d5538bee2 100644 --- a/Resources/Prototypes/_Nuclear14/Recipes/Crafting/Graphs/items.yml +++ b/Resources/Prototypes/_Nuclear14/Recipes/Crafting/Graphs/items.yml @@ -29,15 +29,15 @@ graph: - node: start edges: - - to: empty + - to: icon steps: - material: Glass - tag: Jam name: a glass icon: sprite: _Nuclear14/Objects/Consumable/Food/preserves.rsi - state: empty + state: icon doAfter: 1 - - node: empty + - node: icon entity: N14FoodJarBase \ No newline at end of file diff --git a/Resources/Prototypes/_Nuclear14/Recipes/Crafting/items.yml b/Resources/Prototypes/_Nuclear14/Recipes/Crafting/items.yml index 673a5c2f5dd..99c3d460f98 100644 --- a/Resources/Prototypes/_Nuclear14/Recipes/Crafting/items.yml +++ b/Resources/Prototypes/_Nuclear14/Recipes/Crafting/items.yml @@ -18,11 +18,11 @@ id: N14FoodJarBase graph: N14FoodJarBase startNode: start - targetNode: empty + targetNode: icon category: construction-category-medical description: A glass jar hide: false icon: sprite: _Nuclear14/Objects/Consumable/Food/preserves.rsi - state: empty + state: icon objectType: Item \ No newline at end of file From c44d853233087fd815695e803f5fd289ba9e57c4 Mon Sep 17 00:00:00 2001 From: Ladyayla Date: Fri, 10 Jan 2025 16:58:53 -0500 Subject: [PATCH 5/5] last fix i hope added construction to the entity itself --- .../_Nuclear14/Entities/Objects/Consumable/Food/preserves.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Resources/Prototypes/_Nuclear14/Entities/Objects/Consumable/Food/preserves.yml b/Resources/Prototypes/_Nuclear14/Entities/Objects/Consumable/Food/preserves.yml index cfd189bb07e..d290c63a612 100644 --- a/Resources/Prototypes/_Nuclear14/Entities/Objects/Consumable/Food/preserves.yml +++ b/Resources/Prototypes/_Nuclear14/Entities/Objects/Consumable/Food/preserves.yml @@ -28,6 +28,9 @@ - state: icon-front map: [ "enum.SolutionContainerLayers.Overlay" ] scale: 0.5, 0.5 + - type: Construction + graph: N14FoodJarBase + node: start # JamBase - type: entity