put_in_hands() refactor.

This commit is contained in:
Zuhayr
2015-12-04 17:38:58 +10:30
parent 487c3ef3ac
commit 7c85f846eb
5 changed files with 58 additions and 43 deletions
+3
View File
@@ -242,6 +242,9 @@
// for items that can be placed in multiple slots
// note this isn't called during the initial dressing of a player
/obj/item/proc/equipped(var/mob/user, var/slot)
layer = 20
if(user.client) user.client.screen |= src
if(user.pulling == src) user.stop_pulling()
return
//Defines which slots correspond to which slot flags
@@ -18,9 +18,11 @@
/obj/item/device/chameleon/dropped()
disrupt()
..()
/obj/item/device/chameleon/equipped()
disrupt()
..()
/obj/item/device/chameleon/attack_self()
toggle()