Skip to content

Commit

Permalink
feat(stealth): will no longer play pickup anims on walk
Browse files Browse the repository at this point in the history
  • Loading branch information
Filatelele authored Jul 4, 2024
1 parent 984cbe4 commit a5e04ba
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 4 additions & 2 deletions code/game/objects/items.dm
Original file line number Diff line number Diff line change
Expand Up @@ -381,8 +381,10 @@

if(user.put_in_active_hand(src))
if(isturf(old_loc))
var/obj/effect/temporary/item_pickup_ghost/ghost = new /obj/effect/temporary/item_pickup_ghost(old_loc, src)
ghost.animate_towards(user)
var/mob/living/l_user = user
if(l_user.can_animate_pickup())
var/obj/effect/temporary/item_pickup_ghost/ghost = new /obj/effect/temporary/item_pickup_ghost(old_loc, src)
ghost.animate_towards(user)
if(randpixel)
pixel_x = rand(-randpixel, randpixel)
pixel_y = rand(-randpixel/2, randpixel/2)
Expand Down
3 changes: 3 additions & 0 deletions code/modules/mob/living/living.dm
Original file line number Diff line number Diff line change
Expand Up @@ -948,3 +948,6 @@
. = ..()
if(stat != old_stat)
SEND_SIGNAL(src, SIGNAL_STAT_SET, src, old_stat, new_stat)

/mob/living/proc/can_animate_pickup()
return m_intent != M_WALK

0 comments on commit a5e04ba

Please sign in to comment.