Refresh fix, Dungeon Builder v5
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user