ID:271889
 
Is it possible to make a storage system that only allows you to store items, if the codeing is like such
obj/Item/Shirt

can i make another object that i can put the shirt into, i tired
        Chest
icon_state="chest"
density=1
verb/Store_Items(var/obj/Items/A=/obj/Items in usr)
set src in oview(1)
A.loc = src
return
verb/Take_Items(var/obj/Items/A=/obj/Items in src)
set src in oview(1)
A.loc = usr
return

But it caused all objects to be storable
mob/proc/items()
var/list/L = list()
for(var/obj/Items/I in src)
L += I
return L


//...
Chest
verb/Store_Items(var/obj/Items/A in usr.items())