This commit is contained in:
2026-01-11 13:26:12 +01:00
parent 07a7ed3bca
commit 26de2ca6e0
7 changed files with 80 additions and 8 deletions

View File

@@ -148,8 +148,8 @@ func generate_dungeon(map_size: Vector2i, seed_value: int = 0, level: int = 1) -
if rng.randf() < 0.3: # 30% chance for a hole
_add_hole_to_room(room, grid, tile_grid, map_size, rng)
# 5. Mark start room (first room)
var start_room_index = 0
# 5. Mark start room (random room for variety)
var start_room_index = rng.randi() % all_rooms.size()
var exit_room_index = -1 # Declare exit_room_index early to avoid scope issues
all_rooms[start_room_index].modifiers.append({"type": "START"})