Deletes parole jumpsuits

This commit is contained in:
Kyep
2016-06-25 07:50:06 -07:00
parent 8a610e5a84
commit 4b208193e8
3 changed files with 3 additions and 93 deletions
+1 -40
View File
@@ -110,43 +110,4 @@
#undef WAND_OPEN
#undef WAND_BOLT
#undef WAND_EMERGENCY
/obj/item/weapon/parolesuit_control
icon_state = "gangtool-red"
item_state = "electronic"
icon = 'icons/obj/device.dmi'
name = "parole suit control wand"
desc = "Remotely controls parole jumpsuits."
w_class = 1
var/emagged = 0
/obj/item/weapon/parolesuit_control/attack(mob/living/carbon/human/H, mob/user)
if(!istype(H))
to_chat(user,"<span class='danger'>[src] only works on humanoids.</span>")
return
if (!istype(H.w_uniform, /obj/item/clothing/under/color/yellow/parole))
to_chat(user,"<span class='danger'>[H] is not wearing a parole jumpsuit.</span>")
return
var/obj/item/clothing/under/color/yellow/parole/J = H.w_uniform
var/obj/item/weapon/card/id/I = H.get_item_by_slot(slot_wear_id)
if (!istype(I))
to_chat(user,"<span class='danger'>[H] is not wearing an ID.</span>")
return
if (J.emagged)
to_chat(user, "<span class='danger'>[J] emits an error tone.</span>")
else if (J.emped)
to_chat(user, "<span class='danger'>The circuits on [J] appear to be fried.</span>")
else if (J.parole_locked && J.flags & NODROP && I.flags & NODROP)
J.unlock()
else if (access_heads in I.access)
to_chat(user, "<span class='danger'>[J] cannot be locked on someone wearing an ID with head access. They might need to use their ID on a keycard swiper.")
return
else if (access_security in I.access)
to_chat(user, "<span class='danger'>[J] cannot be locked on someone wearing an ID with security access.")
return
else if (!J.parole_locked && !(J.flags & NODROP) && !(I.flags & NODROP))
J.lock(I)
else
to_chat(user,"<span class='danger'>[src] emits a loud buzzzing sound! Its display reads: jumpsuit/ID lock desynched.</span>")
#undef WAND_EMERGENCY
@@ -241,11 +241,10 @@
..()
new /obj/item/weapon/implanter/parole(src)
new /obj/item/weapon/implanter/parole(src)
new /obj/item/weapon/implanter/parole(src)
new /obj/item/weapon/implanter/tracking(src)
new /obj/item/weapon/implanter/tracking(src)
new /obj/item/weapon/implanter/tracking(src)
new /obj/item/clothing/under/color/yellow/parole(src)
new /obj/item/clothing/under/color/yellow/parole(src)
new /obj/item/weapon/parolesuit_control(src)
/obj/item/weapon/storage/box/exileimp
name = "boxed exile implant kit"