mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-19 14:51:27 +00:00
* no more spaces * Matthew 10:22 * fixes * dgamerl review * Update code/modules/hydroponics/plant_genes.dm Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com> * Update code/modules/mob/living/simple_animal/bot/ed209bot.dm * Update code/modules/mob/mob.dm * Update code/modules/mob/mob.dm * Update code/modules/mob/mob.dm * Update code/modules/mob/mob.dm * Update code/modules/mob/mob.dm * Update code/modules/pda/PDA.dm Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com> * fuck * bah * Update tools/ci/check_grep2.py Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com> * oops * guh --------- Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com>
31 lines
710 B
Plaintext
31 lines
710 B
Plaintext
/area
|
|
luminosity = TRUE
|
|
var/dynamic_lighting = DYNAMIC_LIGHTING_ENABLED
|
|
|
|
/area/proc/set_dynamic_lighting(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 src)
|
|
if(IS_DYNAMIC_LIGHTING(T))
|
|
T.lighting_build_overlay()
|
|
|
|
else
|
|
add_overlay(/obj/effect/fullbright)
|
|
for(var/turf/T in 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 ..()
|