mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-14 11:42:27 +00:00
Co-authored-by: TiviPlus <57223640+TiviPlus@users.noreply.github.com> Co-authored-by: Gandalf <jzo123@hotmail.com>
34 lines
1.1 KiB
Plaintext
34 lines
1.1 KiB
Plaintext
|
|
GLOBAL_DATUM_INIT(fullbright_overlay, /mutable_appearance, create_fullbright_overlay())
|
|
|
|
/proc/create_fullbright_overlay()
|
|
var/mutable_appearance/lighting_effect = mutable_appearance('icons/effects/alphacolors.dmi', "white")
|
|
lighting_effect.plane = LIGHTING_PLANE
|
|
lighting_effect.layer = LIGHTING_PRIMARY_LAYER
|
|
lighting_effect.blend_mode = BLEND_ADD
|
|
return lighting_effect
|
|
|
|
/area
|
|
///Whether this area allows static lighting and thus loads the lighting objects
|
|
var/static_lighting = TRUE
|
|
|
|
//Non static lighting areas.
|
|
//Any lighting area that wont support static lights.
|
|
//These areas will NOT have corners generated.
|
|
|
|
///regenerates lighting objects for turfs in this area, primary use is VV changes
|
|
/area/proc/create_area_lighting_objects()
|
|
for(var/turf/T in src)
|
|
if(T.always_lit)
|
|
continue
|
|
T.lighting_build_overlay()
|
|
CHECK_TICK
|
|
|
|
///Removes lighting objects from turfs in this area if we have them, primary use is VV changes
|
|
/area/proc/remove_area_lighting_objects()
|
|
for(var/turf/T in src)
|
|
if(T.always_lit)
|
|
continue
|
|
T.lighting_clear_overlay()
|
|
CHECK_TICK
|