From 246aff600e15fe6b0a4ec23e5e14d870d6112bb8 Mon Sep 17 00:00:00 2001 From: Fox-McCloud Date: Mon, 29 Jun 2015 21:15:22 -0400 Subject: [PATCH] Lights Use Power --- code/modules/power/lighting.dm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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()