Files
CHOMPStation2/code/modules/power/lighting_ch.dm
Raeschen 2ff4088bd3 Adds a light painter device, adds to Autolathe.
Creates a Light Painter device.
Use the device to assign a color. Use again to reset to default color. Click on any light fixture to apply.

Simple.
2022-04-04 23:45:55 +02:00

13 lines
258 B
Plaintext

/obj/machinery/light/attackby(obj/item/W, mob/user)
//Light painter code
if(istype(W, /obj/item/device/lightpainter))
var/obj/item/device/lightpainter/LP = W
if(isliving(user))
var/mob/living/U = user
LP.ColorLight(src, U)
return
. = ..()