//TODO: rewrite and standardise all controller datums to the datum/controller type //TODO: allow all controllers to be deleted for clean restarts (see WIP master controller stuff) - MC done - lighting done /client/proc/restart_controller(controller in list("Master", "Failsafe")) set category = "Debug" set name = "Restart Controller" set desc = "Restart one of the various periodic loop controllers for the game (be careful!)" if(!check_rights(R_DEBUG)) return switch(controller) if("Master") Recreate_MC() SSblackbox.record_feedback("tally", "admin_verb", 1, "Restart MC") if("Failsafe") new /datum/controller/failsafe() SSblackbox.record_feedback("tally", "admin_verb", 1, "Restart Failsafe") message_admins("Admin [key_name_admin(usr)] has restarted the [controller] controller.") /client/proc/debug_controller(controller in list("Configuration", "pAI", "Cameras", "Space Manager")) set category = "Debug" set name = "Debug Misc Controller" set desc = "Debug the various non-subsystem controllers for the game (be careful!)" if(!check_rights(R_DEBUG)) return switch(controller) if("Configuration") debug_variables(GLOB.configuration) SSblackbox.record_feedback("tally", "admin_verb", 1, "Debug Config") if("pAI") debug_variables(GLOB.paiController) SSblackbox.record_feedback("tally", "admin_verb", 1, "Debug pAI") if("Cameras") debug_variables(GLOB.cameranet) SSblackbox.record_feedback("tally", "admin_verb", 1, "Debug Cameras") if("Space Manager") debug_variables(GLOB.space_manager) SSblackbox.record_feedback("tally", "admin_verb", 1, "Debug Space") message_admins("Admin [key_name_admin(usr)] is debugging the [controller] controller.")