From 2b0c4dd1870ea041b256af4c6e27447a7b8a6b4b Mon Sep 17 00:00:00 2001 From: Intigracy Date: Wed, 3 Jul 2013 21:27:08 -0700 Subject: [PATCH] Cheridan broke my git the first time, here's try #2! Makes the "coder secrets" in secrets panel become general secrets for all admins. Adding myself to admins.txt for test server purposes, in case I ever forget to change it again. Reasons: It's very helpful to use the admin log for a quick glance to see who spawned the mateba for the clown, rather than open the serverlog to check. Plus I see no reason why it should be restricted to coders, considering it's not really at all able to affect the game by admins seeing it. Testing force overwrite Cheridan broke my git the first time, here's try #2! Makes the "coder secrets" in secrets panel become general secrets for all admins. Adding myself to admins.txt for test server purposes, in case I ever forget to change it again. Reasons: It's very helpful to use the admin log for a quick glance to see who spawned the mateba for the clown, rather than open the serverlog to check. Plus I see no reason why it should be restricted to coders, considering it's not really at all able to affect the game by admins seeing it. --- code/modules/admin/admin.dm | 13 ++++++++----- code/modules/admin/topic.dm | 33 ++++++++++++++++++--------------- config/admins.txt | 3 ++- 3 files changed, 28 insertions(+), 21 deletions(-) diff --git a/code/modules/admin/admin.dm b/code/modules/admin/admin.dm index a1469f5b7df..9429c1b5e23 100644 --- a/code/modules/admin/admin.dm +++ b/code/modules/admin/admin.dm @@ -399,6 +399,14 @@ var/global/floorIsLava = 0 var/dat = "The first rule of adminbuse is: you don't talk about the adminbuse.
" + dat +={" + General Secrets
+
+ Show Job Debug
+ Admin Log
+
+ "} + if(check_rights(R_ADMIN,0)) dat += {" Admin Secrets
@@ -479,11 +487,6 @@ var/global/floorIsLava = 0 Change all maintenance doors to brig access only
Remove cap on security officers

- Coder Secrets
-
- Show Job Debug
- Admin Log
-
"} usr << browse(dat, "window=secrets") diff --git a/code/modules/admin/topic.dm b/code/modules/admin/topic.dm index 3a6b2bcbd68..b33ab909c70 100644 --- a/code/modules/admin/topic.dm +++ b/code/modules/admin/topic.dm @@ -1358,7 +1358,7 @@ else health_description = "This mob type has no health to speak of." - //Gener + //Gender switch(M.gender) if(MALE,FEMALE) gender_description = "[M.gender]" else gender_description = "[M.gender]" @@ -2076,16 +2076,6 @@ for(var/sig in lawchanges) dat += "[sig]
" usr << browse(dat, "window=lawchanges;size=800x500") - if("list_job_debug") - var/dat = "Job Debug info.
" - if(job_master) - for(var/line in job_master.job_debug) - dat += "[line]
" - dat+= "*******

" - for(var/datum/job/job in job_master.occupations) - if(!job) continue - dat += "job: [job.title], current_positions: [job.current_positions], total_positions: [job.total_positions]
" - usr << browse(dat, "window=jobdebug;size=600x500") if("check_antagonist") check_antagonists() if("showailaws") @@ -2130,10 +2120,8 @@ if (ok) world << text("A secret has been activated by []!", usr.key) - else if(href_list["secretscoder"]) - if(!check_rights(R_DEBUG)) return - - switch(href_list["secretscoder"]) + else if(href_list["secretsgeneral"]) + switch(href_list["secretsgeneral"]) if("spawn_objects") var/dat = "Admin Log
" for(var/l in admin_log) @@ -2141,6 +2129,21 @@ if(!admin_log.len) dat += "No-one has done anything this round!" usr << browse(dat, "window=admin_log") + if("list_job_debug") + var/dat = "Job Debug info.
" + if(job_master) + for(var/line in job_master.job_debug) + dat += "[line]
" + dat+= "*******

" + for(var/datum/job/job in job_master.occupations) + if(!job) continue + dat += "job: [job.title], current_positions: [job.current_positions], total_positions: [job.total_positions]
" + usr << browse(dat, "window=jobdebug;size=600x500") + + else if(href_list["secretscoder"]) + if(!check_rights(R_DEBUG)) return + + switch(href_list["secretscoder"]) if("maint_access_brig") for(var/obj/machinery/door/airlock/maintenance/M in world) if (access_maint_tunnels in M.req_access) diff --git a/config/admins.txt b/config/admins.txt index aa583944a80..121cad72d0d 100644 --- a/config/admins.txt +++ b/config/admins.txt @@ -25,4 +25,5 @@ cheridan - Game Master giacomand - Game Master rockdtben - Game Master sieve - Game Master -aranclanos - Game Master \ No newline at end of file +aranclanos - Game Master +intigracy - Game Master \ No newline at end of file