Skip to content

Commit

Permalink
Prayer and USCM message visibility tweaks (#5046)
Browse files Browse the repository at this point in the history
# About the pull request

This PR adds one of the distinct, but hopefully not disruptive terminal
sounds to the message prompt mods/admins relieve when a player sends a
prayer and makes both the USCM emergency message prompts and prayer
prompts one size up from current font size and bolded for better
visibility.

Something something downstream improvement that really should be
upstream something.

# Explain why it's good for the game

Prayer visibility in particular has always been an issue, now not only
there is a sound, these messages are bolded and slightly bigger.


# Testing Photographs and Procedure
<details>
<summary>Screenshots & Videos</summary>

My font settings:

![image](https://github.com/cmss13-devs/cmss13/assets/103842328/8e57b411-9b31-4bd4-a71c-ef5ec3de4f10)

The messages, surrounding a regular prompt:


![image](https://github.com/cmss13-devs/cmss13/assets/103842328/f4b7577e-f9be-43be-8850-e86aacc53085)

The sound is sound\machines\terminal_alert.ogg


</details>


# Changelog
:cl:silencer_pl
admin: Recieving prayers now makes a sound
admin: Prayers and USCM emergency messages are now better highlighted
for mods/admins
/:cl:

---------

Co-authored-by: fira <[email protected]>
  • Loading branch information
silencer-pl and fira committed Dec 4, 2023
1 parent 9a8dbb6 commit 040f0a3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions code/modules/admin/verbs/pray.dm
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,22 @@
liaison = 1

if(liaison)
msg = SPAN_STAFF_IC("<b><font color=purple>LIAISON: </font>[key_name(src, 1)] [CC_MARK(src)] [ADMIN_PP(src)] [ADMIN_VV(src)] [ADMIN_SM(src)] [ADMIN_JMP_USER(src)] [ADMIN_SC(src)]:</b> [msg]")
msg = "<b><big>[SPAN_STAFF_IC("<font color=purple>LIAISON:</font>")][key_name(src, 1)] [CC_MARK(src)] [ADMIN_PP(src)] [ADMIN_VV(src)] [ADMIN_SM(src)] [ADMIN_JMP_USER(src)] [ADMIN_SC(src)]: [msg]</big></b>"
else
msg = SPAN_STAFF_IC("<b><font color=purple>PRAY: </font>[key_name(src, 1)] [CC_MARK(src)] [ADMIN_PP(src)] [ADMIN_VV(src)] [ADMIN_SM(src)] [ADMIN_JMP_USER(src)] [ADMIN_SC(src)]:</b> [msg]")
msg = "<b><big>[SPAN_STAFF_IC("<font color=purple>PRAY: </font>")][key_name(src, 1)] [CC_MARK(src)] [ADMIN_PP(src)] [ADMIN_VV(src)] [ADMIN_SM(src)] [ADMIN_JMP_USER(src)] [ADMIN_SC(src)]: [msg]</big></b>"
log_admin(msg)
for(var/client/C in GLOB.admins)
if(AHOLD_IS_MOD(C.admin_holder) && C.prefs.toggles_chat & CHAT_PRAYER)
to_chat(C, msg)
C << 'sound/machines/terminal_alert.ogg'
if(liaison)
to_chat(usr, "Your corporate overlords at Weyland-Yutani have received your message.")
else
to_chat(usr, "Your prayers have been received by the gods.")

/proc/high_command_announce(text , mob/Sender , iamessage)
var/msg = copytext(sanitize(text), 1, MAX_MESSAGE_LEN)
msg = "<b>[SPAN_STAFF_IC("<font color=orange>USCM[iamessage ? "IA" : ""]:</font>")][key_name(Sender, 1)] [CC_MARK(Sender)] [ADMIN_PP(Sender)] [ADMIN_VV(Sender)] [ADMIN_SM(Sender)] [ADMIN_JMP_USER(Sender)] [CC_REPLY(Sender)]:</b> [msg]"
msg = "<b><big>[SPAN_STAFF_IC("<font color=orange>USCM[iamessage ? "IA" : ""]:</font>")][key_name(Sender, 1)] [CC_MARK(Sender)] [ADMIN_PP(Sender)] [ADMIN_VV(Sender)] [ADMIN_SM(Sender)] [ADMIN_JMP_USER(Sender)] [CC_REPLY(Sender)]: [msg]</big></b>"
log_admin(msg)
for(var/client/C in GLOB.admins)
if((R_ADMIN|R_MOD) & C.admin_holder.rights)
Expand Down

0 comments on commit 040f0a3

Please sign in to comment.