It hurts to lose your groin. (#24494)

* It hurts to lose your groin.

* Update code/game/dna/mutations/mutation_powers.dm

Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>

* Applied review suggestion from DGamerL

* Update code/game/dna/mutations/mutation_powers.dm

Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>

* Update code/game/dna/mutations/mutation_powers.dm

---------

Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
This commit is contained in:
Charlie Nolan
2024-03-12 03:50:07 -07:00
committed by GitHub
parent b00a9fbccb
commit 99ef4aa4ce
+19 -1
View File
@@ -425,7 +425,25 @@
return
user.visible_message("<span class='danger'>[user] [pick("chomps","bites")] off [the_item]'s [limb]!</span>")
playsound(user.loc, 'sound/items/eatfood.ogg', 50, 0)
limb.droplimb(0, DROPLIMB_SHARP)
// Most limbs will drop here. Groin won't, but this
// still spills out the organs that were in it.
limb.droplimb(FALSE, DROPLIMB_SHARP)
if(istype(limb, /obj/item/organ/external/groin))
limb.receive_damage(100, sharp = TRUE)
var/obj/item/organ/external/left_leg = H.get_organ(BODY_ZONE_L_LEG)
if(istype(left_leg))
left_leg.droplimb(FALSE, DROPLIMB_SHARP)
var/obj/item/organ/external/right_leg = H.get_organ(BODY_ZONE_R_LEG)
if(istype(right_leg))
right_leg.droplimb(FALSE, DROPLIMB_SHARP)
var/obj/item/organ/external/chest = H.get_organ(BODY_ZONE_CHEST)
if(istype(chest))
chest.receive_damage(50, sharp = TRUE)
doHeal(user)
else
user.visible_message("<span class='danger'>[user] eats \the [the_item].</span>")