mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-21 12:02:31 +01:00
Cable/Pipe Color Examining (#19041)
* Examining a pipe or cable will now display its color as text.   
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
/obj/item/device/pipe_painter/New()
|
||||
..()
|
||||
modes = new()
|
||||
for(var/C in pipe_colors)
|
||||
for(var/C in GLOB.pipe_colors)
|
||||
modes += "[C]"
|
||||
mode = pick(modes)
|
||||
|
||||
@@ -23,10 +23,10 @@
|
||||
return
|
||||
else if(istype(A,/obj/machinery/atmospherics/pipe))
|
||||
var/obj/machinery/atmospherics/pipe/P = A
|
||||
P.change_color(pipe_colors[mode])
|
||||
else if(istype(A, /obj/item/pipe) && pipe_color_check(pipe_colors[mode]))
|
||||
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 = pipe_colors[mode]
|
||||
P.color = GLOB.pipe_colors[mode]
|
||||
|
||||
/obj/item/device/pipe_painter/attack_self(var/mob/user)
|
||||
mode = tgui_input_list(user, "Which colour do you want to use?", "Pipe Painter", modes, mode)
|
||||
|
||||
Reference in New Issue
Block a user