[MIRROR] Fixed being able to activate BCI actions whilst not conscious (#29317)

* Fixed being able to activate BCI actions whilst not conscious (#85544)

## About The Pull Request
As the title says

## Why It's Good For The Game
Shouldn't be able to activate these whilst unconscious, or stall
activation to activate at a convenient time whilst unconsious.

## Changelog
🆑
fix: Fixed activating specific BCI actions whilst unconsious
/🆑

---------

Co-authored-by: Watermelon914 <3052169-Watermelon914@ users.noreply.gitlab.com>

* Fixed being able to activate BCI actions whilst not conscious

---------

Co-authored-by: Watermelon914 <37270891+Watermelon914@users.noreply.github.com>
Co-authored-by: Watermelon914 <3052169-Watermelon914@ users.noreply.gitlab.com>
This commit is contained in:
SkyratBot
2024-08-15 11:54:30 +02:00
committed by GitHub
parent 367fdc6c77
commit 35ffae1246
2 changed files with 4 additions and 2 deletions
@@ -39,7 +39,7 @@
return
var/mob/living/owner = bci.owner
if(!owner || !istype(owner) || !owner.client)
if(!owner || !istype(owner) || !owner.client || owner.stat >= SOFT_CRIT)
return
if(TIMER_COOLDOWN_RUNNING(parent.shell, COOLDOWN_CIRCUIT_TARGET_INTERCEPT))
@@ -48,7 +48,7 @@
var/mob/living/owner = bci.owner
if(!owner || !istype(owner) || !owner.client || (owner.stat >= UNCONSCIOUS))
if(!owner || !istype(owner) || !owner.client || (owner.stat >= SOFT_CRIT))
failure.set_output(COMPONENT_SIGNAL)
return
@@ -57,6 +57,8 @@
/obj/item/circuit_component/thought_listener/proc/thought_listen(mob/living/owner)
var/message = tgui_input_text(owner, input_desc.value ? input_desc.value : "", input_name.value ? input_name.value : "Thought Listener", "")
if(QDELETED(owner) || owner.stat >= SOFT_CRIT)
return
output.set_output(message)
trigger_output.set_output(COMPONENT_SIGNAL)
ready = TRUE