there's gonna be so many commit logs. hopefully this is the last.

This commit is contained in:
SandPoot
2021-03-10 01:34:25 -03:00
parent 024d0ec692
commit 221c059435
@@ -244,9 +244,7 @@
// Check if the user can use it.
/obj/machinery/telecomms/proc/canInteract(mob/user)
var/obj/item/I = user.get_active_held_item()
if(!I)
return FALSE
if(!issiliconoradminghost(user))
if(!issilicon(user) && I)
if(I.tool_behaviour == TOOL_MULTITOOL)
return TRUE
if(hasSiliconAccessInArea(user))
@@ -265,13 +263,13 @@
return null
var/obj/item/P = user.get_active_held_item()
// Is the ref not a null? and is it the actual type?
if(!P)
return null
if(isAI(user))
var/mob/living/silicon/ai/U = user
P = U.aiMulti
else if(iscyborg(user) && !in_range(user, src))
return null
if(!P)
return null
else if(P.tool_behaviour == TOOL_MULTITOOL)
return P
return P