Skip to content

Commit

Permalink
FIX telekinesis unable to interact with things (#22881)
Browse files Browse the repository at this point in the history
  • Loading branch information
warface1234455 authored Jan 20, 2025
1 parent 7f90984 commit 84ad6a4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion code/_onclick/telekinesis.dm
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
if(user.stat || !tkMaxRangeCheck(user, src))
return
new /obj/effect/temp_visual/telekinesis(get_turf(src))
user.UnarmedAttack(src,0) // attack_hand, attack_paw, etc
user.UnarmedAttack(src, FALSE, list()) // attack_hand, attack_paw, etc
add_hiddenprint(user)
return

Expand Down
8 changes: 4 additions & 4 deletions code/game/machinery/_machinery.dm
Original file line number Diff line number Diff line change
Expand Up @@ -299,10 +299,6 @@ Class Procs:

return user.can_interact_with(src) //AIs don't care about petty mortal concerns like needing to be next to a machine to use it, but borgs do care somewhat

. = ..()
if(!.)
return FALSE

if(panel_open && !(interaction_flags_machine & INTERACT_MACHINE_OPEN))
return FALSE

Expand Down Expand Up @@ -395,6 +391,10 @@ Class Procs:
return FALSE
return _try_interact(user, modifiers)

/obj/machinery/attack_tk(mob/user, modifiers)
new /obj/effect/temp_visual/telekinesis(get_turf(src))
return attack_hand(user, modifiers)

/obj/machinery/attack_ai(mob/user, modifiers)
if(!(interaction_flags_machine & INTERACT_MACHINE_ALLOW_SILICON) && !IsAdminGhost(user))
return FALSE
Expand Down

0 comments on commit 84ad6a4

Please sign in to comment.