RIG helmets can now be used as flashlights, just like hardhats. Credit to Sly for the sprites.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3638 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
ericgfwong@hotmail.com
2012-05-22 20:24:52 +00:00
parent 4472f88404
commit 146475ebbd
7 changed files with 44 additions and 5 deletions
+26
View File
@@ -161,6 +161,32 @@
user.UpdateLuminosity()
src.sd_SetLuminosity(brightness_on)
//RIG helmet light
/obj/item/clothing/head/helmet/space/rig/attack_self(mob/user)
if(!isturf(user.loc))
user << "You cannot turn the light on while in this [user.loc]" //To prevent some lighting anomalities.
return
on = !on
icon_state = "rig[on]-[color]"
item_state = "rig[on]-[color]"
if(on)
user.total_luminosity += brightness_on
else
user.total_luminosity -= brightness_on
/obj/item/clothing/head/helmet/space/rig/pickup(mob/user)
if(on)
user.total_luminosity += brightness_on
user.UpdateLuminosity()
src.sd_SetLuminosity(0)
/obj/item/clothing/head/helmet/space/rig/dropped(mob/user)
if(on)
user.total_luminosity -= brightness_on
user.UpdateLuminosity()
src.sd_SetLuminosity(brightness_on)
// the desk lamps are a bit special
/obj/item/device/flashlight/lamp
name = "desk lamp"