v0.3.3: tweaked how items auto-pickup
This commit is contained in:
parent
1cd0538e83
commit
0c68376863
|
@ -1056,8 +1056,10 @@ public class Hero extends Char {
|
|||
} else {
|
||||
curAction = new HeroAction.Attack( ch );
|
||||
}
|
||||
|
||||
} 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.
|
||||
&& (visibleEnemies.size() == 0 || cell == pos)) {
|
||||
|
||||
switch (heap.type) {
|
||||
case HEAP:
|
||||
|
|
Loading…
Reference in New Issue
Block a user