mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-09 07:57:50 +00:00
* The TGS thing * Revert the 516 revert * Further segment the world/New() proc * Fixes an issue here
16 lines
388 B
Plaintext
16 lines
388 B
Plaintext
/**
|
|
* tgui state: standing_state
|
|
*
|
|
* Checks that the user isn't incapacitated and is standing upright
|
|
*/
|
|
|
|
/datum/ui_state/not_incapacitated_state/standing = new
|
|
|
|
/datum/ui_state/not_incapacitated_state/standing/can_use_topic(src_object, mob/user)
|
|
if (!isliving(user))
|
|
return ..()
|
|
var/mob/living/living_user = user
|
|
if (living_user.body_position)
|
|
return UI_DISABLED
|
|
return ..()
|