Replaces adminhelp verb in macros/hotkeys

This commit is contained in:
lm40
2022-08-21 16:08:14 -04:00
parent 5b4fd7a11b
commit d8b22197b5
2 changed files with 19 additions and 5 deletions
+14
View File
@@ -159,6 +159,20 @@ var/list/mentor_verbs_default = list(
/proc/has_mentor_powers(client/C)
return C.holder || C.mentorholder
// This not really a great place to put it, but this verb replaces adminhelp in hotkeys so that people requesting help can select the type they need
// You can still directly adminhelp if necessary, this ONLY replaces the inbuilt hotkeys
/client/verb/requesthelp(msg as text)
set category = "Admin"
set name = "Request help"
if(tgui_alert(usr, "Select the help you need.","Request for Help",list("Adminhelp","Mentorhelp")) == "Mentorhelp")
mentorhelp(msg)
return
adminhelp(msg)
/client/proc/cmd_mentor_pm(whom, msg, datum/mentor_help/MH)
set category = "Admin"
set name = "Mentor-PM"