mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
Use Siemens, you dolts. This is the start of completely redoing the flag system, but it starts with removing these oldcode flags.
48 lines
1.3 KiB
Plaintext
48 lines
1.3 KiB
Plaintext
/obj/item/assembly/shock_kit
|
|
name = "electrohelmet assembly"
|
|
desc = "This appears to be made from both an electropack and a helmet."
|
|
icon_state = "shock_kit"
|
|
var/obj/item/clothing/head/helmet/part1 = null
|
|
var/obj/item/device/radio/electropack/part2 = null
|
|
var/status = 0
|
|
w_class = 5.0
|
|
flags = FPRINT | TABLEPASS
|
|
siemens_coefficient = 1
|
|
|
|
/obj/item/assembly/shock_kit/Destroy()
|
|
del(part1)
|
|
del(part2)
|
|
..()
|
|
return
|
|
|
|
/obj/item/assembly/shock_kit/attackby(obj/item/weapon/W as obj, mob/user as mob)
|
|
if(istype(W, /obj/item/weapon/wrench) && !status)
|
|
var/turf/T = loc
|
|
if(ismob(T))
|
|
T = T.loc
|
|
part1.loc = T
|
|
part2.loc = T
|
|
part1.master = null
|
|
part2.master = null
|
|
part1 = null
|
|
part2 = null
|
|
del(src)
|
|
return
|
|
if(istype(W, /obj/item/weapon/screwdriver))
|
|
status = !status
|
|
user << "<span class='notice'>[src] is now [status ? "secured" : "unsecured"]!</span>"
|
|
add_fingerprint(user)
|
|
return
|
|
|
|
/obj/item/assembly/shock_kit/attack_self(mob/user as mob)
|
|
part1.attack_self(user, status)
|
|
part2.attack_self(user, status)
|
|
add_fingerprint(user)
|
|
return
|
|
|
|
/obj/item/assembly/shock_kit/receive_signal()
|
|
if(istype(loc, /obj/structure/stool/bed/chair/e_chair))
|
|
var/obj/structure/stool/bed/chair/e_chair/C = loc
|
|
C.shock()
|
|
return
|