mentor fixes and improvements (#11519)
* one teensy fix but imma go do something else quick * yee? * yee? * yee 3 * ah shit * uhhhhhh * oh
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
/client/proc/cmd_mentor_dementor()
|
||||
set category = "Mentor"
|
||||
set name = "dementor"
|
||||
if(!is_mentor())
|
||||
return
|
||||
remove_mentor_verbs()
|
||||
if (/client/proc/mentor_unfollow in verbs)
|
||||
mentor_unfollow()
|
||||
GLOB.mentors -= src
|
||||
verbs += /client/proc/cmd_mentor_rementor
|
||||
|
||||
/client/proc/cmd_mentor_rementor()
|
||||
set category = "Mentor"
|
||||
set name = "rementor"
|
||||
if(!is_mentor())
|
||||
return
|
||||
add_mentor_verbs()
|
||||
GLOB.mentors += src
|
||||
verbs -= /client/proc/cmd_mentor_rementor
|
||||
@@ -1,6 +1,7 @@
|
||||
GLOBAL_LIST_INIT(mentor_verbs, list(
|
||||
/client/proc/cmd_mentor_say,
|
||||
/client/proc/show_mentor_memo
|
||||
/client/proc/show_mentor_memo,
|
||||
/client/proc/cmd_mentor_dementor
|
||||
))
|
||||
GLOBAL_PROTECT(mentor_verbs)
|
||||
|
||||
|
||||
@@ -38,8 +38,9 @@
|
||||
if(!msg)
|
||||
msg = input(src,"Message:", "Private message") as text|null
|
||||
|
||||
if(!msg && is_mentor(whom))
|
||||
to_chat(GLOB.admins | GLOB.mentors, "<span class='purple'>[src] has stopped their reply to [whom]'s mhelp.</span>")
|
||||
if(!msg)
|
||||
if (is_mentor(whom))
|
||||
to_chat(GLOB.admins | GLOB.mentors, "<span class='purple'>[src] has stopped their reply to [whom]'s mhelp.</span>")
|
||||
return
|
||||
|
||||
if(!C)
|
||||
@@ -54,10 +55,10 @@
|
||||
return
|
||||
|
||||
msg = sanitize(copytext_char(msg, 1, MAX_MESSAGE_LEN))
|
||||
if(!msg && is_mentor(whom))
|
||||
to_chat(GLOB.admins | GLOB.mentors, "<span class='purple'>[src] has stopped their reply to [whom]'s mhelp.</span>")
|
||||
if(!msg)
|
||||
if (is_mentor(whom))
|
||||
to_chat(GLOB.admins | GLOB.mentors, "<span class='purple'>[src] has stopped their reply to [whom]'s mhelp.</span>")
|
||||
return
|
||||
|
||||
log_mentor("Mentor PM: [key_name(src)]->[key_name(C)]: [msg]")
|
||||
|
||||
msg = emoji_parse(msg)
|
||||
|
||||
@@ -3252,6 +3252,7 @@
|
||||
#include "modular_citadel\code\modules\custom_loadout\custom_items.dm"
|
||||
#include "modular_citadel\code\modules\custom_loadout\load_to_mob.dm"
|
||||
#include "modular_citadel\code\modules\custom_loadout\read_from_file.dm"
|
||||
#include "modular_citadel\code\modules\mentor\dementor.dm"
|
||||
#include "modular_citadel\code\modules\mentor\follow.dm"
|
||||
#include "modular_citadel\code\modules\mentor\mentor.dm"
|
||||
#include "modular_citadel\code\modules\mentor\mentor_memo.dm"
|
||||
|
||||
Reference in New Issue
Block a user