Second part of UltraLight. Some fixed up fire stuff.

This commit is contained in:
SkyMarshal
2012-06-18 17:52:40 -07:00
parent aeb850fef0
commit 692fdc724e
11 changed files with 132 additions and 114 deletions
+2 -2
View File
@@ -83,7 +83,7 @@
var/area/A = src.loc.loc
brightness = A.area_lights_luminosity
else
brightness = rand(6,9)
brightness = rand(5,7)
if(prob(10))
broken(1)
if("bulb")
@@ -123,7 +123,7 @@
var/oldlum = luminosity
//luminosity = on * brightness
ul_SetLuminosity(on * brightness, on * brightness, ( fitting == "tube" ? on * brightness : 0 ) ) // *DAL*
ul_SetLuminosity(on * brightness, on * brightness, ( fitting != "bulb" ? on * brightness : on ) ) // *DAL*
// if the state changed, inc the switching counter
if(oldlum != luminosity)