mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-22 21:38:47 +01:00
3f62424312
This has zero reason to exist in our code base. We have no procs or variables tied to this. I removed it to make future modifications cleaner. --------- Signed-off-by: Cody Brittain <1779662+Generalcamo@users.noreply.github.com>
36 lines
1.1 KiB
Plaintext
36 lines
1.1 KiB
Plaintext
/obj/item/pipe_painter
|
|
name = "pipe painter"
|
|
icon = 'icons/obj/item/pipe_painter.dmi'
|
|
icon_state = "pipe_painter"
|
|
item_state = "pipe_painter"
|
|
var/list/modes
|
|
var/mode
|
|
|
|
/obj/item/pipe_painter/feedback_hints(mob/user, distance, is_adjacent)
|
|
. += ..()
|
|
. += "It is in [mode] mode."
|
|
|
|
/obj/item/pipe_painter/New()
|
|
..()
|
|
modes = new()
|
|
for(var/C in GLOB.pipe_colors)
|
|
modes += "[C]"
|
|
mode = pick(modes)
|
|
|
|
/obj/item/pipe_painter/afterattack(var/atom/A, var/mob/user, proximity)
|
|
if(!proximity)
|
|
return
|
|
if(!in_range(user, A))
|
|
return
|
|
else if(is_type_in_list(A, list(/obj/machinery/atmospherics/pipe/tank, /obj/machinery/atmospherics/pipe/simple/heat_exchanging)))
|
|
return
|
|
else if(istype(A,/obj/machinery/atmospherics/pipe))
|
|
var/obj/machinery/atmospherics/pipe/P = A
|
|
P.change_color(GLOB.pipe_colors[mode])
|
|
else if(istype(A, /obj/item/pipe) && pipe_color_check(GLOB.pipe_colors[mode]))
|
|
var/obj/item/pipe/P = A
|
|
P.color = GLOB.pipe_colors[mode]
|
|
|
|
/obj/item/pipe_painter/attack_self(var/mob/user)
|
|
mode = tgui_input_list(user, "Which colour do you want to use?", "Pipe Painter", modes, mode)
|