v0.3.3a: 'visible enemies' rule no longer applies to container heaps

This commit is contained in:
Evan Debenham 2015-12-25 02:21:14 -05:00
parent f36870aa9b
commit 84ab14a327

View File

@ -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: