|
|
@ -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); |
|
|
|
} |
|
|
|
} |
|
|
|