mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-24 17:22:23 +00: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"
|
||||
|
||||
@@ -103,56 +103,6 @@
|
||||
item_color = "yellow"
|
||||
flags = ONESIZEFITSALL
|
||||
|
||||
|
||||
/obj/item/clothing/under/color/yellow/parole
|
||||
name = "parole jumpsuit"
|
||||
desc = "A jumpsuit worn by parolees. Its suit sensors are always fully on. Its lock light is OFF."
|
||||
var/desc_locked = "A jumpsuit worn by parolees. Its suit sensors are always fully on. Its lock light is ON."
|
||||
var/desc_emagged = "A jumpsuit worn by parolees. Its suit sensors are always fully on. Its lock light is BLINKING."
|
||||
var/desc_emped = "A jumpsuit worn by parolees. Its suit sensors are always fully on. Its lock light is FLICKERING."
|
||||
has_sensor = 2
|
||||
sensor_mode = 3
|
||||
var/parole_locked = 0
|
||||
var/emagged = 0
|
||||
var emped = 0
|
||||
var/obj/item/weapon/card/id/parole_id = null
|
||||
var/mob/living/carbon/human/worn_by = null
|
||||
|
||||
/obj/item/clothing/under/color/yellow/parole/emag_act(user as mob)
|
||||
if(parole_locked && !emagged)
|
||||
to_chat(user, "\red You overload the suit's locking mechanism.")
|
||||
unlock()
|
||||
emagged = 1
|
||||
desc = desc_emagged
|
||||
|
||||
/obj/item/clothing/under/color/yellow/parole/emp_act(var/severity)
|
||||
if(parole_locked && !emagged && prob(30))
|
||||
unlock()
|
||||
emped = 1
|
||||
desc = desc_emped
|
||||
|
||||
/obj/item/clothing/under/color/yellow/parole/proc/unlock()
|
||||
worn_by = loc
|
||||
flags &= ~NODROP
|
||||
parole_locked = 0
|
||||
desc = initial(desc)
|
||||
parole_id.flags &= ~NODROP
|
||||
parole_id = null
|
||||
playsound(loc, 'sound/machines/click.ogg', 10, 1)
|
||||
worn_by.visible_message("<span class='notice'>[worn_by] is released from the parole jumpsuit.</span>")
|
||||
|
||||
/obj/item/clothing/under/color/yellow/parole/proc/lock(var/obj/item/weapon/card/id/D)
|
||||
worn_by = loc
|
||||
flags |= NODROP
|
||||
parole_locked = 1
|
||||
desc = desc_locked
|
||||
parole_id = D
|
||||
parole_id.flags |= NODROP
|
||||
playsound(loc, 'sound/machines/click.ogg', 10, 1)
|
||||
worn_by.visible_message("<span class='danger'>[worn_by] is secured into the parole jumpsuit.</span>")
|
||||
|
||||
|
||||
|
||||
/obj/item/clothing/under/psyche
|
||||
name = "psychedelic jumpsuit"
|
||||
desc = "Groovy!"
|
||||
|
||||
Reference in New Issue
Block a user