diff --git a/code/WorkInProgress/SkyMarshal/portalathe.dm b/code/WorkInProgress/SkyMarshal/portalathe.dm new file mode 100644 index 00000000000..d00c96a054b --- /dev/null +++ b/code/WorkInProgress/SkyMarshal/portalathe.dm @@ -0,0 +1,18 @@ +//May expand later, but right now it just repairs lights. +/obj/item/device/portalathe + name = "\improper Portable Autolathe" + desc = "It blinks and has an antenna on it. It must be advanced." + icon_state = "t-ray0" + + afterattack(var/atom/target, mob/user as mob) + if(!target || !user) + return + if(!istype(target)) + return + if(!istype(target, /obj/machinery/light)) + return + var/obj/machinery/light/L = target + if(L.stat > 1) //Burned or broke + L.stat = 0 + user.visible_message("[user] repairs \the [target] on the spot with their [src]!","You repair the lightbulb!") + return \ No newline at end of file