From 170c0e1b6ba4f1f2efbcaa97b5441515200b97aa Mon Sep 17 00:00:00 2001 From: ikarrus Date: Fri, 15 Aug 2014 20:24:49 -0600 Subject: [PATCH] Removed Events from Admin Secrets menu. Trigger Event verb moved to Fun tab. -No more need to maintain a list of events to trigger -No more needing to use debug-verbs to trigger all events --- code/modules/admin/admin.dm | 26 +------------------------- code/modules/admin/admin_verbs.dm | 3 ++- code/modules/admin/verbs/mapping.dm | 1 - code/modules/events/event_manager.dm | 7 ++++--- 4 files changed, 7 insertions(+), 30 deletions(-) diff --git a/code/modules/admin/admin.dm b/code/modules/admin/admin.dm index d1363c55f80..999ece2b788 100644 --- a/code/modules/admin/admin.dm +++ b/code/modules/admin/admin.dm @@ -430,32 +430,8 @@ var/global/floorIsLava = 0
"} - if(check_rights(R_FUN,0))//TODO: Make all this hardcoded random event panel stuff its own proc so we can actually remove poor events without making the code stop compiling + if(check_rights(R_FUN,0)) dat += {" - 'Random' Events
-
- 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
- Spawn wormholes
- Spawn blob
- Trigger an Alien infestation
- Spawn an Alien silently
- Trigger a Spider infestation
- Send in a space ninja
- 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

Turn all humans into monkeys
diff --git a/code/modules/admin/admin_verbs.dm b/code/modules/admin/admin_verbs.dm index c13e1ac79d4..b47e41b4d1c 100644 --- a/code/modules/admin/admin_verbs.dm +++ b/code/modules/admin/admin_verbs.dm @@ -81,7 +81,8 @@ var/list/admin_verbs_fun = list( /client/proc/cmd_admin_add_random_ai_law, /client/proc/make_sound, /client/proc/toggle_random_events, - /client/proc/set_ooc + /client/proc/set_ooc, + /client/proc/forceEvent ) var/list/admin_verbs_spawn = list( /datum/admins/proc/spawn_atom, /*allows us to spawn instances*/ diff --git a/code/modules/admin/verbs/mapping.dm b/code/modules/admin/verbs/mapping.dm index a567d4eaec6..efe38fa2172 100644 --- a/code/modules/admin/verbs/mapping.dm +++ b/code/modules/admin/verbs/mapping.dm @@ -140,7 +140,6 @@ var/intercom_range_display_status = 0 src.verbs += /datum/admins/proc/show_traitor_panel src.verbs += /client/proc/print_jobban_old src.verbs += /client/proc/print_jobban_old_filter - src.verbs += /client/proc/forceEvent src.verbs += /client/proc/kill_pipe_processing src.verbs += /client/proc/kill_air_processing src.verbs += /client/proc/disable_communication diff --git a/code/modules/events/event_manager.dm b/code/modules/events/event_manager.dm index b41e08d2d0c..2775524fce3 100644 --- a/code/modules/events/event_manager.dm +++ b/code/modules/events/event_manager.dm @@ -111,15 +111,16 @@ var/datum/controller/event/events //allows a client to trigger an event (For Debugging Purposes) /client/proc/forceEvent(var/datum/round_event_control/E in events.control) - set name = "Trigger Event (Debug Only)" - set category = "Debug" + set name = "Trigger Event" + set category = "Fun" - if(!holder) + if(!holder ||!check_rights(R_FUN)) return if(istype(E)) E.runEvent() message_admins("[key_name_admin(usr)] has triggered an event. ([E.name])", 1) + log_admin("[key_name(usr)] has triggered an event. ([E.name])") /*