From 5e00673238c8ed1bd3101f8278bb80be249988d9 Mon Sep 17 00:00:00 2001 From: ZomgPonies Date: Sun, 24 Nov 2013 23:47:28 -0500 Subject: [PATCH 1/2] First commit --- baystation12.dme | 1 + code/modules/admin/admin.dm | 107 -------------------------- code/modules/admin/admin_verbs.dm | 2 +- code/modules/admin/secrets.dm | 122 ++++++++++++++++++++++++++++++ code/modules/admin/topic.dm | 5 ++ 5 files changed, 129 insertions(+), 108 deletions(-) create mode 100644 code/modules/admin/secrets.dm diff --git a/baystation12.dme b/baystation12.dme index cc1dfc4721c..f545de5b16e 100644 --- a/baystation12.dme +++ b/baystation12.dme @@ -702,6 +702,7 @@ #include "code\modules\admin\newbanjob.dm" #include "code\modules\admin\player_notes.dm" #include "code\modules\admin\player_panel.dm" +#include "code\modules\admin\secrets.dm" #include "code\modules\admin\topic.dm" #include "code\modules\admin\ToRban.dm" #include "code\modules\admin\DB ban\functions.dm" diff --git a/code/modules/admin/admin.dm b/code/modules/admin/admin.dm index 30ab8f0fcab..f5992f13de3 100644 --- a/code/modules/admin/admin.dm +++ b/code/modules/admin/admin.dm @@ -552,113 +552,6 @@ var/global/floorIsLava = 0 usr << browse(dat, "window=admin2;size=210x280") return -/datum/admins/proc/Secrets() - if(!check_rights(0)) return - - var/dat = "The first rule of adminbuse is: you don't talk about the adminbuse.
" - - if(check_rights(R_ADMIN,0)) - dat += {" - Admin Secrets
-
- Remove all bombs currently in existence
- Bombing List
- Show current traitors and objectives
- Show last [length(lastsignalers)] signalers
- Show last [length(lawchanges)] law changes
- Show AI Laws
- Show Game Mode
- Show Crew Manifest
- List DNA (Blood)
- List Fingerprints

-
- "} - - if(check_rights(R_FUN,0)) - dat += {" - 'Random' Events
-
- Toggle station artificial gravity
- Spawn a wave of meteors (aka lagocolyptic shower)
- Spawn a vortex anomaly
- Spawn a gravitational anomaly
- Spawn a pyroclastic anomaly
- Spawn a flux wave anomaly
- Spawn a bluespace anomaly
- Make scrubbers spew chemicals
- Spawn wormholes
- Spawn blob
- Trigger an Alien infestation
- Spawn an Alien silently
- Trigger a Spider infestation
- Send in a space ninja
- Send in a strike team
- Send in a HONKsquad
- Trigger an Carp migration
- Irradiate the station
- Trigger a Prison Break
- Trigger a Virus Outbreak
- Spawn an Immovable Rod
- Toggle a "lights out" event
- Spawn an Ion Storm
- Spawn Space-Vines
- Trigger a communication blackout
-
- Fun Secrets
-
- Remove 'internal' clothing
- Remove ALL clothing
- Turn all humans into monkeys
- Remove firesuits, grilles, and pods
- Make all areas powered
- Make all areas unpowered
- Power all SMES
- Toggle Prison Shuttle Status(Use with S/R)
- Send Prison Shuttle
- Return Prison Shuttle
- Warp all Players to Prison
- Triple AI mode (needs to be used in the lobby)
- Everyone is the traitor
- There can only be one!
- Ghost Mode
- Make all players retarded
- Make all items look like guns
- Japanese Animes Mode
- Egalitarian Station Mode
- Move Administration Shuttle
- Move Ferry
- Move Alien Dinghy
- Move Mining Shuttle
- Break all lights
- Fix all lights
- The floor is lava! (DANGEROUS: extremely lame)
- "} - - if(check_rights(R_SERVER,0)) - dat += "Toggle bomb cap
" - - dat += "
" - - if(check_rights(R_DEBUG,0)) - dat += {" - Security Level Elevated
-
- Change all maintenance doors to engie/brig access only
- 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") - return - - - /////////////////////////////////////////////////////////////////////////////////////////////////admins2.dm merge //i.e. buttons/verbs diff --git a/code/modules/admin/admin_verbs.dm b/code/modules/admin/admin_verbs.dm index 6f89da4ec78..423c322d28b 100644 --- a/code/modules/admin/admin_verbs.dm +++ b/code/modules/admin/admin_verbs.dm @@ -71,7 +71,7 @@ var/list/admin_verbs_admin = list( var/list/admin_verbs_ban = list( /client/proc/unban_panel, /client/proc/jobbans, - /client/proc/unjobban_panel, + // /client/proc/unjobban_panel, // /client/proc/DB_ban_panel ) var/list/admin_verbs_sounds = list( diff --git a/code/modules/admin/secrets.dm b/code/modules/admin/secrets.dm new file mode 100644 index 00000000000..34e3e9ae7cd --- /dev/null +++ b/code/modules/admin/secrets.dm @@ -0,0 +1,122 @@ +/datum/admins + var/current_tab =0 + +/datum/admins/proc/Secrets() + + + if(!check_rights(0)) return + var/dat = "
" + + dat += "Debug" + dat += "Random Events" + dat += "Special Events" + + dat += "
" + dat += "
" + switch(current_tab) + if (0) // Debug + if(check_rights(R_ADMIN,0)) + dat += {" + Admin Secrets
+
+ Remove all bombs currently in existence
+ Bombing List
+ Show current traitors and objectives
+ Show last [length(lastsignalers)] signalers
+ Show last [length(lawchanges)] law changes
+ Show AI Laws
+ Show Game Mode
+ Show Crew Manifest
+ List DNA (Blood)
+ List Fingerprints

