Map gen now works again and the enemy density is toned down.
This commit is contained in:
parent
e9277bf052
commit
cb976a69a9
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue