mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-13 17:14:47 +01:00
[MIRROR] fix modular id console telekinesis+ai (#3276)
* fix modular id console telekinesis+ai (#56787) * fix modular id console telekinesis+ai Co-authored-by: Fhaxaris <Chrisamcculler@gmail.com>
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user