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
+1 -2
View File
@@ -102,7 +102,6 @@
*/
/obj/structure/alien/resin/door
name = "resin door"
icon = 'icons/obj/smooth_structures/alien/resin_door.dmi'
icon_state = "resin"
base_icon_state = "resin"
@@ -187,7 +186,7 @@
playsound(loc, close_sound, 50, 1)
flick("[initial_state]closing", src)
density = !density
opacity = !opacity
set_opacity(!opacity)
state_open = !state_open
addtimer(CALLBACK(src, PROC_REF(operate_update), bumped_open), 1 SECONDS)
+1 -1
View File
@@ -135,7 +135,7 @@
/obj/structure/curtain/update_overlays()
. = ..()
if(!assembled)
opacity = FALSE
set_opacity(FALSE)
return
if(opacity)
+2 -2
View File
@@ -433,7 +433,7 @@
. = ..()
if(icon_state == "random-alien")
icon_state = "alien-[rand(1,8)]"
/obj/item/kirbyplants/large/alien/alien1
icon_state = "alien-1"
/obj/item/kirbyplants/large/alien/alien3
@@ -519,7 +519,7 @@
/obj/structure/bush/Initialize(mapload)
. = ..()
if(prob(20))
opacity = TRUE
set_opacity(TRUE)
/*
/obj/structure/bush/Bumped(M as mob)
@@ -101,7 +101,7 @@
/obj/structure/mineral_door/proc/operate_update()
density = !density
opacity = !opacity
set_opacity(!opacity)
state_open = !state_open
recalculate_atmos_connectivity()
update_icon(UPDATE_ICON_STATE)