Fixes UI glitch when losing cuffs from fractures, resisting, or cult magic

Conflicts:
	code/modules/mob/living/living.dm
This commit is contained in:
Jeremy Liberman
2014-03-05 22:27:33 -05:00
committed by ZomgPonies
parent 55ba32d02d
commit b6905e6668
3 changed files with 21 additions and 18 deletions
+2 -6
View File
@@ -613,18 +613,14 @@ This function completely restores a damaged organ to perfect condition.
"\The [owner.handcuffed.name] falls off of [owner.name].",\
"\The [owner.handcuffed.name] falls off you.")
owner.handcuffed.loc = owner.loc
owner.handcuffed = null
owner.update_inv_handcuffed()
owner.drop_from_inventory(owner.handcuffed)
if (owner.legcuffed && body_part in list(FOOT_LEFT, FOOT_RIGHT, LEG_LEFT, LEG_RIGHT))
owner.visible_message(\
"\The [owner.legcuffed.name] falls off of [owner.name].",\
"\The [owner.legcuffed.name] falls off you.")
owner.legcuffed.loc = owner.loc
owner.legcuffed = null
owner.update_inv_legcuffed()
owner.drop_from_inventory(owner.legcuffed)
/datum/organ/external/proc/bandage()
var/rval = 0