Merge pull request #22727 from XDTM/PocketShoes

Fixes storage pockets preventing the use of items on the clothing item
This commit is contained in:
oranges
2017-01-06 09:57:45 +13:00
committed by GitHub
2 changed files with 5 additions and 4 deletions
@@ -392,7 +392,7 @@
return //Robots can't interact with storage items.
if(!can_be_inserted(W, 0 , user))
return
return 0
handle_item_insertion(W, 0 , user)
+4 -3
View File
@@ -79,9 +79,10 @@
user << "<span class='notice'>You fix the damages on [src] with [C].</span>"
return 1
if(pockets)
return pockets.attackby(W, user, params)
else
return ..()
var/i = pockets.attackby(W, user, params)
if(i)
return i
return ..()
/obj/item/clothing/AltClick(mob/user)
if(pockets && pockets.quickdraw && pockets.contents.len && !user.incapacitated())