Handcuffs now require an aggressive grab

Conflicts:
	code/game/objects/items/weapons/handcuffs.dm
This commit is contained in:
mwerezak
2014-08-03 16:07:35 -04:00
committed by ZomgPonies
parent ee9fe24083
commit 3eae360963
2 changed files with 75 additions and 33 deletions
@@ -683,10 +683,20 @@ It can still be worn/put on as normal.
slot_to_process = slot_back
if (target.back)
strip_item = target.back
if("handcuff")
if("handcuff")
slot_to_process = slot_handcuffed
if (target.handcuffed)
strip_item = target.handcuffed
else
//check that we are still grabbing them
var/grabbing = 0
for (var/obj/item/weapon/grab/G in target.grabbed_by)
if (G.loc == source && G.state == GRAB_AGGRESSIVE)
grabbing = 1
if (!grabbing)
slot_to_process = null
source << "\red Your grasp was broken before you could restrain [target]!"
if("legcuff")
slot_to_process = slot_legcuffed
if (target.legcuffed)