From cb976a69a941bc345e8767803438a9e368a8fab1 Mon Sep 17 00:00:00 2001 From: "Zed A. Shaw" Date: Sun, 12 Jan 2025 15:20:19 -0500 Subject: [PATCH] Map gen now works again and the enemy density is toned down. --- worldbuilder.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/worldbuilder.cpp b/worldbuilder.cpp index dc6e76b..96d4efb 100644 --- a/worldbuilder.cpp +++ b/worldbuilder.cpp @@ -238,7 +238,8 @@ void WorldBuilder::place_entities(DinkyECS::World &world) { } for(size_t room_num = $map.room_count() - 1; room_num > 0; room_num--) { - if(room_num % 2 == 0) { + int has_combatant = Random::uniform(0, 3); + if(has_combatant == 0) { std::string key = keys[room_num % keys.size()]; place_combatant(world, $map, key, room_num); }