From e420122ae69f71ef4f80be677de508bafe72c8c0 Mon Sep 17 00:00:00 2001 From: nikothedude <59709059+nikothedude@users.noreply.github.com> Date: Thu, 13 Jan 2022 17:59:44 -0500 Subject: [PATCH] Allows emotes to be uppercase by changing early lowertext() (#63909) Makes the message of emotes not lowercase by moving the lowertext(act) in emote.dm lower. And yes, it still recognizes emotes. *coUGH will still happen. For the guys up here, mainly code cleanup. This PR was originally made for skyrat, because there you can press T and then type "*me blah blah blah". Due to the way this works, before this PR, you couldn't put any capitalization after *me because it'd lowercase it. --- code/modules/mob/emote.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/mob/emote.dm b/code/modules/mob/emote.dm index 3e532c829c9..d7b77a4f98d 100644 --- a/code/modules/mob/emote.dm +++ b/code/modules/mob/emote.dm @@ -13,13 +13,13 @@ //The code execution of the emote datum is located at code/datums/emotes.dm /mob/proc/emote(act, m_type = null, message = null, intentional = FALSE, force_silence = FALSE) - act = lowertext(act) var/param = message var/custom_param = findchar(act, " ") if(custom_param) param = copytext(act, custom_param + length(act[custom_param])) act = copytext(act, 1, custom_param) + act = lowertext(act) var/list/key_emotes = GLOB.emote_list[act] if(!length(key_emotes))