[MIRROR] Adds mentor ticket panel (#5392)

* Adds mentor ticket panel
This commit is contained in:
Razgriz
2022-12-12 00:12:37 -07:00
committed by GitHub
parent 26403b392a
commit d207b82573
7 changed files with 151 additions and 4 deletions

View File

@@ -0,0 +1,12 @@
/**
* 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