Of Helper Procs & Dumbs

Makes a mob/proc/can_use_hand(), which determines whether or not a mob can use a given hand.

Redefined in human.dm to check a hand's status and usability.
This commit is contained in:
skull132
2016-03-25 20:33:10 +02:00
parent 4bce434a56
commit 17938853d5
9 changed files with 32 additions and 59 deletions
+2 -1
View File
@@ -299,8 +299,9 @@
if (user.get_inactive_hand() == src)
var/obj/item/stack/F = src.split(1)
if (F)
if (!user.put_in_hands(F))
if (!user.can_use_hand())
return
user.put_in_hands(F)
src.add_fingerprint(user)
F.add_fingerprint(user)
spawn(0)