The silicon law manager now only requires the host to be conscious.

This should mean that the law manager is available even for carded AIs, even with the wireless interface disabled. Fixes #11139.
This commit is contained in:
PsiOmegaDelta
2015-09-28 12:15:16 +02:00
committed by PsiOmega
parent c3d6fd07fd
commit d77bcd7937
4 changed files with 10 additions and 2 deletions

View File

@@ -14,7 +14,7 @@
/mob/proc/shared_nano_interaction()
if (src.stat || !client)
return STATUS_CLOSE // no updates, close the interface
else if (restrained() || lying || stat || stunned || weakened)
else if (restrained() || lying || stat || stunned || weakened) // TODO: Change to incapaciated() on merge
return STATUS_UPDATE // update only (orange visibility)
return STATUS_INTERACTIVE

View File

@@ -0,0 +1,7 @@
/*
This state only checks if user is conscious.
*/
/var/global/datum/topic_state/conscious_state/conscious_state = new()
/datum/topic_state/conscious_state/can_use_topic(var/src_object, var/mob/user)
return user.stat == CONSCIOUS ? STATUS_INTERACTIVE : STATUS_CLOSE