mirror of
https://github.com/KabKebab/GS13.git
synced 2026-07-08 22:46:52 +01:00
13 lines
300 B
Plaintext
13 lines
300 B
Plaintext
/**
|
|
* tgui state: conscious_state
|
|
*
|
|
* Only checks if the user is conscious.
|
|
**/
|
|
|
|
GLOBAL_DATUM_INIT(conscious_state, /datum/ui_state/conscious_state, new)
|
|
|
|
/datum/ui_state/conscious_state/can_use_topic(src_object, mob/user)
|
|
if(user.stat == CONSCIOUS)
|
|
return UI_INTERACTIVE
|
|
return UI_CLOSE
|