v0.6.0: fixed multiple blacksmiths spawning in the caves
This commit is contained in:
parent
d8806ed4a5
commit
63752b11e9
|
@ -282,6 +282,10 @@ public class Blacksmith extends NPC {
|
||||||
if (!spawned && Dungeon.depth > 11 && Random.Int( 15 - Dungeon.depth ) == 0) {
|
if (!spawned && Dungeon.depth > 11 && Random.Int( 15 - Dungeon.depth ) == 0) {
|
||||||
|
|
||||||
rooms.add(new BlacksmithRoom());
|
rooms.add(new BlacksmithRoom());
|
||||||
|
spawned = true;
|
||||||
|
alternative = Random.Int( 2 ) == 0;
|
||||||
|
|
||||||
|
given = false;
|
||||||
|
|
||||||
}
|
}
|
||||||
return rooms;
|
return rooms;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user