this was a hard one (#21598)

This commit is contained in:
Contrabang
2023-08-12 18:45:14 +01:00
committed by GitHub
parent fe0a7c5ec3
commit 5c18bbeedf
4 changed files with 35 additions and 14 deletions
@@ -177,6 +177,7 @@
/obj/item/organ/external/hand/remove()
if(owner)
update_hand_missing()
if(owner.gloves)
owner.unEquip(owner.gloves)
if(owner.l_hand)
@@ -186,6 +187,26 @@
. = ..()
/obj/item/organ/external/hand/necrotize(update_sprite)
. = ..()
update_hand_missing()
/obj/item/organ/external/hand/mutate()
. = ..()
update_hand_missing()
/obj/item/organ/external/hand/receive_damage(brute, burn, sharp, used_weapon, list/forbidden_limbs, ignore_resists, updating_health)
. = ..()
update_hand_missing()
/obj/item/organ/external/hand/droplimb(clean, disintegrate, ignore_children, nodamage)
. = ..()
update_hand_missing()
/obj/item/organ/external/hand/proc/update_hand_missing()
// we need to come back to this once the hand is actually removed/dead
addtimer(CALLBACK(owner, TYPE_PROC_REF(/mob/living/carbon/human, update_hands_hud), 0))
/obj/item/organ/external/hand/right
limb_name = "r_hand"
name = "right hand"