Merge pull request #1245 from CHOMPStationBot/upstream-merge-9650

[MIRROR] [MIRROR] Event Managers can use TGUI interactions
This commit is contained in:
Nadyr
2021-04-11 22:59:54 -04:00
committed by GitHub
2 changed files with 11 additions and 5 deletions

View File

@@ -20,9 +20,9 @@
return
if(isobserver(user))
// // If they turn on ghost AI control, admins can always interact.
// if(user.client.advanced_admin_interaction)
// . = max(., STATUS_INTERACTIVE)
// Admins can always interact.
if(check_rights(R_ADMIN|R_EVENT, 0, src))
. = max(., STATUS_INTERACTIVE)
// Regular ghosts can always at least view if in range.
if(user.client)
@@ -122,4 +122,8 @@
/mob/living/carbon/human/shared_living_tgui_distance(atom/movable/src_object)
if((TK in mutations) && (get_dist(src, src_object) <= 2))
return STATUS_INTERACTIVE
return ..()
return ..()
// Topic Extensions for old UIs
/datum/proc/CanUseTopic(var/mob/user, var/datum/tgui_state/state)
return tgui_status(user, state)