Gives admins the D(say) hotkey + fixes buildmode permissions (#37413)

This commit is contained in:
Dax Dupont
2018-04-26 04:39:07 +02:00
committed by CitadelStationBot
parent 5b035581f0
commit d0266b01cd
3 changed files with 9 additions and 0 deletions

View File

@@ -603,6 +603,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
..()