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