- Only humans can now use the 'pick up' verb

- 'pick up' verb now checks if you hands are actually empty before executing an attack_hand() on the item it's tied to.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3740 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
baloh.matevz
2012-06-04 22:19:59 +00:00
parent 2233548788
commit 3f66d897a2
+8 -2
View File
@@ -311,12 +311,18 @@
/obj/item/verb/verb_pickup()
set src in oview(1)
set category = "Object"
set name = "Pickup"
set name = "Pick up"
if(!usr.canmove || usr.stat || usr.restrained())
return
src.attack_hand(usr)
if(ishuman(usr))
if(usr.get_active_hand() == null)
src.attack_hand(usr)
else
usr << "\red You already have something in your hand."
else
usr << "\red This mob type can't use this verb."
/obj/item/device
icon = 'device.dmi'