ID:2651464
 
Problem description:

I'm having an issue where larger objects, such as trees and turfs that are larger than world.icon_size are showing up above the darkness plane, as seen below in this image.

https://i.imgur.com/LdIa51a.png

Now, a solution would be to move everything below the darkness plane, however I run into issues with the mob.sight variable where flags like SEE_MOBS, SEE_TURFS, and SEE_OBJS don't work since darkness just overrides them, and I need those flags to work in order for some abilities to properly function.

What can I do here?
It looks like the problem is that the "fade" effect is being shown based on opacity, like everything else. According to the reference, the black opacity tiles are drawn on plane 0. Putting your effects layer above that should fix it?

I don't know why the effects layer would mess with the sight flags. A code example would really help there
You could have the plane 0 rendered onto the lighting so it actually makes the appropriate squares dark.