mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-19 20:15:47 +01:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user