mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-24 17:11:22 +00:00
/obj/effects is now /obj/effect. /obj/station_objects is now /obj/structure. Did a bit of minor blob work. The Bay 12 body bags were replaced with closets because having two sets of code that do almost the same thing is silly. Changed back a few of the last jobproc edits as the remove from list before assign was a check to see if the mob was fucked up and if it was remove it so we did not check it again as it would still be fucked up. The medbay/tox monkeys names are random once more. More random name monkeys will help with changeling and clean up the observe/mob menus. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2324 316c924e-a436-60f5-8080-3fe189b3f50e
57 lines
1.5 KiB
Plaintext
57 lines
1.5 KiB
Plaintext
/obj/item/assembly/shock_kit
|
|
name = "Shock Kit"
|
|
desc = "This appears to be made from both an Electric Pack 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.0
|
|
w_class = 5.0
|
|
flags = FPRINT | TABLEPASS| CONDUCT
|
|
|
|
/obj/item/assembly/shock_kit/Del()
|
|
//src.part1 = null
|
|
del(src.part1)
|
|
//src.part2 = null
|
|
del(src.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) && !( src.status )))
|
|
var/turf/T = src.loc
|
|
if (ismob(T))
|
|
T = T.loc
|
|
src.part1.loc = T
|
|
src.part2.loc = T
|
|
src.part1.master = null
|
|
src.part2.master = null
|
|
src.part1 = null
|
|
src.part2 = null
|
|
del(src)
|
|
return
|
|
if (!( istype(W, /obj/item/weapon/screwdriver) ))
|
|
return
|
|
src.status = !( src.status )
|
|
if (!src.status)
|
|
user.show_message("\blue The shock pack is now secured!", 1)
|
|
else
|
|
user.show_message("\blue The shock pack is now unsecured!", 1)
|
|
src.add_fingerprint(user)
|
|
return
|
|
|
|
/obj/item/assembly/shock_kit/attack_self(mob/user as mob)
|
|
src.part1.attack_self(user, src.status)
|
|
src.part2.attack_self(user, src.status)
|
|
src.add_fingerprint(user)
|
|
return
|
|
|
|
/obj/item/assembly/shock_kit/receive_signal()
|
|
//*****
|
|
//world << "Shock kit got r_signal"
|
|
if (istype(src.loc, /obj/structure/stool/chair/e_chair))
|
|
var/obj/structure/stool/chair/e_chair/C = src.loc
|
|
//world << "Shock kit sending shock to EC"
|
|
C.shock()
|
|
return
|