Fixes unfoldable boxes.

-Apparently storage proc for this thing was changed to return 1 regardless if the item had the quick empty verb or not, which in turn triggered the very first nope of the box specific code.
-Boxes can be quick emptied but lack the actual verb apparently?
This commit is contained in:
Verkister
2017-12-29 13:28:44 +02:00
parent c5b1fcf2b2
commit 7e99f11fe6
@@ -592,8 +592,9 @@
/obj/item/weapon/storage/attack_self(mob/user as mob)
if((user.get_active_hand() == src) || (isrobot(user)) && allow_quick_empty)
src.quick_empty()
return 1 // Is this return even needed?
if(src.verbs.Find(/obj/item/weapon/storage/verb/quick_empty))
src.quick_empty()
return 1
//Returns the storage depth of an atom. This is the number of storage items the atom is contained in before reaching toplevel (the area).
//Returns -1 if the atom was not found on container.