v0.7.0: bugfixes:
- runestones appearing in bookshelves rarely - crashes with new teleportation effect
This commit is contained in:
parent
2af7f9a3a2
commit
ca23637437
|
@ -134,6 +134,7 @@ public class ScrollOfTeleportation extends Scroll {
|
|||
|
||||
if (!(Dungeon.level instanceof RegularLevel)){
|
||||
teleportHero( hero );
|
||||
return;
|
||||
}
|
||||
|
||||
RegularLevel level = (RegularLevel) Dungeon.level;
|
||||
|
|
|
@ -72,7 +72,7 @@ public class SecretRunestoneRoom extends SecretRoom {
|
|||
|
||||
do{
|
||||
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);
|
||||
|
||||
do{
|
||||
|
|
Loading…
Reference in New Issue
Block a user