v2.3.0: hero can now self-trample plants on level transitions
This commit is contained in:
@@ -1717,6 +1717,7 @@ public class Hero extends Char {
|
|||||||
//moving to a transition doesn't automatically trigger it when enemies are near
|
//moving to a transition doesn't automatically trigger it when enemies are near
|
||||||
&& (visibleEnemies.size() == 0 || cell == pos)
|
&& (visibleEnemies.size() == 0 || cell == pos)
|
||||||
&& !Dungeon.level.locked
|
&& !Dungeon.level.locked
|
||||||
|
&& !Dungeon.level.plants.containsKey(cell)
|
||||||
&& (Dungeon.depth < 26 || Dungeon.level.getTransition(cell).type == LevelTransition.Type.REGULAR_ENTRANCE) ) {
|
&& (Dungeon.depth < 26 || Dungeon.level.getTransition(cell).type == LevelTransition.Type.REGULAR_ENTRANCE) ) {
|
||||||
|
|
||||||
curAction = new HeroAction.LvlTransition( cell );
|
curAction = new HeroAction.LvlTransition( cell );
|
||||||
|
|||||||
Reference in New Issue
Block a user