Refresh fix, Dungeon Builder v6

This commit is contained in:
dingo
2026-01-05 11:23:16 -05:00
parent e1fe2c1d19
commit 3f9f8fdb3d
+4 -7
View File
@@ -434,18 +434,15 @@ public class DungeonGeneratorV3
var templates = type switch
{
RoomType.Entrance => _entranceRooms,
RoomType.Exit => _exitRooms.Count > 0 ? _exitRooms : _bossRooms,
RoomType.Exit => _exitRooms,
RoomType.Boss => _bossRooms,
RoomType.Treasure => _treasureRooms,
_ => _normalRooms
};
// Fallback: if no templates for this type, try to use any available room template
if (templates.Count == 0 && _roomTemplates.Count > 0)
{
Console.WriteLine($"[DungeonGenV3] No {type} templates, using fallback from {_roomTemplates.Count} available templates");
templates = _roomTemplates;
}
// NOTE: We intentionally do NOT fallback to other templates here.
// If no templates exist for this room type, we generate a procedural room.
// This prevents tiny entrance rooms being used everywhere.
BuilderRoomTemplate? template = null;
int roomWidth, roomHeight;