* not code stuff * other things * global vars, defines, helpers * onclick hud stuff, orphans, world.dm * controllers and datums * game folder * everything not client/mobs in modules * client folder * stage 1 mob stuff * simple animal things * silicons * carbon things * ayylmaos and monkeys * hyoomahn * icons n shit * sprite fixes * compile fixes * some fixes I cherrypicked. * qdel fixes * forgot brain refractors
24 lines
604 B
Plaintext
24 lines
604 B
Plaintext
/area
|
|
luminosity = TRUE
|
|
var/dynamic_lighting = DYNAMIC_LIGHTING_ENABLED
|
|
|
|
/area/proc/set_dynamic_lighting(var/new_dynamic_lighting = DYNAMIC_LIGHTING_ENABLED)
|
|
if (new_dynamic_lighting == dynamic_lighting)
|
|
return FALSE
|
|
|
|
dynamic_lighting = new_dynamic_lighting
|
|
|
|
if (IS_DYNAMIC_LIGHTING(src))
|
|
cut_overlay(/obj/effect/fullbright)
|
|
for (var/turf/T in area_contents(src))
|
|
if (IS_DYNAMIC_LIGHTING(T))
|
|
T.lighting_build_overlay()
|
|
|
|
else
|
|
add_overlay(/obj/effect/fullbright)
|
|
for (var/turf/T in area_contents(src))
|
|
if (T.lighting_object)
|
|
T.lighting_clear_overlay()
|
|
|
|
return TRUE
|