mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-20 15:21:29 +00:00
* screwdriver_act my beloved
* convert to returns instead of . / lewcc review
* it will be done
* i'm a little bit stupid, but now time to test
* sometimes I get excited and press the commit
* The great test has been completed
* oh wow oh wow, lewc review
* found one last one
* Steel review
* Lewc review
* quick sirryan review
* removes stupid comments (old coders I blame)
* sirryan review two
* whoops...
* hal review
* the fix to the fix to the fix
* Revert "the fix to the fix to the fix"
FUCK I pushed to the wrong branch
This reverts commit a96fe98781.
46 lines
1.2 KiB
Plaintext
46 lines
1.2 KiB
Plaintext
/obj/item/assembly/shock_kit
|
|
name = "electrohelmet assembly"
|
|
desc = "This appears to be made from both an electropack and a helmet."
|
|
icon = 'icons/obj/assemblies.dmi'
|
|
icon_state = "shock_kit"
|
|
var/obj/item/clothing/head/helmet/part1 = null
|
|
var/obj/item/electropack/part2 = null
|
|
var/status = FALSE
|
|
w_class = WEIGHT_CLASS_HUGE
|
|
flags = CONDUCT
|
|
|
|
/obj/item/assembly/shock_kit/Destroy()
|
|
QDEL_NULL(part1)
|
|
QDEL_NULL(part2)
|
|
return ..()
|
|
|
|
/obj/item/assembly/shock_kit/attackby(obj/item/W as obj, mob/user as mob, params)
|
|
if(istype(W, /obj/item/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
|
|
qdel(src)
|
|
|
|
/obj/item/assembly/shock_kit/screwdriver_act(mob/user, obj/item/I)
|
|
status = !status
|
|
to_chat(user, "<span class='notice'>[src] is now [status ? "secured" : "unsecured"]!</span>")
|
|
add_fingerprint(user)
|
|
return TRUE
|
|
|
|
/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/proc/shock_invoke()
|
|
if(istype(loc, /obj/structure/chair/e_chair))
|
|
var/obj/structure/chair/e_chair/C = loc
|
|
C.shock()
|