* Maps and things no code/icons * helpers defines globalvars * Onclick world.dm orphaned_procs * subsystems Round vote and shuttle autocall done here too * datums * Game folder * Admin - chatter modules * clothing - mining * modular computers - zambies * client * mob level 1 * mob stage 2 + simple_animal * silicons n brains * mob stage 3 + Alien/Monkey * human mobs * icons updated * some sounds * emitter y u no commit * update tgstation.dme * compile fixes * travis fixes Also removes Fast digest mode, because reasons. * tweaks for travis Mentors are broke again Also fixes Sizeray guns * oxygen loss fix for vore code. * removes unused code * some code updates * bulk fixes * further fixes * outside things * whoops. * Maint bar ported * GLOBs.
30 lines
749 B
Plaintext
30 lines
749 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
|
|
|
|
/area/vv_edit_var(var_name, var_value)
|
|
switch(var_name)
|
|
if("dynamic_lighting")
|
|
set_dynamic_lighting(var_value)
|
|
return TRUE
|
|
return ..() |