v2.4.0: fixed wandmaker always appearing on floor 7

This commit is contained in:
Evan Debenham
2024-05-10 11:19:18 -04:00
parent c718e49360
commit 41022d2b9b

View File

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