mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-06-06 05:53:27 +01:00
58aa86cb9f
* I need that gitignore file * Temp Commit - DOES NOT COMPILE * THE SHIT WORKS * Readme change * Disposal Unit --> TGUI * mmmm yes CI which may not actually work * New GitIgnore * ITS TGUI-NEXT BABY * Doc update * CI tweak * Chmod * And again * *sigh* * Lets appreciate the irony of me failing CI stages * 0/1 --> True/False * Fixes some update nonsense * CI Update * Lets try this * What about this maybe * NVM is hurting me * I swear to god * A little bit of validation in my life * V3 BABYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY * Fixes * Fixes NaN appearing for a few frames when UIs open * Fixes + Crew Monitor * Corn + Steel + Mochi Fixes * Forgot this * Fixes from stylemistake * Code Change * Adds logout proc * Offline implications + Resizeable crew monitor * Change locate() to locateUID() * Change div --> box
18 lines
521 B
Plaintext
18 lines
521 B
Plaintext
|
|
/**
|
|
* tgui state: human_adjacent_state
|
|
*
|
|
* In addition to default checks, only allows interaction for a
|
|
* human adjacent user.
|
|
**/
|
|
|
|
GLOBAL_DATUM_INIT(tgui_human_adjacent_state, /datum/tgui_state/human_adjacent_state, new)
|
|
|
|
/datum/tgui_state/human_adjacent_state/can_use_topic(src_object, mob/user)
|
|
. = user.default_can_use_tgui_topic(src_object)
|
|
|
|
var/dist = get_dist(src_object, user)
|
|
if((dist > 1) || (!ishuman(user)))
|
|
// Can't be used unless adjacent and human, even with TK
|
|
. = min(., STATUS_UPDATE)
|