Map gen now works again and the enemy density is toned down.

main
Zed A. Shaw 1 week ago
parent e9277bf052
commit cb976a69a9
  1. 3
      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--) { for(size_t room_num = $map.room_count() - 1; room_num > 0; room_num--) {
if(room_num % 2 == 0) { int has_combatant = Random::uniform<int>(0, 3);
if(has_combatant == 0) {
std::string key = keys[room_num % keys.size()]; std::string key = keys[room_num % keys.size()];
place_combatant(world, $map, key, room_num); place_combatant(world, $map, key, room_num);
} }

Loading…
Cancel
Save