diff --git a/code/modules/power/lighting.dm b/code/modules/power/lighting.dm index 3075773e553..96f943f05f2 100644 --- a/code/modules/power/lighting.dm +++ b/code/modules/power/lighting.dm @@ -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()