Skip to content

Commit

Permalink
qol: Announcements Disabling. (ss220-space#6182)
Browse files Browse the repository at this point in the history
* Update announce.dm

* Update announce.dm
  • Loading branch information
Rafnik02 authored and Kray1k committed Nov 17, 2024
1 parent 8ae42af commit 1b5cefd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions code/defines/procs/announce.dm
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ GLOBAL_DATUM_INIT(event_announcement, /datum/announcement/priority/command/event
var/announcement_type = "Оповещение"
var/admin_announcement = 0 // Admin announcements are received regardless of being in range of a radio, unless you're in the lobby to prevent metagaming
var/language = LANGUAGE_GALACTIC_COMMON
var/beannounced = TRUE

/datum/announcement/New(var/do_log = 0, var/new_sound = null, var/do_newscast = 0)
sound = new_sound
Expand Down Expand Up @@ -47,6 +48,8 @@ GLOBAL_DATUM_INIT(event_announcement, /datum/announcement/priority/command/event
/datum/announcement/proc/Announce(message as text, new_title = "", new_sound = null, do_newscast = newscast, msg_sanitized = 0, from, msg_language)
if(!message)
return
if(!beannounced)
return

var/message_title = new_title ? new_title : title
var/message_sound = new_sound ? sound(new_sound) : sound
Expand Down

0 comments on commit 1b5cefd

Please sign in to comment.