From 371ade083206697bc9d9ff1e68837ed712a5eef3 Mon Sep 17 00:00:00 2001 From: SkyMarshal Date: Sun, 18 Mar 2012 12:07:38 -0700 Subject: [PATCH] Whoops --- code/WorkInProgress/SkyMarshal/portalathe.dm | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 code/WorkInProgress/SkyMarshal/portalathe.dm 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