v2.3.0: hero can now self-trample plants on level transitions

This commit is contained in:
Evan Debenham
2023-10-26 15:56:20 -04:00
parent ce6d400ec9
commit 52b2163712
@@ -1717,6 +1717,7 @@ public class Hero extends Char {
//moving to a transition doesn't automatically trigger it when enemies are near
&& (visibleEnemies.size() == 0 || cell == pos)
&& !Dungeon.level.locked
&& !Dungeon.level.plants.containsKey(cell)
&& (Dungeon.depth < 26 || Dungeon.level.getTransition(cell).type == LevelTransition.Type.REGULAR_ENTRANCE) ) {
curAction = new HeroAction.LvlTransition( cell );