Borer preference affects notification (#15948)

* Borer preference affects notification

* Update code/game/gamemodes/miniantags/borer/borer.dm

Co-authored-by: SabreML <57483089+SabreML@users.noreply.github.com>

* Update code/modules/mob/mob_helpers.dm

Co-authored-by: SabreML <57483089+SabreML@users.noreply.github.com>

* Update code/modules/mob/mob_helpers.dm

Co-authored-by: SabreML <57483089+SabreML@users.noreply.github.com>

* Fix ambiguous or operator

Co-authored-by: SabreML <57483089+SabreML@users.noreply.github.com>
This commit is contained in:
Dragonkiller93
2021-04-29 12:47:43 +01:00
committed by GitHub
co-authored by SabreML
parent 09143c0657
commit 66ba2758f3
2 changed files with 3 additions and 4 deletions
+2 -3
View File
@@ -478,9 +478,9 @@ GLOBAL_LIST_INIT(intents, list(INTENT_HELP,INTENT_DISARM,INTENT_GRAB,INTENT_HARM
lname = "<span class='name'>[lname]</span> "
to_chat(M, "<span class='deadsay'>[lname][follow][message]</span>")
/proc/notify_ghosts(message, ghost_sound = null, enter_link = null, title = null, atom/source = null, image/alert_overlay = null, flashwindow = TRUE, action = NOTIFY_JUMP) //Easy notification of ghosts.
/proc/notify_ghosts(message, ghost_sound = null, enter_link = null, title = null, atom/source = null, image/alert_overlay = null, flashwindow = TRUE, action = NOTIFY_JUMP, role = null) //Easy notification of ghosts.
for(var/mob/dead/observer/O in GLOB.player_list)
if(O.client)
if(O.client && (!role || (role in O.client.prefs.be_special)))
to_chat(O, "<span class='ghostalert'>[message][(enter_link) ? " [enter_link]" : ""]</span>")
if(ghost_sound)
O << sound(ghost_sound)
@@ -670,4 +670,3 @@ GLOBAL_LIST_INIT(intents, list(INTENT_HELP,INTENT_DISARM,INTENT_GRAB,INTENT_HARM
message_admins("[src.ckey] just got booted back to lobby with no jobs enabled, but antag rolling enabled. Likely antag rolling abuse.")
return FALSE //This is the only case someone should actually be completely blocked from antag rolling as well
return TRUE