mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-25 09:31:42 +00:00
12 lines
309 B
Plaintext
12 lines
309 B
Plaintext
/**
|
|
* tgui state: mentor_state
|
|
*
|
|
* Checks that the user is an mentor.
|
|
**/
|
|
|
|
GLOBAL_DATUM_INIT(tgui_mentor_state, /datum/tgui_state/mentor_state, new)
|
|
|
|
/datum/tgui_state/mentor_state/can_use_topic(src_object, mob/user)
|
|
if(has_mentor_powers(user.client))
|
|
return STATUS_INTERACTIVE
|
|
return STATUS_CLOSE |