From 7e99f11fe62576a6705aefdd0d9e07e204532090 Mon Sep 17 00:00:00 2001 From: Verkister Date: Fri, 29 Dec 2017 13:28:44 +0200 Subject: [PATCH] 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? --- code/game/objects/items/weapons/storage/storage.dm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/code/game/objects/items/weapons/storage/storage.dm b/code/game/objects/items/weapons/storage/storage.dm index a58986b8a6f..078548ed3ff 100644 --- a/code/game/objects/items/weapons/storage/storage.dm +++ b/code/game/objects/items/weapons/storage/storage.dm @@ -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.