code, still not enabled

This commit is contained in:
Letter N
2020-07-22 10:27:37 +08:00
parent 827a1ad523
commit 49941ea2e6
23 changed files with 936 additions and 602 deletions
+5 -2
View File
@@ -2,6 +2,9 @@
* tgui state: hands_state
*
* Checks that the src_object is in the user's hands.
*
* Copyright (c) 2020 Aleksej Komarov
* SPDX-License-Identifier: MIT
*/
GLOBAL_DATUM_INIT(hands_state, /datum/ui_state/hands_state, new)
@@ -19,7 +22,7 @@ GLOBAL_DATUM_INIT(hands_state, /datum/ui_state/hands_state, new)
return UI_INTERACTIVE
return UI_CLOSE
/mob/living/silicon/robot/hands_can_use_topic(obj/src_object)
if(activated(src_object) || istype(src_object.loc, /obj/item/weapon/gripper))
/mob/living/silicon/robot/hands_can_use_topic(src_object)
if(activated(src_object))
return UI_INTERACTIVE
return UI_CLOSE