From 84ab14a327545b83e7d1e489666232233247f827 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Fri, 25 Dec 2015 02:21:14 -0500 Subject: [PATCH] v0.3.3a: 'visible enemies' rule no longer applies to container heaps --- .../shatteredpixeldungeon/actors/hero/Hero.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Hero.java b/src/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Hero.java index 77d11a21e..cd16c873c 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Hero.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Hero.java @@ -1058,8 +1058,10 @@ public class Hero extends Char { } } else if ((heap = Dungeon.level.heaps.get( cell )) != null - //moving to an item doesn't auto-pickup when enemies are near. - && (visibleEnemies.size() == 0 || cell == pos)) { + //moving to an item doesn't auto-pickup when enemies are near... + && (visibleEnemies.size() == 0 || cell == pos || + //...but only for standard heaps, chests and similar open as normal. + (heap.type != Type.HEAP && heap.type != Type.FOR_SALE))) { switch (heap.type) { case HEAP: