Adds juice to picking up stuff (#39231)

* Adds juice to picking up stuff

Stolen completely from https://github.com/OracleStation/OracleStation/pull/1072

* perfection

* Pickup animation now tweens to the correct spot if you move

* mutable appearance
This commit is contained in:
Iamgoofball
2018-07-20 16:23:15 -07:00
committed by yogstation13-bot
parent fd7089dd12
commit 0ec3213f7d
2 changed files with 38 additions and 0 deletions

View File

@@ -172,6 +172,8 @@
/mob/proc/put_in_hand(obj/item/I, hand_index, forced = FALSE)
if(forced || can_put_in_hand(I, hand_index))
if(isturf(I.loc))
I.do_pickup_animation(src)
if(hand_index == null)
return FALSE
if(get_item_for_held_index(hand_index) != null)