From ca3df3b4a1f117a24a84ac7dd3fe854fbfd7ca99 Mon Sep 17 00:00:00 2001 From: phil235 Date: Thu, 18 Dec 2014 17:42:42 +0100 Subject: [PATCH] Fixes handcuff/legcuff/beartrap removal fail message appearing many seconds after the actual fail. It will now appear twice as fast. Replacing two usr. Fixing being able to remove both handcuff and legcuff by resisting once. --- code/modules/mob/living/living.dm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/code/modules/mob/living/living.dm b/code/modules/mob/living/living.dm index 1a251c02cc9..a6c371d15fe 100644 --- a/code/modules/mob/living/living.dm +++ b/code/modules/mob/living/living.dm @@ -540,6 +540,7 @@ if(C.handcuffed) C.handcuffed = null C.update_inv_handcuffed(0) + return else C.legcuffed = null C.update_inv_legcuffed(0) @@ -571,18 +572,19 @@ C.visible_message("[C] attempts to remove [I]!") C << "You attempt to remove [I]. (This will take around [displaytime] minutes and you need to stand still.)" spawn(0) - if(do_after(C, breakouttime)) + if(do_after(C, breakouttime, 10)) if(!I || C.buckled) return C.visible_message("[C] manages to remove [I]!") C << "You successfully remove [I]." if(C.handcuffed) - C.handcuffed.loc = usr.loc + C.handcuffed.loc = C.loc C.handcuffed = null C.update_inv_handcuffed(0) + return if(C.legcuffed) - C.legcuffed.loc = usr.loc + C.legcuffed.loc = C.loc C.legcuffed = null C.update_inv_legcuffed(0) else