mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 19:22:56 +00:00
Fixes bad handcuff check
This commit is contained in:
@@ -42,8 +42,8 @@
|
|||||||
if (ishuman(target))
|
if (ishuman(target))
|
||||||
var/mob/living/carbon/human/H = target
|
var/mob/living/carbon/human/H = target
|
||||||
|
|
||||||
if (!H.has_organ_for_slot("handcuff"))
|
if (!H.has_organ_for_slot(slot_handcuffed))
|
||||||
user << "\red [H] needs at least two wrists before you can cuff them together!"
|
user << "\red \The [H] needs at least two wrists before you can cuff them together!"
|
||||||
return
|
return
|
||||||
|
|
||||||
H.attack_log += text("\[[time_stamp()]\] <font color='orange'>Has been handcuffed (attempt) by [user.name] ([user.ckey])</font>")
|
H.attack_log += text("\[[time_stamp()]\] <font color='orange'>Has been handcuffed (attempt) by [user.name] ([user.ckey])</font>")
|
||||||
@@ -158,8 +158,8 @@ var/last_chew = 0
|
|||||||
|
|
||||||
if (ishuman(C))
|
if (ishuman(C))
|
||||||
var/mob/living/carbon/human/H = C
|
var/mob/living/carbon/human/H = C
|
||||||
if (!H.has_organ_for_slot("handcuff"))
|
if (!H.has_organ_for_slot(slot_handcuffed))
|
||||||
user << "\red [H] needs at least two wrists before you can cuff them together!"
|
user << "\red \The [H] needs at least two wrists before you can cuff them together!"
|
||||||
return
|
return
|
||||||
|
|
||||||
spawn(30)
|
spawn(30)
|
||||||
|
|||||||
Reference in New Issue
Block a user