mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 11:37:40 +01:00
* 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
30 lines
846 B
Plaintext
30 lines
846 B
Plaintext
/**
|
|
* tgui state: not_incapacitated_state
|
|
*
|
|
* Checks that the user isn't incapacitated
|
|
**/
|
|
|
|
GLOBAL_DATUM_INIT(tgui_not_incapacitated_state, /datum/tgui_state/not_incapacitated_state, new)
|
|
|
|
/**
|
|
* tgui state: not_incapacitated_turf_state
|
|
*
|
|
* Checks that the user isn't incapacitated and that their loc is a turf
|
|
**/
|
|
|
|
GLOBAL_DATUM_INIT(tgui_not_incapacitated_turf_state, /datum/tgui_state/not_incapacitated_state, new(no_turfs = TRUE))
|
|
|
|
/datum/tgui_state/not_incapacitated_state
|
|
var/turf_check = FALSE
|
|
|
|
/datum/tgui_state/not_incapacitated_state/New(loc, no_turfs = FALSE)
|
|
..()
|
|
turf_check = no_turfs
|
|
|
|
/datum/tgui_state/not_incapacitated_state/can_use_topic(src_object, mob/user)
|
|
if(user.stat)
|
|
return STATUS_CLOSE
|
|
if(user.incapacitated() || (turf_check && !isturf(user.loc)))
|
|
return STATUS_DISABLED
|
|
return STATUS_INTERACTIVE
|