Refresh fix, Dungeon Builder v5

This commit is contained in:
dingo
2026-01-05 11:07:48 -05:00
parent 124fd4f40c
commit e1fe2c1d19
+7
View File
@@ -440,6 +440,13 @@ public class DungeonGeneratorV3
_ => _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;
}
BuilderRoomTemplate? template = null;
int roomWidth, roomHeight;