Fixes luminosity checks

They should now be more in-line with how they worked under the old
lighting system.
This commit is contained in:
Krausus
2015-05-15 01:07:08 -04:00
parent eac7bb075c
commit f5f15881c2
9 changed files with 24 additions and 15 deletions
+2 -2
View File
@@ -64,9 +64,9 @@
var/turf/T = get_turf(src)
var/atom/movable/lighting_overlay/LO = locate(/atom/movable/lighting_overlay) in T
if(LO)
light_amount = max(0,min(10,LO.lum_r + LO.lum_g + LO.lum_b)-5)
light_amount = LO.get_clamped_lum(0.5)*10
else
light_amount = 5
light_amount = 10
if(light_amount > 2)
M << "<span class='warning'>It's too bright here to use [src.name]!</span>"