Skip to content

Commit

Permalink
tweak(emote): removes italics from emotes
Browse files Browse the repository at this point in the history
  • Loading branch information
TobyThorne authored Mar 25, 2024
1 parent 8ee45f2 commit e824b3b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions code/modules/emotes/emote.dm
Original file line number Diff line number Diff line change
Expand Up @@ -146,14 +146,14 @@ GLOBAL_LIST_INIT(all_emotes, list(); for(var/emotepath in subtypesof(/datum/emot

var/msg_1p = get_emote_message_1p(user, target, additional_params)
var/text_3p = get_emote_message_3p(user, target, additional_params)
var/msg_3p = text_3p ? "<b>[user]</b> <i>[text_3p]</i>" : null
var/msg_3p = text_3p ? "<b>[user]</b> [text_3p]" : null
var/range = !isnull(emote_range) ? emote_range : world.view
var/impaired_msg = get_impaired_msg(user)
if(impaired_msg)
if(message_type & VISIBLE_MESSAGE)
impaired_msg = "<i>[impaired_msg]</i>"
else if(message_type & AUDIBLE_MESSAGE)
impaired_msg = "<b>[user]</b> <i>[impaired_msg]</i>"
impaired_msg = "<b>[user]</b> [impaired_msg]"

if(!msg_1p)
msg_1p = msg_3p
Expand Down
4 changes: 2 additions & 2 deletions code/modules/emotes/emote_mob.dm
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@
message += "."

if(findtext(message, "^"))
message = "<i>[capitalize(replacetext(message, regex(@"\^+", "g"), user_name))]</i>"
message = "[capitalize(replacetext(message, regex(@"\^+", "g"), user_name))]"
else
message = "[user_name] <i>[message]</i>"
message = "[user_name] [message]"

if(message_type & VISIBLE_MESSAGE)
visible_message(message, checkghosts = /datum/client_preference/ghost_sight)
Expand Down

0 comments on commit e824b3b

Please sign in to comment.