Refresh fix, Dungeon Builder v7

This commit is contained in:
dingo
2026-01-05 11:45:42 -05:00
parent 3f9f8fdb3d
commit 95b2dc8928
+11
View File
@@ -166,12 +166,18 @@ public class DungeonGeneratorV3
.Where(p => p.IsEnabled)
.ToListAsync();
Console.WriteLine($"[DungeonGenV3] Found {allPalettes.Count} enabled palettes");
if (allPalettes.Count > 0)
{
// Randomly select any enabled palette
_palette = allPalettes[_rng.Next(allPalettes.Count)];
Console.WriteLine($"[DungeonGenV3] Randomly selected palette: {_palette.Name} (biome: {_palette.Biome ?? "none"})");
}
else
{
Console.WriteLine($"[DungeonGenV3] WARNING: No enabled palettes found!");
}
}
if (_palette != null)
@@ -268,6 +274,11 @@ public class DungeonGeneratorV3
.Where(r => roomIds.Contains(r.Id) && r.IsEnabled)
.Where(r => r.MinTier <= _tier && (r.MaxTier == 0 || r.MaxTier >= _tier))
.ToListAsync();
Console.WriteLine($"[DungeonGenV3] Loaded {_roomTemplates.Count} room templates from palette IDs: [{string.Join(",", roomIds)}]");
}
else
{
Console.WriteLine($"[DungeonGenV3] Palette has no room template IDs configured");
}
CategorizeRoomTemplates();