mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-30 07:27:57 +01:00
Deletes parole jumpsuits
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user