mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-23 13:18:09 +01:00
Inventory Depth 2 (#7191)
This commit is contained in:
@@ -727,13 +727,13 @@
|
||||
|
||||
while (cur_atom && !(cur_atom in container.contents))
|
||||
if (isarea(cur_atom))
|
||||
return -1
|
||||
return INFINITY // CHOMPedit
|
||||
if (istype(cur_atom.loc, /obj/item/weapon/storage))
|
||||
depth++
|
||||
cur_atom = cur_atom.loc
|
||||
|
||||
if (!cur_atom)
|
||||
return -1 //inside something with a null loc.
|
||||
return INFINITY // CHOMPedit - inside something with a null loc.
|
||||
|
||||
return depth
|
||||
|
||||
@@ -745,13 +745,13 @@
|
||||
|
||||
while (cur_atom && !isturf(cur_atom))
|
||||
if (isarea(cur_atom))
|
||||
return -1
|
||||
return INFINITY // CHOMPedit
|
||||
if (istype(cur_atom.loc, /obj/item/weapon/storage))
|
||||
depth++
|
||||
cur_atom = cur_atom.loc
|
||||
|
||||
if (!cur_atom)
|
||||
return -1 //inside something with a null loc.
|
||||
return INFINITY //CHOMPedit - inside something with a null loc.
|
||||
|
||||
return depth
|
||||
|
||||
|
||||
Reference in New Issue
Block a user