From 80822a1e96df9a04ad9a62bb92fa4e592b741198 Mon Sep 17 00:00:00 2001 From: VerySoft Date: Mon, 21 Aug 2023 15:14:08 -0400 Subject: [PATCH] Final --- code/modules/lighting/lighting_turf.dm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/code/modules/lighting/lighting_turf.dm b/code/modules/lighting/lighting_turf.dm index a6adc40bb3..47a604c0f4 100644 --- a/code/modules/lighting/lighting_turf.dm +++ b/code/modules/lighting/lighting_turf.dm @@ -97,11 +97,17 @@ ///Setter for the byond luminosity var /turf/proc/set_luminosity(new_luminosity, force) if((is_outdoors() && !force) || outdoors_adjacent) - if((z in SSplanets.z_to_planet) || (z in fake_sunlight_zs)) //These are both systems that handle the lighting on their own, so let's not interfere + if(check_for_sun()) //If another system handles our lighting, don't interfere return luminosity = new_luminosity +///Checks planets and fake_suns to see if our turf should be handled by either +/turf/proc/check_for_sun() + if((z in SSplanets.z_to_planet) || (z in fake_sunlight_zs)) + return TRUE + return FALSE + ///Calculate on which directions this turfs block view. /turf/proc/recalculate_directional_opacity() . = directional_opacity