+ Move Administration Shuttle
+ Move Ferry
+ Move Alien Dinghy
+ Move Mining Shuttle
+ Break all lights
+ Fix all lights
+ The floor is lava! (DANGEROUS: extremely lame)
+ Make all areas powered
+ Make all areas unpowered
+ Power all SMES
+ Toggle Prison Shuttle Status(Use with S/R)
+ Send Prison Shuttle
+ Return Prison Shuttle
+
+ "} + + if(check_rights(R_SERVER,0)) + dat += "Toggle bomb cap
" + dat += "
" + if(check_rights(R_DEBUG,0)) + dat += {" + Security Level Elevated
+
+ Change all maintenance doors to engie/brig access only
+ Change all maintenance doors to brig access only
+ Remove cap on security officers
+
+ Coder Secrets
+
+ Show Job Debug
+ Admin Log
+
+ "} + if (1) + if(check_rights(R_FUN,0)) + dat += {" + 'Random' Events
+
+ Toggle station artificial gravity
+ Spawn a wave of meteors (aka lagocolyptic shower)
+ Spawn a vortex anomaly
+ Spawn a gravitational anomaly
+ Spawn a pyroclastic anomaly
+ Spawn a flux wave anomaly
+ Spawn a bluespace anomaly
+ Make scrubbers spew chemicals
+ Spawn wormholes
+ Spawn blob
+ Trigger an Alien infestation
+ Spawn an Alien silently
+ Trigger a Spider infestation
+ Send in a space ninja
+ Send in a strike team
+ Send in a HONKsquad
+ Trigger an Carp migration
+ Irradiate the station
+ Trigger a Prison Break
+ Trigger a Virus Outbreak
+ Spawn an Immovable Rod
+ Toggle a "lights out" event
+ Spawn an Ion Storm
+ Spawn Space-Vines
+ Trigger a communication blackout
+
"} + + + + + if (2) + if(check_rights(R_FUN,0)) + dat += {" + Fun Secrets
+
+ Remove 'internal' clothing
+ Remove ALL clothing
+ Turn all humans into monkeys
+ Remove firesuits, grilles, and pods
+ Warp all Players to Prison
+ Triple AI mode (needs to be used in the lobby)
+ Everyone is the traitor
+ There can only be one!
+ Ghost Mode
+ Make all players retarded
+ Make all items look like guns
+ Japanese Animes Mode
+ Egalitarian Station Mode
+ "} + dat += "" + var/datum/browser/popup = new(usr, "secrets", "
Admin Secrets
", 610, 650) + popup.set_content(dat) + popup.open(0) diff --git a/code/modules/admin/topic.dm b/code/modules/admin/topic.dm index be8a795664a..309e7766c3a 100644 --- a/code/modules/admin/topic.dm +++ b/code/modules/admin/topic.dm @@ -2612,3 +2612,8 @@ if("list") PlayerNotesPage(text2num(href_list["index"])) return + + if(href_list["secretsmenu"]) + switch(href_list["secretsmenu"]) + if("tab") + current_tab = text2num(href_list["tab"]) From 579e8c13444194db82bcc546f9038478b81234ec Mon Sep 17 00:00:00 2001 From: ZomgPonies Date: Mon, 25 Nov 2013 07:46:52 -0500 Subject: [PATCH 2/2] Admin secret menu overhaul --- code/modules/admin/secrets.dm | 6 +++--- code/modules/admin/topic.dm | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/code/modules/admin/secrets.dm b/code/modules/admin/secrets.dm index 34e3e9ae7cd..98657e717ec 100644 --- a/code/modules/admin/secrets.dm +++ b/code/modules/admin/secrets.dm @@ -7,9 +7,9 @@ if(!check_rights(0)) return var/dat = "
" - dat += "Debug" - dat += "Random Events" - dat += "Special Events" + dat += "Debug" + dat += "Random Events" + dat += "Special Events" dat += "
" dat += "
" diff --git a/code/modules/admin/topic.dm b/code/modules/admin/topic.dm index 309e7766c3a..5ab4a59e00c 100644 --- a/code/modules/admin/topic.dm +++ b/code/modules/admin/topic.dm @@ -2617,3 +2617,5 @@ switch(href_list["secretsmenu"]) if("tab") current_tab = text2num(href_list["tab"]) + Secrets(usr) + return 1