v0.6.0: fixed multiple blacksmiths spawning in the caves

This commit is contained in:
Evan Debenham 2017-04-22 13:35:42 -04:00
parent d8806ed4a5
commit 63752b11e9

View File

@ -282,6 +282,10 @@ public class Blacksmith extends NPC {
if (!spawned && Dungeon.depth > 11 && Random.Int( 15 - Dungeon.depth ) == 0) {
rooms.add(new BlacksmithRoom());
spawned = true;
alternative = Random.Int( 2 ) == 0;
given = false;
}
return rooms;