mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-24 09:03:05 +00:00
32 lines
1.1 KiB
Plaintext
32 lines
1.1 KiB
Plaintext
/obj/item/device/pipe_painter
|
|
name = "pipe painter"
|
|
desc = "Used to apply a even coat of paint to pipes. Atmospheric usage reccomended."
|
|
icon = 'icons/obj/bureaucracy.dmi'
|
|
icon_state = "labeler1"
|
|
var/list/modes
|
|
var/mode
|
|
|
|
/obj/item/device/pipe_painter/New()
|
|
..()
|
|
modes = new()
|
|
for(var/C in pipe_colors)
|
|
modes += "[C]"
|
|
mode = pick(modes)
|
|
|
|
/obj/item/device/pipe_painter/afterattack(atom/A, mob/user as mob, proximity)
|
|
if(!proximity)
|
|
return
|
|
|
|
if(!istype(A,/obj/machinery/atmospherics/pipe) || istype(A,/obj/machinery/atmospherics/pipe/tank) || istype(A,/obj/machinery/atmospherics/pipe/vent) || istype(A,/obj/machinery/atmospherics/pipe/simple/heat_exchanging) || istype(A,/obj/machinery/atmospherics/pipe/simple/insulated) || !in_range(user, A))
|
|
return
|
|
var/obj/machinery/atmospherics/pipe/P = A
|
|
|
|
P.change_color(pipe_colors[mode])
|
|
|
|
/obj/item/device/pipe_painter/attack_self(mob/user as mob)
|
|
mode = input("Which colour do you want to use?", "Pipe painter", mode) in modes
|
|
|
|
/obj/item/device/pipe_painter/examine(mob/user)
|
|
. = ..()
|
|
. += "It is in [mode] mode."
|