Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make more decorations destructible #8966

Merged
merged 1 commit into from
Jun 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions Resources/Prototypes/Entities/Objects/Decoration/flora.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,18 @@
- HalfWallLayer
- Opaque
- type: Climbable
- type: Damageable
damageContainer: Inorganic
damageModifierSet: Metallic
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since when are trees made of metal?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is on rocks not trees !!!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

which also aren't really made of metal but its fine

- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 200
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]


- type: entity
id: BaseTree
Expand All @@ -40,6 +52,28 @@
mass: 500
layer:
- WallLayer
- type: Damageable
damageContainer: Inorganic
damageModifierSet: Wood
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 400
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- trigger:
!type:DamageTrigger
damage: 50
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- !type:SpawnEntitiesBehavior
spawn:
Log:
min: 2
max: 8

- type: entity
parent: BaseTree
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,25 @@
mask: /Textures/Effects/LightMasks/cone.png
autoRot: true
offset: "0, 0.6"
- type: Damageable
damageContainer: Inorganic
damageModifierSet: Wood
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 400
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- trigger:
!type:DamageTrigger
damage: 75
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- !type:SpawnEntitiesBehavior
spawn:
Log:
min: 2
max: 8
11 changes: 11 additions & 0 deletions Resources/Prototypes/Entities/Structures/Decoration/fireplace.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,14 @@
radius: 3
energy: 3
color: "#FF6F00"
- type: Damageable
damageContainer: Inorganic
damageModifierSet: Metallic
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 200
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]