Ports some old TG lighting + opacity refactors (#29724)

* lighting ports

* missed these

* fix

* tweak optical scanners

* Update code/datums/elements/light_blocking.dm

Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com>
Signed-off-by: kyunkyunkyun <120701975+kyunkyunkyun@users.noreply.github.com>

---------

Signed-off-by: Burzah <116982774+Burzah@users.noreply.github.com>
Signed-off-by: kyunkyunkyun <120701975+kyunkyunkyun@users.noreply.github.com>
Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com>
Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com>
This commit is contained in:
kyunkyunkyun
2025-09-08 19:25:37 +00:00
committed by GitHub
co-authored by Contrabang Burzah
parent d175f3d1e4
commit 6862135913
41 changed files with 456 additions and 506 deletions
-4
View File
@@ -11,10 +11,6 @@
abstract_move(T1)
return 1
/atom/movable/lighting_object/onShuttleMove(turf/oldT, turf/T1, rotation, mob/calling_mob)
// lighting objects should not be moved from their parent turfs
return 0
/obj/effect/landmark/shuttle_import/onShuttleMove()
// Used for marking where to preview/load shuttles
return 0
-6
View File
@@ -1122,13 +1122,7 @@
/turf/proc/copyTurf(turf/T)
if(T.type != type)
var/obj/O
if(length(underlays)) //we have underlays, which implies some sort of transparency, so we want to a snapshot of the previous turf as an underlay
O = new()
O.underlays.Add(T)
T.ChangeTurf(type, keep_icon = FALSE)
if(length(underlays))
T.underlays = O.underlays
if(T.icon_state != icon_state)
T.icon_state = icon_state
if(T.icon != icon)