Added catching. Wow that was easy.

This commit is contained in:
ZomgPonies
2013-11-24 00:03:21 -05:00
parent b19764baad
commit 28a0dfa129
3 changed files with 16 additions and 0 deletions
@@ -0,0 +1,2 @@
/mob/living/carbon/alien/hitby(atom/movable/AM)
..(AM, 1)
@@ -0,0 +1,12 @@
/mob/living/carbon/hitby(atom/movable/AM, skip)
if(!skip) //ugly, but easy
if(in_throw_mode && !get_active_hand()) //empty active hand and we're in throw mode
if(canmove && !restrained())
if(istype(AM, /obj/item))
var/obj/item/I = AM
if(isturf(I.loc))
put_in_active_hand(I)
visible_message("<span class='warning'>[src] catches [I]!</span>")
throw_mode_off()
return
..()