Skip to content

Commit

Permalink
Merge pull request #84 from Fansana/craftable-bonfire
Browse files Browse the repository at this point in the history
Add Craftable Bonfire
  • Loading branch information
Fansana authored Aug 7, 2024
2 parents 88e8330 + 63c3f5b commit abf03fa
Show file tree
Hide file tree
Showing 4 changed files with 73 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Resources/Migrations/floofstation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# 2024-08-07
Bonfire: BonfireLit
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 abf03fa

Please sign in to comment.