mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
Merge pull request #1245 from CHOMPStationBot/upstream-merge-9650
[MIRROR] [MIRROR] Event Managers can use TGUI interactions
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user