From: Preston Smith <92108534+thetolbean@users.noreply.github.com> Date: Sat, 17 Aug 2024 04:54:53 +0000 (-0500) Subject: Modified bone-spear to correctly break into 1-2 bones when breaking (#30951) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=7066b4a3e049db577b602e7df8032848880decb9;p=space-station-14.git Modified bone-spear to correctly break into 1-2 bones when breaking (#30951) --- diff --git a/Resources/Prototypes/Entities/Objects/Weapons/Melee/spear.yml b/Resources/Prototypes/Entities/Objects/Weapons/Melee/spear.yml index 1d010c0976..c5c300008c 100644 --- a/Resources/Prototypes/Entities/Objects/Weapons/Melee/spear.yml +++ b/Resources/Prototypes/Entities/Objects/Weapons/Melee/spear.yml @@ -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" ]