From da7d4345b5bdcaa07662de1ef5d9abe15329cb23 Mon Sep 17 00:00:00 2001 From: Putnam Date: Mon, 21 Oct 2019 03:18:27 -0700 Subject: [PATCH] Added a toggle dynamic vote verb for admins. --- code/modules/admin/admin.dm | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/code/modules/admin/admin.dm b/code/modules/admin/admin.dm index 555c35980d..004ab9e17e 100644 --- a/code/modules/admin/admin.dm +++ b/code/modules/admin/admin.dm @@ -686,6 +686,19 @@ log_admin("[key_name(usr)] set the pre-game delay to [DisplayTimeText(newtime)].") SSblackbox.record_feedback("tally", "admin_verb", 1, "Delay Game Start") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! +/datum/admins/proc/toggledynamicvote() + set category = "Server" + set desc="Switches between secret/extended and dynamic voting" + set name="Toggle Dynamic Vote" + CONFIG_SET(flag/dynamic_voting,!CONFIG_GET(flag/dynamic_voting)) + if (CONFIG_GET(flag/dynamic_voting)) + to_chat(world, "Vote is now between extended and dynamic chaos.") + else + to_chat(world, "Vote is now between extended and secret.") + log_admin("[key_name(usr)] toggled dynamic voting.") + message_admins("[key_name_admin(usr)] toggled dynamic voting.") + SSblackbox.record_feedback("nested tally", "admin_toggle", 1, list("Toggle Dynamic Voting", "[CONFIG_GET(flag/dynamic_voting) ? "Enabled" : "Disabled"]")) //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! + /datum/admins/proc/unprison(mob/M in GLOB.mob_list) set category = "Admin" set name = "Unprison"