Adds the ability to use storage in storage (#17142)

* Adds the ability to use storage in storage

- Also adds a description to the evidence bag giving detail on how to use it.

* Update vorestation.dme

* destroys chompstation
This commit is contained in:
Cameron Lennox
2025-02-16 04:29:10 -05:00
committed by GitHub
parent f8c24bcbe0
commit 65db3fe9f3
4 changed files with 8 additions and 5 deletions
@@ -2,7 +2,7 @@
/obj/item/evidencebag
name = "evidence bag"
desc = "An empty evidence bag."
desc = "An empty evidence bag. Use by clicking on the bag and dragging it to the item you want to bag."
icon = 'icons/obj/storage.dmi'
icon_state = "evidenceobj"
item_state = null
@@ -27,7 +27,7 @@
//If it isn't on the floor. Do some checks to see if it's in our hands or a box. Otherwise give up.
if(istype(I.loc,/obj/item/storage)) //in a container.
var/sdepth = I.storage_depth(user)
if (sdepth == -1 || sdepth > 1)
if (sdepth > MAX_STORAGE_REACH)
return //too deeply nested to access
var/obj/item/storage/U = I.loc