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
@@ -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)