mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 02:34:00 +00:00
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.
13 lines
258 B
Plaintext
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
|
|
|
|
. = ..() |