v0.3.3a: 'visible enemies' rule no longer applies to container heaps
This commit is contained in:
parent
f36870aa9b
commit
84ab14a327
|
@ -1058,8 +1058,10 @@ public class Hero extends Char {
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if ((heap = Dungeon.level.heaps.get( cell )) != null
|
} else if ((heap = Dungeon.level.heaps.get( cell )) != null
|
||||||
//moving to an item doesn't auto-pickup when enemies are near.
|
//moving to an item doesn't auto-pickup when enemies are near...
|
||||||
&& (visibleEnemies.size() == 0 || cell == pos)) {
|
&& (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) {
|
switch (heap.type) {
|
||||||
case HEAP:
|
case HEAP:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user