anchor.diff:  
   /obj/item/device/flashlight/pickup(mob/user)
   	if(on)
  +		user.total_luminosity += brightness_on
   		src.sd_SetLuminosity(0)
  -		user.total_luminosity += brightness_on
   
   
   /obj/item/device/flashlight/dropped(mob/user)
  
positive.code: 
  /obj/item/clothing/head/helmet/hardhat/pickup(mob/user)
  	if(on)
  		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
  		src.sd_SetLuminosity(brightness_on)
  
negative.code: 		icon_on = "flight1"
  		icon_off = "flight0"
  
  /obj/item/device/flashlight/initialize()
  	..()
  	if (on)
  		icon_state = icon_on
  		src.sd_SetLuminosity(brightness_on)
  	else
  		icon_state = icon_off
  		src.sd_SetLuminosity(0)
  
  /obj/item/device/flashlight/proc/update_brightness(var/mob/user = null)
  	if (on)
  		icon_state = icon_on
  		if(src.loc == user)
  			user.total_luminosity += brightness_on
  		else if (isturf(src.loc))
  			src.sd_SetLuminosity(brightness_on)
  
  	else
  		icon_state = icon_off
  		if(src.loc == user)
  			user.total_luminosity -= brightness_on
  		else if (isturf(src.loc))
  			src.sd_SetLuminosity(0)
  
  /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
  	update_brightness(user)
  	return
  
  
  