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.
This commit is contained in:
phil235
2014-12-18 17:42:42 +01:00
parent c9c14feec6
commit ca3df3b4a1
+5 -3
View File
@@ -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("<span class='warning'>[C] attempts to remove [I]!</span>")
C << "<span class='notice'>You attempt to remove [I]. (This will take around [displaytime] minutes and you need to stand still.)</span>"
spawn(0)
if(do_after(C, breakouttime))
if(do_after(C, breakouttime, 10))
if(!I || C.buckled)
return
C.visible_message("<span class='danger'>[C] manages to remove [I]!</span>")
C << "<span class='notice'>You successfully remove [I].</span>"
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