From 41022d2b9bad8a3dda3ae1f172f8472665024ade Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Fri, 10 May 2024 11:19:18 -0400 Subject: [PATCH] v2.4.0: fixed wandmaker always appearing on floor 7 --- .../shatteredpixeldungeon/actors/mobs/npcs/Wandmaker.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 1cbf5aa88..705a8c65a 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 @@ -341,8 +341,8 @@ public class Wandmaker extends NPC { public static ArrayList spawnRoom( ArrayList rooms) { questRoomSpawned = false; - if (!spawned && (type != 0 || Dungeon.depth > 6)) { - + 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;