Merge pull request #6518 from Citadel-Station-13/upstream-merge-37413

[MIRROR] Gives admins the D(say) hotkey + fixes buildmode permissions
This commit is contained in:
deathride58
2018-04-27 09:36:44 +00:00
committed by GitHub
3 changed files with 9 additions and 0 deletions

View File

@@ -602,6 +602,8 @@ GLOBAL_LIST_INIT(admin_verbs_hideable, list(
/client/proc/togglebuildmodeself()
set name = "Toggle Build Mode Self"
set category = "Special Verbs"
if (!(holder.rank.rights & R_BUILDMODE))
return
if(src.mob)
togglebuildmode(src.mob)
SSblackbox.record_feedback("tally", "admin_verb", 1, "Toggle Build Mode") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!

View File

@@ -30,3 +30,7 @@
M.show_message(rendered, 2)
SSblackbox.record_feedback("tally", "admin_verb", 1, "Dsay") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
/client/proc/get_dead_say()
var/msg = input(src, null, "dsay \"text\"") as text
dsay(msg)

View File

@@ -18,4 +18,7 @@
else
user.invisimin()
return
if("F10")
user.get_dead_say()
return
..()