Merge pull request #1502 from CHOMPStationBot/upstream-merge-9853

[MIRROR] Fixes vorepanel accessibility requirements
This commit is contained in:
Nadyr
2021-03-06 05:44:50 -05:00
committed by GitHub
+12 -1
View File
@@ -61,8 +61,19 @@
// Note, in order to allow others to look at others vore panels, this state would need
// to be changed to tgui_always_state, and a custom tgui_status() implemented for true "rights" management.
// Currently there is no way for others to look at others vore panels so the above concern can wait.
/datum/vore_look/tgui_state(mob/user)
return GLOB.tgui_self_state
return GLOB.tgui_always_state
/datum/vore_look/tgui_status(mob/user, datum/tgui_state/state)
. = STATUS_CLOSE
if(!state)
return
if(user.client)
if(user.stat)
. = max(., STATUS_UPDATE)
else
. = max(., STATUS_INTERACTIVE)
/datum/vore_look/var/static/list/nom_icons
/datum/vore_look/proc/cached_nom_icon(atom/target)