Files
vgstation13/code/modules/tgui/states/standing.dm
ShiftyRail d79c1fe070 Byond 516 v2.0 (#37553)
* The TGS thing

* Revert the 516 revert

* Further segment the world/New() proc

* Fixes an issue here
2025-05-12 00:50:25 -05:00

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 ..()