Fixes weird banding on mineral turfs adjacent to space (on the bottom z level) (#96997)

## About The Pull Request

You need to block emissives for starlight to color you, and this turf
isn't well, doing that.

So we should do that.

This is hot code, which is why I have guard checks like I do. It's about
0.2-0.3 seconds of init on my machine, somewhere in there at least.

## Why It's Good For The Game

This bugs me a lot

## Changelog
🆑
fix: Starlight will light rock walls adjacent to space... better.
/🆑
This commit is contained in:
LemonInTheDark
2026-07-17 12:47:05 +02:00
committed by GitHub
parent 41ba82eada
commit ffc4b692f6
+11
View File
@@ -204,6 +204,17 @@
scan_state_overlay.pixel_y = 224
scan_overlay.add_overlay(scan_state_overlay)
/turf/closed/mineral/set_smoothed_icon_state(new_junction)
var/old_junction = smoothing_junction
. = ..()
if(new_junction != ALL_SMOOTHING_JUNCTIONS || (!isnull(old_junction) && old_junction != new_junction))
update_appearance(UPDATE_OVERLAYS)
/turf/closed/mineral/update_overlays()
. = ..()
if(smoothing_junction != ALL_SMOOTHING_JUNCTIONS)
. += fast_emissive_blocker(src)
/turf/closed/mineral/get_smooth_underlay_icon(mutable_appearance/underlay_appearance, turf/asking_turf, adjacency_dir)
if(turf_type)
underlay_appearance.icon = initial(turf_type.icon)