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.
This commit is contained in:
nikothedude
2022-01-13 14:59:44 -08:00
committed by GitHub
parent 8b1cec3705
commit e420122ae6
+1 -1
View File
@@ -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))