Skip to content

Commit

Permalink
Runechat mod: Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Danilcus-W committed May 3, 2024
1 parent caa58ab commit 1d549e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mods/_fd/runechat/code/client.dm
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
if(result[2] != "subtle")
runechat_message = result[1]

result[1] = replacetext(result[1], result[4], "<b>[A]</b>" + result[4])
result[1] = replacetext(result[1], result[4], "<b>[A]</b> " + result[4])

A.visible_message(result[1], result[1], runemessage = runechat_message)
log_and_message_staff(" - VisibleNarrate [result[2]]/[result[3]] on [A]: [result[4]]")
Expand Down
4 changes: 2 additions & 2 deletions mods/_fd/runechat/code/message.dm
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
if (length(exclude_mobs) && (M in exclude_mobs))
exclude_mobs -= M
continue
M.show_message(message,2,deaf_message,1)
M.show_message(message, AUDIBLE_MESSAGE, deaf_message, VISIBLE_MESSAGE)
if(runemessage != -1)
M.create_chat_message(src, "[runemessage]", FALSE, list("emote"))

Expand All @@ -19,7 +19,7 @@
if (length(exclude_objs) && (O in exclude_objs))
exclude_objs -= O
continue
O.show_message(message,2,deaf_message,1)
O.show_message(message, AUDIBLE_MESSAGE, deaf_message, VISIBLE_MESSAGE)


/mob/audible_message(message, self_message, deaf_message, hearing_distance = world.view, checkghosts = null, narrate = FALSE, list/exclude_objs = null, list/exclude_mobs = null, runemessage = -1)
Expand Down

0 comments on commit 1d549e8

Please sign in to comment.