From 6ecbfcb3992e66873105ecbf469671af95a1fc98 Mon Sep 17 00:00:00 2001 From: Fansana Date: Wed, 7 Aug 2024 13:51:48 +0200 Subject: [PATCH 1/2] add craftable bonfire --- .../Structures/Decoration/bonfire.yml | 33 +++++++++++++++++-- .../Graphs/structures/bonfire.yml | 26 +++++++++++++++ .../Recipes/Construction/structures.yml | 14 ++++++++ 3 files changed, 71 insertions(+), 2 deletions(-) create mode 100644 Resources/Prototypes/Recipes/Construction/Graphs/structures/bonfire.yml diff --git a/Resources/Prototypes/Entities/Structures/Decoration/bonfire.yml b/Resources/Prototypes/Entities/Structures/Decoration/bonfire.yml index cc69a6304d1..5d663385ff1 100644 --- a/Resources/Prototypes/Entities/Structures/Decoration/bonfire.yml +++ b/Resources/Prototypes/Entities/Structures/Decoration/bonfire.yml @@ -1,9 +1,12 @@ - type: entity - id: Bonfire + id: BonfireLit parent: BaseStructure - name: bonfire + name: Bonfire description: What can be better then late evening under the sky with guitar and friends. components: + - type: Construction + graph: Bonfire + node: BonfireLit - type: Sprite noRot: true sprite: Structures/Decoration/bonfire.rsi @@ -32,6 +35,32 @@ path: /Audio/Ambience/Objects/fireplace.ogg - type: AlwaysHot +- type: entity + id: Bonfire + parent: BaseStructure + name: Bonfire + description: What can be better then late evening under the sky with guitar and friends. + components: + - type: Construction + graph: Bonfire + node: Bonfire + - type: Sprite + noRot: true + sprite: Structures/Decoration/bonfire.rsi + layers: + - state: bonfire + - type: Damageable + damageContainer: Inorganic + damageModifierSet: Wood + - type: Destructible + thresholds: + - trigger: + !type:DamageTrigger + damage: 50 + behaviors: + - !type:DoActsBehavior + acts: [ "Destruction" ] + - type: entity id: LegionnaireBonfire parent: Bonfire diff --git a/Resources/Prototypes/Recipes/Construction/Graphs/structures/bonfire.yml b/Resources/Prototypes/Recipes/Construction/Graphs/structures/bonfire.yml new file mode 100644 index 00000000000..7bc9a964ff9 --- /dev/null +++ b/Resources/Prototypes/Recipes/Construction/Graphs/structures/bonfire.yml @@ -0,0 +1,26 @@ +- type: constructionGraph + id: Bonfire + start: start + graph: + - node: start + edges: + - to: Bonfire + completed: + - !type:SnapToGrid + southRotation: true + steps: + - material: WoodPlank + amount: 15 + doAfter: 4 + + - node: Bonfire + entity: Bonfire + edges: + - to: BonfireLit + steps: + - tool: Welding + doAfter: 5 + + - node: BonfireLit + entity: BonfireLit + diff --git a/Resources/Prototypes/Recipes/Construction/structures.yml b/Resources/Prototypes/Recipes/Construction/structures.yml index b152e827e6a..fb82251d626 100644 --- a/Resources/Prototypes/Recipes/Construction/structures.yml +++ b/Resources/Prototypes/Recipes/Construction/structures.yml @@ -1671,3 +1671,17 @@ state: closed conditions: - !type:TileNotBlocked + +- type: construction + name: bonfire + id: Bonfire + graph: Bonfire + startNode: start + targetNode: BonfireLit + category: construction-category-structures + description: What can be better than late evening under the sky with guitar and friends + icon: { sprite: Structures/Decoration/bonfire.rsi, state: bonfire } + objectType: Structure + placementMode: SnapgridCenter + conditions: + - !type:TileNotBlocked From 63c3f5bddd84339ab4c8852ccd1f92d389b50d5e Mon Sep 17 00:00:00 2001 From: Fansana Date: Wed, 7 Aug 2024 15:10:19 +0200 Subject: [PATCH 2/2] add migration --- Resources/Migrations/floofstation.yml | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 Resources/Migrations/floofstation.yml diff --git a/Resources/Migrations/floofstation.yml b/Resources/Migrations/floofstation.yml new file mode 100644 index 00000000000..30f4c6d0d19 --- /dev/null +++ b/Resources/Migrations/floofstation.yml @@ -0,0 +1,2 @@ +# 2024-08-07 +Bonfire: BonfireLit