mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-22 04:28:33 +01:00
Fixes UI glitch when losing cuffs from fractures, resisting, or cult magic
This commit is contained in:
@@ -583,18 +583,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
|
||||
|
||||
Reference in New Issue
Block a user