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