mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-20 19:44:09 +01:00
Reduction of number of ul_Illuminate and ul_Extinguish calls. (@Miniature) Also fixed a bug with the SMES room lighting.
This commit is contained in:
@@ -278,9 +278,12 @@ atom/Del()
|
||||
. = ..()
|
||||
|
||||
atom/movable/Move()
|
||||
ul_Extinguish()
|
||||
. = ..()
|
||||
ul_Illuminate()
|
||||
if(LuminosityRed || LuminosityGreen || LuminosityBlue)
|
||||
ul_Extinguish()
|
||||
. = ..()
|
||||
ul_Illuminate()
|
||||
else
|
||||
return ..()
|
||||
|
||||
|
||||
turf/var/list/MaxRed
|
||||
|
||||
@@ -37,8 +37,8 @@
|
||||
power_light = 0//rastaf0
|
||||
power_equip = 0//rastaf0
|
||||
power_environ = 0//rastaf0
|
||||
luminosity = 1
|
||||
ul_Lighting = 0
|
||||
if(!ul_Lighting)
|
||||
luminosity = 1
|
||||
else
|
||||
luminosity = 0
|
||||
area_lights_luminosity = rand(6,7)
|
||||
|
||||
Reference in New Issue
Block a user