mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-21 15:42:35 +00:00
28 lines
1.1 KiB
Plaintext
28 lines
1.1 KiB
Plaintext
/client/proc/debug_antagonist_template(antag_type in all_antag_types)
|
|
set category = "Debug"
|
|
set name = "Debug Antagonist"
|
|
set desc = "Debug an antagonist template."
|
|
|
|
var/datum/antagonist/antag = 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 (!Master.initializing && SS.flags & SS_NO_DISPLAY)
|
|
continue
|
|
available_controllers[SS.name] = SS
|
|
available_controllers["Evacuation Main Controller"] = evacuation_controller
|
|
var/css = input("What controller would you like to debug?", "Controllers") as null|anything in available_controllers
|
|
debug_variables(available_controllers[css])
|
|
|
|
message_admins("Admin [key_name_admin(usr)] is debugging the [css] controller.")
|