Newscasters no longer work when not on a station z-level.

This commit is contained in:
mikomyazaki
2022-02-11 19:34:49 +00:00
parent ec7fc8ebed
commit 059e1ba937

View File

@@ -166,6 +166,9 @@ var/list/obj/machinery/newscaster/allCasters = list() //Global list that will co
src.scan_user(human_or_robot_user) //Newscaster scans you
if(isNotStationLevel(z))
screen = 24 // No network connectivity
switch(screen)
if(0)
dat += "Welcome to Newscasting Unit #[src.unit_no].<BR> Interface & News networks Operational."
@@ -419,6 +422,9 @@ var/list/obj/machinery/newscaster/allCasters = list() //Global list that will co
for(var/datum/feed_comment/COMMENT in src.viewing_message.comments)
dat+="<BLOCKQUOTE style=\"padding:2px 4px;border-left:4px #797979 solid;\"><B>\[[world.time]\] [COMMENT.author]:</B>[COMMENT.message]<BR><A href='?src=\ref[src];censor_comment=1;comment=\ref[COMMENT]>Censor Comment</A></BLOCKQUOTE>"
dat+="<A href='?src=\ref[src];setScreen=[9]'>Return</A>"
if(24) //newscaster is not connected to the station-z-level
dat += "<B>ERROR: Newscaster unit cannot access main news server!</B></BR>"
dat += "<BR><A href='?src=\ref[src];setScreen=[0]'>ATTEMPT RESET</A>"
send_theme_resources(human_or_robot_user)
human_or_robot_user << browse(enable_ui_theme(human_or_robot_user, dat), "window=newscaster_main;size=600x900")
@@ -1011,6 +1017,9 @@ var/list/obj/machinery/newscaster/allCasters = list() //Global list that will co
return
/obj/machinery/newscaster/proc/newsAlert(var/news_call)
if (isNotStationLevel(z))
clearAlert()
return
var/turf/T = get_turf(src)
if(news_call)
for(var/mob/O in hearers(world.view-1, T))