Files
Paradise/code/controllers/verbs.dm
AffectedArc07 8f72d7556e Annihilates the blackbox (#15132)
* Lets get this show on the road

* Now were talking

* These matter

* Oh the joys of CI testing

* And this

* Wrong version

* Tweaks

* More tweaks

* Lets document this

* This too

* Upgrades this

* Fixed some sanity issues

* This too

* Screw it, this too

* More sanity

* And these

* This too

* Documentation

* This too

* Fixes **awful** scoreboard logic

* Why do we care about only half-absorbing someone

* Revert "Why do we care about only half-absorbing someone"

This reverts commit 8de1cfdf05.

* Refactors these

* Hashing

* Moxian tweaks
2020-12-24 16:06:48 -05:00

44 lines
1.7 KiB
Plaintext

//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(config)
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.")