adds some helper procs

This commit is contained in:
Aurorablade
2017-10-26 08:09:08 -04:00
parent 74d1394ecc
commit 8c5beaaaff
5 changed files with 83 additions and 6 deletions
+1 -1
View File
@@ -29,7 +29,7 @@
if(ishuman(C))
var/mob/living/carbon/human/H = C
if(!(H.get_organ("l_hand") || H.get_organ("r_hand")))
if(!H.has_left_hand() || !H.has_right_hand())
to_chat(user, "<span class='warning'>How do you suggest handcuffing someone with no hands?</span>")
return
+1 -1
View File
@@ -127,7 +127,7 @@
H.apply_damage(trap_damage, BRUTE,"chest")
else
H.apply_damage(trap_damage, BRUTE,(pick("l_leg", "r_leg")))
if(!H.legcuffed) //beartrap can't cuff you leg if there's already a beartrap or legcuffs.
if(!H.legcuffed && H.get_num_legs() >= 2) //beartrap can't cuff you leg if there's already a beartrap or legcuffs.
H.legcuffed = src
forceMove(H)
H.update_inv_legcuffed()