Topic now uses the NanoUI can_interact_with_interface() proc to determine functionality.

can_interact_with_interface() has been updated with the old canUseTopic() checks.
This commit is contained in:
PsiOmega
2015-02-03 20:24:11 +01:00
parent 9da907cef4
commit 21a0aa05e5
4 changed files with 112 additions and 105 deletions
@@ -1276,16 +1276,6 @@ var/list/robot_verbs_default = list(
return 1
return 0
/mob/living/silicon/robot/syndicate/canUseTopic(atom/movable/M)
if(stat || lockcharge || stunned || weakened)
return
if(z in config.admin_levels)
return 1
if(istype(M, /obj/machinery))
var/obj/machinery/Machine = M
return Machine.emagged
return 1
/mob/living/silicon/robot/proc/notify_ai(var/notifytype, var/oldname, var/newname)
if(!connected_ai)
return