Files
VOREStation/code/modules/tgui/states/vorepanel_vr.dm
T
Kashargul c30f2b9c49 next grep, no spaces (#17437)
* next grep, no spaces

* next few files

* fix that

* fix that
2025-03-28 21:25:08 +01:00

19 lines
537 B
Plaintext

/**
* tgui state: vorepanel_state
*
* Only checks that the user and src_object are the same.
**/
GLOBAL_DATUM_INIT(tgui_vorepanel_state, /datum/tgui_state/vorepanel_state, new)
/datum/tgui_state/vorepanel_state/can_use_topic(src_object, mob/user)
if(src_object != user)
// Note, in order to allow others to look at others vore panels, change this to
// STATUS_UPDATE
return STATUS_CLOSE
if(!user.client)
return STATUS_CLOSE
if(!isnewplayer(user) && user.stat == DEAD)
return STATUS_DISABLED
return STATUS_INTERACTIVE