From 5d2f66f1e7f8a9f35456e0f6acc478d1b2ecb294 Mon Sep 17 00:00:00 2001 From: Matheus Date: Tue, 4 Nov 2025 12:22:43 -0300 Subject: escadarias --- scripts/Map/DungeonGenerator.cs | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'scripts/Map') diff --git a/scripts/Map/DungeonGenerator.cs b/scripts/Map/DungeonGenerator.cs index f7a3f4d..779675f 100644 --- a/scripts/Map/DungeonGenerator.cs +++ b/scripts/Map/DungeonGenerator.cs @@ -92,8 +92,6 @@ public partial class DungeonGenerator : Node Vector2I lastRoom = new(0, 0); - bool placedStair = false; - // Cria as salas com base nas divisões geradas. foreach (MapDivision division in root.GetLeaves()) { @@ -115,13 +113,8 @@ public partial class DungeonGenerator : Node first = false; player.GridPosition = room.GetCenter(); } - else if (!placedStair && rng.RandiRange(0, 100) > 25) - { - lastRoom = room.GetCenter(); - placedStair = true; - } else if (!placedStair) { - lastRoom = room.GetCenter(); - } + + lastRoom = room.GetCenter(); // Colocamos os inimigos na sala. PlaceEntities(data, room); -- cgit v1.2.3