v0.7.0: bugfixes:

- runestones appearing in bookshelves rarely
- crashes with new teleportation effect
This commit is contained in:
Evan Debenham 2018-06-20 19:18:56 -04:00
parent 2af7f9a3a2
commit ca23637437
2 changed files with 2 additions and 1 deletions

View File

@ -134,6 +134,7 @@ public class ScrollOfTeleportation extends Scroll {
if (!(Dungeon.level instanceof RegularLevel)){ if (!(Dungeon.level instanceof RegularLevel)){
teleportHero( hero ); teleportHero( hero );
return;
} }
RegularLevel level = (RegularLevel) Dungeon.level; RegularLevel level = (RegularLevel) Dungeon.level;

View File

@ -72,7 +72,7 @@ public class SecretRunestoneRoom extends SecretRoom {
do{ do{
dropPos = level.pointToCell(random()); dropPos = level.pointToCell(random());
} while (level.map[dropPos] != Terrain.EMPTY && level.heaps.get(dropPos) != null); } while (level.map[dropPos] != Terrain.EMPTY || level.heaps.get(dropPos) != null);
level.drop( Generator.random(Generator.Category.STONE), dropPos); level.drop( Generator.random(Generator.Category.STONE), dropPos);
do{ do{