From 739c26b5970d90427773aeb961b34a41f1b74083 Mon Sep 17 00:00:00 2001 From: PuroSlavKing <103608145+PuroSlavKing@users.noreply.github.com> Date: Wed, 1 Jan 2025 20:21:17 +0300 Subject: [PATCH] [Tweak] Craftable Bonfire (#221) --- .../Structures/Decoration/bonfire.yml | 6 +++ .../Graphs/structures/bonfire.yml | 45 +++++++++++++++++++ .../_White/Recipes/Construction/bonfire.yml | 27 +++++++++++ 3 files changed, 78 insertions(+) create mode 100644 Resources/Prototypes/_White/Recipes/Construction/Graphs/structures/bonfire.yml create mode 100644 Resources/Prototypes/_White/Recipes/Construction/bonfire.yml diff --git a/Resources/Prototypes/Entities/Structures/Decoration/bonfire.yml b/Resources/Prototypes/Entities/Structures/Decoration/bonfire.yml index 0876502e67..59d0e6a8b4 100644 --- a/Resources/Prototypes/Entities/Structures/Decoration/bonfire.yml +++ b/Resources/Prototypes/Entities/Structures/Decoration/bonfire.yml @@ -34,6 +34,9 @@ - type: Tag tags: - NoPaint + - type: Construction # WWDP + graph: Bonfires + node: Bonfire - type: entity id: LegionnaireBonfire @@ -46,3 +49,6 @@ - state: legionnaire_bonfire - type: PointLight color: "#FF5601" + - type: Construction # WWDP + graph: Bonfires + node: LegionnaireBonfire diff --git a/Resources/Prototypes/_White/Recipes/Construction/Graphs/structures/bonfire.yml b/Resources/Prototypes/_White/Recipes/Construction/Graphs/structures/bonfire.yml new file mode 100644 index 0000000000..86d8cbf6db --- /dev/null +++ b/Resources/Prototypes/_White/Recipes/Construction/Graphs/structures/bonfire.yml @@ -0,0 +1,45 @@ +- type: constructionGraph + id: Bonfires + start: start + graph: + - node: start + actions: + - !type:DestroyEntity {} + edges: + - to: Bonfire + steps: + - material: WoodPlank + amount: 25 + doAfter: 15 + - to: LegionnaireBonfire + steps: + - material: WoodPlank + amount: 25 + doAfter: 15 + - tag: Head + name: любая голова + icon: + sprite: Mobs/Species/Skeleton/parts.rsi + state: skull_icon + + - node: Bonfire + entity: Bonfire + edges: + - to: start + completed: + - !type:SpawnPrototype + prototype: MaterialWoodPlank10 + steps: + - tool: Screwing + doAfter: 20 + + - node: LegionnaireBonfire + entity: LegionnaireBonfire + edges: + - to: start + completed: + - !type:SpawnPrototype + prototype: MaterialWoodPlank10 + steps: + - tool: Screwing + doAfter: 20 diff --git a/Resources/Prototypes/_White/Recipes/Construction/bonfire.yml b/Resources/Prototypes/_White/Recipes/Construction/bonfire.yml new file mode 100644 index 0000000000..5342f63e2e --- /dev/null +++ b/Resources/Prototypes/_White/Recipes/Construction/bonfire.yml @@ -0,0 +1,27 @@ +- type: construction + name: костёр + description: Тёплый, для зефирок. + id: Bonfire + graph: Bonfires + startNode: start + targetNode: Bonfire + category: construction-category-structures + placementMode: SnapgridCenter + canBuildInImpassable: false + icon: + sprite: /Textures/Structures/Decoration/bonfire.rsi + state: "bonfire" + +- type: construction + name: костёр легиона + description: Тёплый, для зефирок и мяса. + id: LegionnaireBonfire + graph: Bonfires + startNode: start + targetNode: LegionnaireBonfire + category: construction-category-structures + placementMode: SnapgridCenter + canBuildInImpassable: false + icon: + sprite: /Textures/Structures/Decoration/bonfire.rsi + state: legionnaire_bonfire