v0.2.3d: several tweaks to quest generation, should fix occasional crashing when using ankh on floors 1-9, and blacksmith rarely failing to spawn.

This commit is contained in:
Evan Debenham
2015-01-14 09:51:28 -05:00
parent 6457f0cf71
commit 58c3317b72
6 changed files with 15 additions and 16 deletions
@@ -59,10 +59,13 @@ public class CavesLevel extends RegularLevel {
}
@Override
protected void assignRoomType() {
super.assignRoomType();
Blacksmith.Quest.spawn( rooms );
protected boolean build() {
if (!super.build()) return false;
if (!Blacksmith.Quest.spawn( rooms ) && Dungeon.depth == 14)
return false;
return true;
}
@Override