mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 05:00:55 +01:00
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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user