Added config toggle for ghost writing (for adminbus).

This commit is contained in:
Zuhayr
2013-12-28 23:53:20 +10:30
parent c2f4ff6f1c
commit 85ad2363c4
2 changed files with 20 additions and 1 deletions

View File

@@ -62,6 +62,9 @@
var/automute_on = 0 //enables automuting/spam prevention var/automute_on = 0 //enables automuting/spam prevention
var/jobs_have_minimal_access = 0 //determines whether jobs use minimal access or expanded access. var/jobs_have_minimal_access = 0 //determines whether jobs use minimal access or expanded access.
var/cult_ghostwriter = 1 //Allows ghosts to write in blood in cult rounds...
var/cult_ghostwriter_req_cultists = 10 //...so long as this many cultists are active.
var/disable_player_mice = 0 var/disable_player_mice = 0
var/uneducated_mice = 0 //Set to 1 to prevent newly-spawned mice from understanding human speech var/uneducated_mice = 0 //Set to 1 to prevent newly-spawned mice from understanding human speech
@@ -456,7 +459,7 @@
config.python_path = "python" config.python_path = "python"
if("allow_cult_ghostwriter") if("allow_cult_ghostwriter")
config.cult_ghostwriter = value config.cult_ghostwriter = 1
if("req_cult_ghostwriter") if("req_cult_ghostwriter")
config.cult_ghostwriter_req_cultists = value config.cult_ghostwriter_req_cultists = value

View File

@@ -65,6 +65,7 @@ var/list/admin_verbs_admin = list(
/client/proc/cmd_admin_rejuvenate, /client/proc/cmd_admin_rejuvenate,
/client/proc/toggleattacklogs, /client/proc/toggleattacklogs,
/client/proc/toggledebuglogs, /client/proc/toggledebuglogs,
/client/proc/toggleghostwriters,
/datum/admins/proc/show_skills, /datum/admins/proc/show_skills,
/client/proc/check_customitem_activity, /client/proc/check_customitem_activity,
/client/proc/man_up, /client/proc/man_up,
@@ -724,6 +725,21 @@ var/list/admin_verbs_mod = list(
usr << "You now won't get attack log messages" usr << "You now won't get attack log messages"
/client/proc/toggleghostwriters()
set name = "Toggle ghost writers"
set category = "Server"
if(!holder) return
if(config)
if(config.log_hrefs)
config.cult_ghostwriter = 0
src << "<b>Disallowed ghost writers.</b>"
message_admins("Admin [key_name_admin(usr)] has disabled ghost writers.", 1)
else
config.cult_ghostwriter = 1
src << "<b>Enabled ghost writers.</b>"
message_admins("Admin [key_name_admin(usr)] has enabled ghost writers.", 1)
/client/proc/toggledebuglogs() /client/proc/toggledebuglogs()
set name = "Toggle Debug Log Messages" set name = "Toggle Debug Log Messages"
set category = "Preferences" set category = "Preferences"