From 92eabd4de7aecc28d91a79fda5e4a0b4644272d7 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Thu, 17 Sep 2020 06:10:03 +0200 Subject: [PATCH] [MIRROR] Makes visible messages not be obstructed by darkness if you're next to the source (#843) * Makes visible messages not be obstructed by darkness if you're next to the source (#53706) If you're doing emotes in full darkness right next to someone, then the person won't see them, despite seeing your mob, which is counter-intuitive. This fixes that issue * Makes visible messages not be obstructed by darkness if you're next to the source Co-authored-by: Azarak --- code/modules/mob/mob.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/mob/mob.dm b/code/modules/mob/mob.dm index 423f42cdda1..08b568817de 100644 --- a/code/modules/mob/mob.dm +++ b/code/modules/mob/mob.dm @@ -212,7 +212,7 @@ msg = blind_message else if(T != loc && T != src) //if src is inside something and not a turf. msg = blind_message - else if(T.lighting_object && T.lighting_object.invisibility <= M.see_invisible && T.is_softly_lit()) //if it is too dark. + else if(T.lighting_object && T.lighting_object.invisibility <= M.see_invisible && T.is_softly_lit() && !in_range(T,M)) //if it is too dark, unless we're right next to them. msg = blind_message if(!msg) continue