Mentor System (#5235)
* reworked mentor system, again. wew * Update admin.txt * uhg
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
/client/proc/mentor_datum_set(admin)
|
||||
mentor_datum = GLOB.mentor_datums[ckey]
|
||||
if(!mentor_datum && check_rights_for(src, R_ADMIN,0)) // admin with no mentor datum?let's fix that
|
||||
new /datum/mentors(ckey)
|
||||
if(mentor_datum)
|
||||
if(!check_rights_for(src, R_ADMIN,0) && !admin)
|
||||
GLOB.mentors |= src // don't add admins to this list too.
|
||||
mentor_datum.owner = src
|
||||
add_mentor_verbs()
|
||||
mentor_memo_output("Show")
|
||||
|
||||
/client/proc/is_mentor() // admins are mentors too.
|
||||
if(mentor_datum || check_rights_for(src, R_ADMIN,0))
|
||||
return TRUE
|
||||
Reference in New Issue
Block a user