Skip to content

Commit

Permalink
Emote formatter returns a list
Browse files Browse the repository at this point in the history
  • Loading branch information
Arokha committed May 30, 2021
1 parent 70ea101 commit e018309
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions code/modules/emotes/emote_mob.dm
Expand Up @@ -149,7 +149,7 @@
subtext = html_encode(subtext)
// Store the player's name in a nice bold, naturalement
nametext = "<B>[emoter]</B>"
return pretext + nametext + subtext
return list("pretext" = pretext, "nametext" = nametext, "subtext" = subtext)

/mob/proc/custom_emote(var/m_type = VISIBLE_MESSAGE, var/message, var/range = world.view)

Expand All @@ -163,8 +163,10 @@
else
input = message

var/list/formatted
if(input)
message = format_emote(src, message)
formatted = format_emote(src, message)
message = formatted["pretext"] + formatted["nametext"] + formatted["subtext"]
else
return

Expand Down

0 comments on commit e018309

Please sign in to comment.