mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-13 08:03:43 +01:00
Merge pull request #1418 from Fox-McCloud/light-power-fix
Lights Use Power
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user