[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 <azarak10@gmail.com>
This commit is contained in:
SkyratBot
2020-09-17 06:10:03 +02:00
committed by GitHub
co-authored by Azarak
parent 786faaaf39
commit 92eabd4de7
+1 -1
View File
@@ -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