mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-25 17:41:56 +00:00
Robust annoucments handling (#16090)
This commit is contained in:
@@ -48,7 +48,7 @@
|
||||
var/turf/T = get_turf(M)
|
||||
if(T)
|
||||
to_chat(M, msg)
|
||||
if(message_sound && !isdeaf(M) && (M.client.prefs.sfx_toggles & ASFX_VOX))
|
||||
if(message_sound && !isdeaf(M) && (M.client?.prefs.sfx_toggles & ASFX_VOX))
|
||||
sound_to(M, message_sound)
|
||||
if(do_newscast)
|
||||
NewsCast(message, message_title)
|
||||
@@ -113,4 +113,4 @@
|
||||
AnnounceArrivalSimple(character.real_name, rank, join_message)
|
||||
|
||||
/proc/AnnounceArrivalSimple(var/name, var/rank = "visitor", var/join_message = "has arrived on the [current_map.station_type]", var/new_sound = 'sound/misc/announcements/notice.ogg')
|
||||
global_announcer.autosay("[name], [rank], [join_message].", "Arrivals Announcer")
|
||||
global_announcer.autosay("[name], [rank], [join_message].", "Arrivals Announcer")
|
||||
|
||||
Reference in New Issue
Block a user