From 63752b11e910889d7b058d0f3aa3d6cd8bb4b7f8 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sat, 22 Apr 2017 13:35:42 -0400 Subject: [PATCH] v0.6.0: fixed multiple blacksmiths spawning in the caves --- .../shatteredpixeldungeon/actors/mobs/npcs/Blacksmith.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/npcs/Blacksmith.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/npcs/Blacksmith.java index 2d0863993..809840217 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/npcs/Blacksmith.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/npcs/Blacksmith.java @@ -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;