Merge pull request #1418 from Fox-McCloud/light-power-fix

Lights Use Power
This commit is contained in:
TheDZD
2015-07-01 17:52:47 -04:00
+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()