[MIRROR] Telekinesis can throw non items (vending machines, lockers) only 1 tile far (#2626)

* Telekinesis can throw non items (vending machines, lockers) only 1 tile far (#56063)

Telekinesis users can now only throw items 10 tiles, everything else can only be thrown 1 tile

* Telekinesis can throw non items (vending machines, lockers) only 1 tile far

Co-authored-by: Gamer025 <33846895+Gamer025@users.noreply.github.com>
This commit is contained in:
SkyratBot
2021-01-10 23:18:35 +01:00
committed by GitHub
parent 69f42d8c2f
commit b8cde47f70
3 changed files with 7 additions and 1 deletions

View File

@@ -93,6 +93,7 @@
layer = ABOVE_HUD_LAYER
plane = ABOVE_HUD_PLANE
///Object focused / selected by the TK user
var/atom/movable/focus
var/mob/living/carbon/tk_user
@@ -171,7 +172,8 @@
else
. = TRUE
apply_focus_overlay()
focus.throw_at(target, 10, 1,user)
//Only items can be thrown 10 tiles everything else only 1 tile
focus.throw_at(target, focus.tk_throw_range, 1,user)
user.changeNext_move(CLICK_CD_MELEE)
update_icon()