Files
Aurora.3/code/controllers/verbs.dm
Fluffy 7265630dde Turn more unmanaged global vars into GLOB (#20446)
Turned a ton of unmanaged globals into managed globals.
Refactored some UT output.
Removed some unused things, including vars.
Added a test to ensure people don't keep adding new unmanaged vars.
2025-02-17 23:34:02 +00:00

30 lines
1.1 KiB
Plaintext

/client/proc/debug_antagonist_template(antag_type in GLOB.all_antag_types)
set category = "Debug"
set name = "Debug Antagonist"
set desc = "Debug an antagonist template."
var/datum/antagonist/antag = GLOB.all_antag_types[antag_type]
if(antag)
usr.client.debug_variables(antag)
message_admins("Admin [key_name_admin(usr)] is debugging the [antag.role_text] template.")
/client/proc/debug_controller()
set category = "Debug"
set name = "Debug Controller"
set desc = "Debug the various periodic loop controllers for the game (be careful!)"
if(!holder)
return
var/list/available_controllers = list()
for(var/datum/controller/subsystem/SS in Master.subsystems)
if (MC_RUNNING() && SS.flags & SS_NO_DISPLAY)
continue
available_controllers[SS.name] = SS
available_controllers["Evacuation Controller"] = GLOB.evacuation_controller
var/css = input("What controller would you like to debug?", "Controllers") as null|anything in available_controllers
if(!css)
return
debug_variables(available_controllers[css])
message_admins("Admin [key_name_admin(usr)] is debugging the [css] controller.")