Skip to content

Commit

Permalink
add craftable bonfire
Browse files Browse the repository at this point in the history
  • Loading branch information
Fansana committed Aug 7, 2024
1 parent 0b6c785 commit 6ecbfcb
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 2 deletions.
33 changes: 31 additions & 2 deletions Resources/Prototypes/Entities/Structures/Decoration/bonfire.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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

14 changes: 14 additions & 0 deletions Resources/Prototypes/Recipes/Construction/structures.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 6ecbfcb

Please sign in to comment.