fix modular id console telekinesis+ai (#56787)

This commit is contained in:
Fhaxaris
2021-02-10 14:32:15 -08:00
committed by GitHub
parent f78fd61755
commit 6d004ad4dc
2 changed files with 7 additions and 2 deletions
@@ -161,7 +161,7 @@
else
var/obj/item/I = user.get_active_held_item()
if(istype(I, /obj/item/card/id))
return card_slot2.try_insert(I)
return card_slot2.try_insert(I, user)
return FALSE
if("PRG_terminate")
if(!computer || !authenticated)
@@ -47,6 +47,11 @@
if(stored_card)
return FALSE
// item instead of player is checked so telekinesis will still work if the item itself is close
if(!in_range(src, I))
return FALSE
if(user)
if(!user.transferItemToLoc(I, src))
return FALSE
@@ -68,7 +73,7 @@
to_chat(user, "<span class='warning'>There are no cards in \the [src].</span>")
return FALSE
if(user)
if(user && !issilicon(user) && in_range(src, user))
user.put_in_hands(stored_card)
else
stored_card.forceMove(drop_location())