v3.1.0: fixed debug code that spawned wandmaker on floor 7 always

This commit is contained in:
Evan Debenham
2025-05-19 14:58:21 -04:00
parent 0c737dad88
commit 231fa83a89

View File

@@ -345,7 +345,7 @@ public class Wandmaker extends NPC {
public static ArrayList<Room> spawnRoom( ArrayList<Room> 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;