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
@@ -102,19 +102,14 @@ public class SewerLevel extends RegularLevel {
}
}
@Override
protected void createMobs() {
super.createMobs();
Ghost.Quest.spawn( this );
}
@Override
protected void createItems() {
if (Dungeon.dewVial && Random.Int( 4 - Dungeon.depth ) == 0) {
addItemToSpawn( new DewVial() );
Dungeon.dewVial = false;
}
Ghost.Quest.spawn( this );
super.createItems();
}