From 0a42c1236858c44896f8e9ed5dfd5797b784394b Mon Sep 17 00:00:00 2001 From: 81Denton <32391752+81Denton@users.noreply.github.com> Date: Tue, 24 Dec 2019 20:29:17 +0100 Subject: [PATCH] Add deadmin/readmin keybindings (#48370) They're unbound by default, so admins will have to assign keys to them. --- code/datums/keybinding/admin.dm | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/code/datums/keybinding/admin.dm b/code/datums/keybinding/admin.dm index 833a57254f7..5385f8d1765 100644 --- a/code/datums/keybinding/admin.dm +++ b/code/datums/keybinding/admin.dm @@ -72,3 +72,23 @@ /datum/keybinding/admin/deadsay/down(client/user) user.get_dead_say() return TRUE + +/datum/keybinding/admin/deadmin + hotkey_keys = list("Unbound") + name = "deadmin" + full_name = "Deadmin" + description = "Shed your admin powers" + +/datum/keybinding/admin/deadmin/down(client/user) + user.deadmin() + return TRUE + +/datum/keybinding/admin/readmin + hotkey_keys = list("Unbound") + name = "readmin" + full_name = "Readmin" + description = "Regain your admin powers" + +/datum/keybinding/admin/readmin/down(client/user) + user.readmin() + return TRUE