Modified bone-spear to correctly break into 1-2 bones when breaking (#30951)

This commit is contained in:
Preston Smith
2024-08-16 23:54:53 -05:00
committed by GitHub
parent 4692c69ce1
commit 7066b4a3e0

View File

@@ -190,3 +190,27 @@
sprite: Objects/Weapons/Melee/bone_spear.rsi
- type: Construction
graph: SpearBone
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 30 #excess damage avoids cost of spawning entities.
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- trigger:
!type:DamageTrigger
damage: 20
behaviors:
- !type:PlaySoundBehavior
sound:
collection: GlassBreak
params:
volume: -4
- !type:SpawnEntitiesBehavior
spawn:
MaterialBones1:
min: 1
max: 2
- !type:DoActsBehavior
acts: [ "Destruction" ]