From 76dc95739f2fd8ddac9ce93485ed7ad42fa4a788 Mon Sep 17 00:00:00 2001 From: Superlagg Date: Fri, 14 Jun 2024 20:31:56 -0700 Subject: [PATCH] chore: Refactor mob.dm for improved message handling --- code/modules/mob/mob.dm | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/code/modules/mob/mob.dm b/code/modules/mob/mob.dm index 028bb6735fb..943477ae457 100644 --- a/code/modules/mob/mob.dm +++ b/code/modules/mob/mob.dm @@ -163,6 +163,8 @@ var/targetsaycolor = null if(!!target) targetsaycolor = target.get_chat_color() + if(!self_message) + self_message = message if(target_message && target && istype(target) && target.client) hearers -= target @@ -197,7 +199,9 @@ //This entire if/else chain could be in two lines but isn't for readabilty's sake. var/blind = M.is_blind() var/msg = message - if(M.see_invisible