15 lines
532 B
Plaintext
15 lines
532 B
Plaintext
/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
|