mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-01-01 05:02:33 +00:00
* wrench a bunch of acts * atmospherics * some last few things * last iswrench changes for anything that isn't construction * Update code/game/machinery/pipe/pipe_construction.dm Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com> Signed-off-by: Luc <89928798+lewcc@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com> Signed-off-by: Luc <89928798+lewcc@users.noreply.github.com> * thank you dgamer * oopsie daisy * tests and addresses some introduced bugs * proper testing * proper ci * Update code/game/objects/structures/fluff.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> Signed-off-by: Luc <89928798+lewcc@users.noreply.github.com> * Update code/game/objects/structures/fluff.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> Signed-off-by: Luc <89928798+lewcc@users.noreply.github.com> * thank you burza 🙏 Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> Signed-off-by: Luc <89928798+lewcc@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> Signed-off-by: DGamerL <108773801+DGamerL@users.noreply.github.com> * Update code/modules/recycling/disposal-construction.dm Signed-off-by: DGamerL <108773801+DGamerL@users.noreply.github.com> --------- Signed-off-by: Luc <89928798+lewcc@users.noreply.github.com> Signed-off-by: DGamerL <108773801+DGamerL@users.noreply.github.com> Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com> Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com>
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 = '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/wrench_act(mob/living/user, obj/item/I)
|
|
if(status)
|
|
return
|
|
. = TRUE
|
|
var/turf/T = get_turf(src)
|
|
part1?.forceMove(T)
|
|
part2?.forceMove(T)
|
|
part1?.master = null
|
|
part2?.master = null
|
|
part1 = null
|
|
part2 = null
|
|
visible_message("<span class='notice'>[user] disassembles [src].</span>")
|
|
qdel(src)
|
|
return TRUE
|
|
|
|
/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()
|