[MIRROR] Stops restraint removal progress bar spam (#2899)

* Stops restraint removal progress bar spam

* Stops restraint removal progress bar spam
This commit is contained in:
CitadelStationBot
2017-09-22 22:36:16 -05:00
committed by Poojawa
parent f434049c37
commit e9e80e3ce6
2 changed files with 6 additions and 0 deletions
+1
View File
@@ -61,6 +61,7 @@ GLOBAL_VAR_INIT(rpg_loot_items, FALSE)
var/equip_delay_other = 20 //In deciseconds, how long an item takes to put on another person
var/strip_delay = 40 //In deciseconds, how long an item takes to remove from another person
var/breakouttime = 0
var/being_removed = FALSE
var/list/materials
var/origin_tech = null //Used by R&D to determine what research bonuses it grants.
var/needs_permit = 0 //Used by security bots to determine if this item is safe for public use.
+5
View File
@@ -297,6 +297,10 @@
/mob/living/carbon/proc/cuff_resist(obj/item/I, breakouttime = 600, cuff_break = 0)
if(I.being_removed)
to_chat(src, "<span class='warning'>You're already attempting to remove [I]!</span>")
return
I.being_removed = TRUE
breakouttime = I.breakouttime
var/displaytime = breakouttime / 600
if(!cuff_break)
@@ -318,6 +322,7 @@
else if(cuff_break == INSTANT_CUFFBREAK)
clear_cuffs(I, cuff_break)
I.being_removed = FALSE
/mob/living/carbon/proc/uncuff()
if (handcuffed)