diff --git a/code/modules/mob/living/carbon/carbon.dm b/code/modules/mob/living/carbon/carbon.dm index 33e2918ef58..7dfdf6c08ad 100644 --- a/code/modules/mob/living/carbon/carbon.dm +++ b/code/modules/mob/living/carbon/carbon.dm @@ -730,6 +730,16 @@ GLOBAL_LIST_INIT(ventcrawl_machinery, list(/obj/machinery/atmospherics/unary/ven toggle_move_intent() update_inv_legcuffed() +/mob/living/carbon/update_inv_legcuffed() + clear_alert("legcuffed") + if(!legcuffed) + return + throw_alert("legcuffed", /obj/screen/alert/restrained/legcuffed, new_master = legcuffed) + if(m_intent != MOVE_INTENT_WALK) + m_intent = MOVE_INTENT_WALK + if(hud_used?.move_intent) + hud_used.move_intent.icon_state = "walking" + /mob/living/carbon/show_inv(mob/user) user.set_machine(src) diff --git a/code/modules/mob/living/carbon/human/update_icons.dm b/code/modules/mob/living/carbon/human/update_icons.dm index ebe490c8b4b..6b47b26a50a 100644 --- a/code/modules/mob/living/carbon/human/update_icons.dm +++ b/code/modules/mob/living/carbon/human/update_icons.dm @@ -1046,14 +1046,9 @@ GLOBAL_LIST_EMPTY(damage_icon_parts) /mob/living/carbon/human/update_inv_legcuffed() remove_overlay(LEGCUFF_LAYER) - clear_alert("legcuffed") + . = ..() if(legcuffed) overlays_standing[LEGCUFF_LAYER] = mutable_appearance('icons/mob/mob.dmi', legcuffed.cuffed_state, layer = -LEGCUFF_LAYER) - throw_alert("legcuffed", /obj/screen/alert/restrained/legcuffed, new_master = legcuffed) - if(m_intent != MOVE_INTENT_WALK) - m_intent = MOVE_INTENT_WALK - if(hud_used && hud_used.move_intent) - hud_used.move_intent.icon_state = "walking" apply_overlay(LEGCUFF_LAYER)