From 40dbc173916dc91dec8035ffbadf5d721e68b2db Mon Sep 17 00:00:00 2001 From: uraniummeltdown Date: Fri, 27 Jan 2017 20:27:44 +0400 Subject: [PATCH] max storage depth for clicking items is 2 --- code/_onclick/click.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/_onclick/click.dm b/code/_onclick/click.dm index 66377ec3fcd..d9c8a7ad3a9 100644 --- a/code/_onclick/click.dm +++ b/code/_onclick/click.dm @@ -95,9 +95,9 @@ update_inv_r_hand(0) return - // operate two STORAGE levels deep here (item in backpack in src; NOT item in box in backpack in src) + // operate three levels deep here (item in backpack in src; item in box in backpack in src, not any deeper) var/sdepth = A.storage_depth(src) - if(A == loc || (A in loc) || (sdepth != -1 && sdepth <= 1)) + if(A == loc || (A in loc) || (sdepth != -1 && sdepth <= 2)) // No adjacency needed if(W) var/resolved = A.attackby(W,src)