anchor.diff:  
   /obj/item/clothing/head/helmet/hardhat/pickup(mob/user)
   	if(on)
  +		user.total_luminosity += brightness_on
  +		user.UpdateLuminosity()
   		src.sd_SetLuminosity(0)
  -		user.total_luminosity += brightness_on
   
   /obj/item/clothing/head/helmet/hardhat/dropped(mob/user)
   	if(on)
   		user.total_luminosity -= brightness_on
  +		user.UpdateLuminosity()
   		src.sd_SetLuminosity(brightness_on)
  +
  +/obj/item/device/flashlight/lamp/verb/toggle_light()
  +	set name = "Toggle light"
  +	set category = "Object"
  +	set src in oview(1)
  +
  +	if(!usr.stat)
  +		attack_self(usr)
positive.code: 		icon_on = "flight1"
  		icon_off = "flight0"
  
  
  /obj/item/device/flashlight/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
  	if (on)
  		icon_state = icon_on
  		user.total_luminosity += brightness_on
  	else
  		icon_state = icon_off
  		user.total_luminosity -= brightness_on
  	return
  
  
  
negative.code: 
  /obj/item/device/flashlight/pickup(mob/user)
  	if(on)
  		user.total_luminosity += brightness_on
  		src.sd_SetLuminosity(0)
  
  
  /obj/item/device/flashlight/dropped(mob/user)
  