Update newscaster.dm (#15280)

* Update newscaster.dm

I fixed the bug allowing it to brodcast with no power

* Update code/modules/newscaster/obj/newscaster.dm

Co-authored-by: Farie82 <farie82@users.noreply.github.com>

Co-authored-by: Farie82 <farie82@users.noreply.github.com>
This commit is contained in:
Conor Doyle
2021-01-12 09:59:42 +00:00
committed by GitHub
parent b7dcc0b107
commit 522b7fd026
@@ -676,6 +676,8 @@
* * wanted_notice - Whether the alert is a wanted notice notification (overrides announcement)
*/
/obj/machinery/newscaster/proc/alert_news(announcement, wanted_notice = FALSE)
if(!is_operational())
return
if(wanted_notice)
atom_say("Attention! Wanted issue distributed!")
playsound(loc, 'sound/machines/warning-buzzer.ogg', 75, TRUE)