Updated statpanel and added client pings (#18337)

* SSatlas.current_map

* hardsuit spell tab appears to clear correctly

* sdfsa

* from the moment i understood the weakness of my flesh, it disgusted me

* sdf
This commit is contained in:
Fluffy
2024-02-08 12:29:42 +00:00
committed by GitHub
parent f481143eb4
commit 25dc248979
200 changed files with 750 additions and 593 deletions
@@ -15,7 +15,7 @@
return
// The program is active and connected to one of the station's networks. Has a very small chance to trigger IDS alarm every tick.
if(current_network && (current_network in current_map.station_networks) && prob(0.1))
if(current_network && (current_network in SSatlas.current_map.station_networks) && prob(0.1))
if(GLOB.ntnet_global.intrusion_detection_enabled)
GLOB.ntnet_global.add_log("IDS WARNING - Unauthorised access detected to camera network [current_network] by device with NID [computer.network_card.get_network_tag()]")
GLOB.ntnet_global.intrusion_detection_alarm = TRUE
@@ -18,7 +18,7 @@
/datum/computer_file/program/account_db/New(obj/item/modular_computer/comp, var/is_centcomm_db = FALSE)
..()
if(current_map)
if(SSatlas.current_map)
machine_id = "[station_name()] Acc. DB #[SSeconomy.num_financial_terminals++]"
else
machine_id = "NT-Net Relay Back-up Software DB" // created during map generation inside the ntnet relay, not used by players
@@ -48,7 +48,7 @@
data["can_call_shuttle"] = can_call_shuttle()
data["isAI"] = issilicon(usr)
data["authenticated"] = is_authenticated(user)
data["boss_short"] = current_map.boss_short
data["boss_short"] = SSatlas.current_map.boss_short
data["current_security_level"] = security_level
data["current_security_level_title"] = num2seclevel(security_level)
data["current_maint_all_access"] = maint_all_access
@@ -155,12 +155,12 @@
if(!is_relay_online())//Contact Centcom has a check, Syndie doesn't to allow for Traitor funs.
to_chat(usr, SPAN_WARNING("No Emergency Bluespace Relay detected. Unable to transmit message."))
return
var/input = sanitize(input("Please choose a message to transmit to [current_map.boss_short] via quantum entanglement. Please be aware that this process is very expensive, and abuse will lead to... termination. Transmission does not guarantee a response. There is a 30 second delay before you may send another message, be clear, full and concise.", "To abort, send an empty message.", "") as null|text)
var/input = sanitize(input("Please choose a message to transmit to [SSatlas.current_map.boss_short] via quantum entanglement. Please be aware that this process is very expensive, and abuse will lead to... termination. Transmission does not guarantee a response. There is a 30 second delay before you may send another message, be clear, full and concise.", "To abort, send an empty message.", "") as null|text)
if(!input || computer.use_check_and_message(usr))
return
Centcomm_announce(input, usr)
to_chat(usr, SPAN_NOTICE("Message successfully transmitted."))
log_say("[key_name(usr)] has sent a message to [current_map.boss_short]: [input]", ckey = key_name(usr))
log_say("[key_name(usr)] has sent a message to [SSatlas.current_map.boss_short]: [input]", ckey = key_name(usr))
centcomm_message_cooldown = TRUE
addtimer(CALLBACK(src, PROC_REF(set_centcomm_message_cooldown), FALSE), 300) // thirty second cooldown
if("evac")
@@ -296,12 +296,12 @@ Command action procs
if(!(ROUND_IS_STARTED) || !evacuation_controller)
return FALSE
if(current_map.shuttle_call_restarts && current_map.shuttle_call_restart_timer)
deltimer(current_map.shuttle_call_restart_timer)
current_map.shuttle_call_restart_timer = null
if(SSatlas.current_map.shuttle_call_restarts && SSatlas.current_map.shuttle_call_restart_timer)
deltimer(SSatlas.current_map.shuttle_call_restart_timer)
SSatlas.current_map.shuttle_call_restart_timer = null
log_game("[key_name(user)] has stopped the 'shuttle' round restart.", key_name(user))
message_admins("[key_name_admin(user)] has stopped the 'shuttle' round restart.", 1)
to_world(FONT_LARGE(SPAN_VOTE(current_map.shuttle_recall_message)))
to_world(FONT_LARGE(SPAN_VOTE(SSatlas.current_map.shuttle_recall_message)))
return
if(SSticker.mode.name == "Meteor")
@@ -352,11 +352,11 @@ Command action procs
if(!(ROUND_IS_STARTED) || !evacuation_controller)
return
if(current_map.shuttle_call_restarts)
current_map.shuttle_call_restart_timer = addtimer(CALLBACK(GLOBAL_PROC, GLOBAL_PROC_REF(reboot_world)), 10 MINUTES, TIMER_UNIQUE|TIMER_STOPPABLE)
if(SSatlas.current_map.shuttle_call_restarts)
SSatlas.current_map.shuttle_call_restart_timer = addtimer(CALLBACK(GLOBAL_PROC, GLOBAL_PROC_REF(reboot_world)), 10 MINUTES, TIMER_UNIQUE|TIMER_STOPPABLE)
log_game("[user? key_name(user) : "Autotransfer"] has called the 'shuttle' round restart.")
message_admins("[user? key_name_admin(user) : "Autotransfer"] has called the 'shuttle' round restart.", 1)
to_world(FONT_LARGE(SPAN_VOTE(current_map.shuttle_called_message)))
to_world(FONT_LARGE(SPAN_VOTE(SSatlas.current_map.shuttle_called_message)))
return
. = evacuation_controller.call_evacuation(null, _evac_type = TRANSFER_CREW, autotransfer = TRUE)
@@ -23,13 +23,13 @@
. = data
var/z_level = z_override ? z_override : user.z
if(z_level in current_map.station_levels)
if(z_level in SSatlas.current_map.station_levels)
data["map_image"] = SSholomap.minimaps_area_colored_base64[z_level]
data["user_x"] = user.x
data["user_y"] = user.y
data["user_z"] = user.z
data["station_levels"] = current_map.station_levels
data["station_levels"] = SSatlas.current_map.station_levels
data["z_override"] = z_override
data["dept_colors_map"] = list(
@@ -26,7 +26,7 @@
data["isAI"] = isAI(user)
data["crewmembers"] = list()
if(SSradio.telecomms_ping(computer))
for(var/z_level in current_map.map_levels)
for(var/z_level in SSatlas.current_map.map_levels)
data["crewmembers"] += crew_repository.health_data(z_level)
data["security_level"] = seclevel2num(get_security_level())
@@ -3,7 +3,7 @@
if(!network)
return FALSE
. = current_map.get_network_access(network)
. = SSatlas.current_map.get_network_access(network)
if (.)
return
@@ -50,7 +50,7 @@
data["current_network"] = current_network
var/list/all_networks = list()
for(var/network in current_map.station_networks)
for(var/network in SSatlas.current_map.station_networks)
all_networks += list(
list(
"tag" = network,