From 85d62902031a62a35ca582e5f46f2920afa2a3f0 Mon Sep 17 00:00:00 2001 From: Helm4142 Date: Sun, 23 Feb 2025 17:22:26 +0600 Subject: [PATCH] PumpkinLantern --- .../Objects/Decoration/jackolantern.yml | 6 ++++++ .../Crafting/Graphs/pumpkinlantern.yml | 21 +++++++++++++++++++ .../SS220/Recipes/Crafting/pumpkinlantern.yml | 12 +++++++++++ Resources/Prototypes/SS220/tags.yml | 4 ++++ 4 files changed, 43 insertions(+) create mode 100644 Resources/Prototypes/SS220/Recipes/Crafting/Graphs/pumpkinlantern.yml create mode 100644 Resources/Prototypes/SS220/Recipes/Crafting/pumpkinlantern.yml diff --git a/Resources/Prototypes/Entities/Objects/Decoration/jackolantern.yml b/Resources/Prototypes/Entities/Objects/Decoration/jackolantern.yml index 73c737ad7c98..66c866e4b193 100644 --- a/Resources/Prototypes/Entities/Objects/Decoration/jackolantern.yml +++ b/Resources/Prototypes/Entities/Objects/Decoration/jackolantern.yml @@ -12,6 +12,9 @@ - type: Construction graph: PumpkinAddLight node: start + - type: Tag #SS220-PumpkinLantern-Craft begin + tags: + - CarvedPumpkin #SS220-PumpkinLantern-Craft end - type: entity parent: CarvedPumpkin @@ -53,6 +56,9 @@ components: - type: Sprite scale: 0.75, 0.75 + - type: Construction #SS220-PumpkinLantern-Craft begin + graph: PumpkinLanternCraft + node: pumpkinLantern #SS220-PumpkinLantern-Craft end - type: entity parent: PumpkinLantern diff --git a/Resources/Prototypes/SS220/Recipes/Crafting/Graphs/pumpkinlantern.yml b/Resources/Prototypes/SS220/Recipes/Crafting/Graphs/pumpkinlantern.yml new file mode 100644 index 000000000000..73b457524861 --- /dev/null +++ b/Resources/Prototypes/SS220/Recipes/Crafting/Graphs/pumpkinlantern.yml @@ -0,0 +1,21 @@ +- type: constructionGraph + id: PumpkinLanternCraft + start: start + graph: + - node: start + edges: + - to: pumpkinLantern + steps: + - tag: Candle + name: свеча + icon: + sprite: Objects/Misc/candles.rsi + state: loadout + - tag: CarvedPumpkin + name: вырезанная тыква + icon: + sprite: Objects/Specific/Hydroponics/pumpkin.rsi + state: carved + doAfter: 5 + - node: pumpkinLantern + entity: PumpkinLantern diff --git a/Resources/Prototypes/SS220/Recipes/Crafting/pumpkinlantern.yml b/Resources/Prototypes/SS220/Recipes/Crafting/pumpkinlantern.yml new file mode 100644 index 000000000000..11b09ecd1abd --- /dev/null +++ b/Resources/Prototypes/SS220/Recipes/Crafting/pumpkinlantern.yml @@ -0,0 +1,12 @@ +- type: construction + name: тыквенный фонарик + id: PumpkinLantern + graph: PumpkinLanternCraft + startNode: start + targetNode: pumpkinLantern + category: construction-category-misc + objectType: Item + description: "Вырезанная тыква, излучающая жутковатое свечение." + icon: + sprite: Objects/Specific/Hydroponics/pumpkin.rsi + state: lantern diff --git a/Resources/Prototypes/SS220/tags.yml b/Resources/Prototypes/SS220/tags.yml index 5449cbe81439..e053767b727d 100644 --- a/Resources/Prototypes/SS220/tags.yml +++ b/Resources/Prototypes/SS220/tags.yml @@ -212,3 +212,7 @@ - type: Tag id: BananiumHorn + +# SS220-PumpkinLantern-Craft +- type: Tag + id: CarvedPumpkin \ No newline at end of file