From 231fa83a89e6c8e08d6fbb0d6f71717fcf4b51aa Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Mon, 19 May 2025 14:58:21 -0400 Subject: [PATCH] v3.1.0: fixed debug code that spawned wandmaker on floor 7 always --- .../shatteredpixeldungeon/actors/mobs/npcs/Wandmaker.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/npcs/Wandmaker.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/npcs/Wandmaker.java index 2937c2924..3845fcb55 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/npcs/Wandmaker.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/npcs/Wandmaker.java @@ -345,7 +345,7 @@ public class Wandmaker extends NPC { public static ArrayList spawnRoom( ArrayList rooms) { questRoomSpawned = false; - if (!spawned && (type != 0 || (Dungeon.depth == 7))) { + if (!spawned && (type != 0 || (Dungeon.depth > 6 && Random.Int( 10 - Dungeon.depth ) == 0))) { // decide between 1,2, or 3 for quest type. if (type == 0) type = Random.Int(3)+1;