mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-03 05:21:27 +00:00
## About The Pull Request You can no longer view operating computer UI while lying down as to prevent patients from peeking at the computer. ## Why It's Good For The Game Currently its very hard to pull off a surprise brainwashing surgery on someone as the patient can always peek at the computer to see what exactly is going on. With this change players will have to trust their doctors unless they want to be a victim of surgery related shenanigans. ## Changelog 🆑 balance: You can no longer view operating computer UI while lying down /🆑
18 lines
472 B
Plaintext
18 lines
472 B
Plaintext
/**
|
|
* tgui state: standing_state
|
|
*
|
|
* Checks that the user isn't incapacitated and is standing upright
|
|
*/
|
|
|
|
GLOBAL_DATUM_INIT(standing_state, /datum/ui_state/not_incapacitated_state/standing, new)
|
|
|
|
/datum/ui_state/not_incapacitated_state/standing
|
|
|
|
/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 ..()
|