obj/item/deck
verb
Deck(var/obj/item/deck/A in usr.inventory)
set category = null
set src in usr
if(length(A.deck) == 0 && length(A.extra_deck) == 0)
usr << "Nothing is in this deck"
return
usr << "Main Deck"
for(var/obj/card/monster/B in A.deck)
usr << B.name
for(var/obj/card/spell/B in A.deck)
usr << B.name
for(var/obj/card/trap/B in A.deck)
usr << B.name
usr << "<br></br>Extra Deck"
for(var/B in A.extra_deck)
usr << B
Break_Deck(var/obj/item/deck/A in usr.inventory)
set category = null
for(var/obj/card/B in A.deck)
usr.trunk = usr.trunk + B
B.dir = NORTH
usr << "[B.name] added to trunk!"
del(A)
Problem description:
I want these two verbs to be accessed while in the inventory but the only way I can do it is when I set the location of the item to usr. Is there a way I can access it anyway without putting it in the usr.contents?
If, for instance, you're displaying "everything in contents" inside a statpanel or something, then you should change those to display only the items you actually want to list.