mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-10 01:49:19 +00:00
TGUI updates + statpanel
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
if (/client/proc/mentor_unfollow in verbs)
|
||||
mentor_unfollow()
|
||||
GLOB.mentors -= src
|
||||
verbs += /client/proc/cmd_mentor_rementor
|
||||
add_verb(src, /client/proc/cmd_mentor_rementor)
|
||||
|
||||
/client/proc/cmd_mentor_rementor()
|
||||
set category = "Mentor"
|
||||
@@ -16,4 +16,4 @@
|
||||
return
|
||||
add_mentor_verbs()
|
||||
GLOB.mentors += src
|
||||
verbs -= /client/proc/cmd_mentor_rementor
|
||||
remove_verb(src, /client/proc/cmd_mentor_rementor)
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
if(!isobserver(usr))
|
||||
mentor_datum.following = M
|
||||
usr.reset_perspective(M)
|
||||
verbs += /client/proc/mentor_unfollow
|
||||
add_verb(usr, /client/proc/mentor_unfollow)
|
||||
to_chat(usr, "<span class='info'>Click the <a href='?_src_=mentor;mentor_unfollow=[REF(M)];[MentorHrefToken(TRUE)]'>\"Stop Following\"</a> button here or in the Mentor tab to stop following [key_name(M)].</span>")
|
||||
orbiting = FALSE
|
||||
else
|
||||
@@ -22,7 +22,7 @@
|
||||
if(!is_mentor())
|
||||
return
|
||||
usr.reset_perspective()
|
||||
verbs -= /client/proc/mentor_unfollow
|
||||
remove_verb(usr, /client/proc/mentor_unfollow)
|
||||
to_chat(GLOB.admins, "<span class='mentor'><span class='prefix'>MENTOR:</span> <EM>[key_name(usr)]</EM> is no longer following <EM>[key_name(mentor_datum.following)].</span>")
|
||||
log_mentor("[key_name(usr)] stopped following [key_name(mentor_datum.following)].")
|
||||
mentor_datum.following = null
|
||||
mentor_datum.following = null
|
||||
|
||||
@@ -7,7 +7,7 @@ GLOBAL_PROTECT(mentor_verbs)
|
||||
|
||||
/client/proc/add_mentor_verbs()
|
||||
if(mentor_datum)
|
||||
verbs += GLOB.mentor_verbs
|
||||
add_verb(src, GLOB.mentor_verbs)
|
||||
|
||||
/client/proc/remove_mentor_verbs()
|
||||
verbs -= GLOB.mentor_verbs
|
||||
remove_verb(src, GLOB.mentor_verbs)
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
set name = "Mentorhelp"
|
||||
|
||||
//clean the input msg
|
||||
if(!msg) return
|
||||
if(!msg)
|
||||
return
|
||||
|
||||
//remove out mentorhelp verb temporarily to prevent spamming of mentors.
|
||||
verbs -= /client/verb/mentorhelp
|
||||
spawn(300)
|
||||
verbs += /client/verb/mentorhelp // 30 second cool-down for mentorhelp
|
||||
remove_verb(src, /client/verb/mentorhelp)
|
||||
addtimer(CALLBACK(GLOBAL_PROC, /proc/add_verb, src, /client/verb/mentorhelp), 30 SECONDS)
|
||||
|
||||
msg = sanitize(copytext_char(msg, 1, MAX_MESSAGE_LEN))
|
||||
if(!msg || !mob)
|
||||
@@ -95,4 +95,4 @@
|
||||
if(include_follow)
|
||||
. += " (<a href='?_src_=mentor;mentor_follow=[REF(M)];[MentorHrefToken(TRUE)]'>F</a>)"
|
||||
|
||||
return .
|
||||
return .
|
||||
|
||||
Reference in New Issue
Block a user