Lights Use Power

This commit is contained in:
Fox-McCloud
2015-06-29 21:15:22 -04:00
parent 62d8435b12
commit 246aff600e
+4 -4
View File
@@ -256,7 +256,7 @@
use_power = 1
set_light(0)
active_power_usage = ((light_range + light_power) * 10)
active_power_usage = brightness_range * 10
if(on != on_gs)
on_gs = on
@@ -564,11 +564,11 @@
#define LIGHTING_POWER_FACTOR 20 //20W per unit luminosity
/*
/obj/machinery/light/process()//TODO: remove/add this from machines to save on processing as needed ~Carn PRIORITY
if(on)
use_power(light_range * LIGHTING_POWER_FACTOR, LIGHT)
*/
use_power(brightness_range * LIGHTING_POWER_FACTOR, LIGHT)
// called when area power state changes
/obj/machinery/light/power_change()