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
@@ -303,7 +303,7 @@ public class Blacksmith extends NPC {
}
}
public static void spawn( Collection<Room> rooms ) {
public static boolean spawn( Collection<Room> rooms ) {
if (!spawned && Dungeon.depth > 11 && Random.Int( 15 - Dungeon.depth ) == 0) {
Room blacksmith = null;
@@ -321,6 +321,7 @@ public class Blacksmith extends NPC {
}
}
}
return spawned;
}
}
}
@@ -209,7 +209,7 @@ public class Imp extends NPC {
}
}
public static void spawn( CityLevel level, Room room ) {
public static void spawn( CityLevel level ) {
if (!spawned && Dungeon.depth > 16 && Random.Int( 20 - Dungeon.depth ) == 0) {
Imp npc = new Imp();