From 726c54e92072a091a2c9a33b4947b2be8f6f5914 Mon Sep 17 00:00:00 2001 From: DOOM Date: Fri, 5 Apr 2024 13:46:33 -0700 Subject: [PATCH 1/2] Fixes notifications emitting light --- code/modules/mob/mob_helpers.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/modules/mob/mob_helpers.dm b/code/modules/mob/mob_helpers.dm index 6120b1d3e072..0b881cf9d0f7 100644 --- a/code/modules/mob/mob_helpers.dm +++ b/code/modules/mob/mob_helpers.dm @@ -639,6 +639,7 @@ GLOBAL_LIST_INIT(limb_types_by_name, list( screen_alert.desc = message screen_alert.action = action screen_alert.target = source + source.set_light_on(FALSE) if(!alert_overlay) alert_overlay = new(source) var/icon/source_icon = icon(source.icon) @@ -657,8 +658,8 @@ GLOBAL_LIST_INIT(limb_types_by_name, list( alert_overlay.layer = FLOAT_LAYER alert_overlay.plane = FLOAT_PLANE - screen_alert.overlays += alert_overlay + source.set_light_on(TRUE) /mob/proc/reset_lighting_alpha() SIGNAL_HANDLER From 5a5ec474814a9991c1306b297d85ab6fa52e9ca8 Mon Sep 17 00:00:00 2001 From: DOOM Date: Sat, 6 Apr 2024 13:29:03 -0700 Subject: [PATCH 2/2] yeah... --- code/modules/mob/mob_helpers.dm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/code/modules/mob/mob_helpers.dm b/code/modules/mob/mob_helpers.dm index 0b881cf9d0f7..184c259995a0 100644 --- a/code/modules/mob/mob_helpers.dm +++ b/code/modules/mob/mob_helpers.dm @@ -639,7 +639,6 @@ GLOBAL_LIST_INIT(limb_types_by_name, list( screen_alert.desc = message screen_alert.action = action screen_alert.target = source - source.set_light_on(FALSE) if(!alert_overlay) alert_overlay = new(source) var/icon/source_icon = icon(source.icon) @@ -658,8 +657,8 @@ GLOBAL_LIST_INIT(limb_types_by_name, list( alert_overlay.layer = FLOAT_LAYER alert_overlay.plane = FLOAT_PLANE + alert_overlay.underlays.Cut() screen_alert.overlays += alert_overlay - source.set_light_on(TRUE) /mob/proc/reset_lighting_alpha() SIGNAL_HANDLER