/obj/item/pipe_painter name = "pipe painter" desc = "Used for coloring pipes, unsurprisingly." icon = 'icons/obj/service/bureaucracy.dmi' icon_state = "labeler1" inhand_icon_state = null item_flags = NOBLUDGEON var/paint_color = "grey" custom_materials = list(/datum/material/iron = SHEET_MATERIAL_AMOUNT * 2.5, /datum/material/glass = SHEET_MATERIAL_AMOUNT) /obj/item/pipe_painter/interact_with_atom(atom/interacting_with, mob/living/user, list/modifiers) if(istype(interacting_with, /obj/machinery/atmospherics)) var/obj/machinery/atmospherics/target_pipe = interacting_with target_pipe.paint(GLOB.pipe_paint_colors[paint_color]) playsound(src, 'sound/machines/click.ogg', 50, TRUE) balloon_alert(user, "painted in [paint_color] color") return ITEM_INTERACT_SUCCESS if(istype(interacting_with, /obj/item/pipe)) var/obj/item/pipe/target_pipe = interacting_with var/color = GLOB.pipe_paint_colors[paint_color] target_pipe.pipe_color = color target_pipe.add_atom_colour(color, FIXED_COLOUR_PRIORITY) playsound(src, 'sound/machines/click.ogg', 50, TRUE) balloon_alert(user, "painted in [paint_color] color") return ITEM_INTERACT_SUCCESS return NONE /obj/item/pipe_painter/attack_self(mob/user) paint_color = tgui_input_list(user, "Which colour do you want to use?", "Pipe painter", GLOB.pipe_paint_colors) /obj/item/pipe_painter/examine(mob/user) . = ..() . += span_notice("It is set to [paint_color].")