engine/generators/source/MineGenerator.cpp
// Generate a few traps throughout the mines.
Generate a few traps throughout the mines.
Generate a few traps throughout the mines .
void MineGenerator::generate_traps(MapPtr map)
{
  int max_traps = map->size().get_x() / MINE_MAX_TRAPS_DIVISOR;
  int num_traps = RNG::range(MINE_MIN_TRAPS, max_traps);
  GeneratorUtils::generate_traps(map, num_traps);
}
void MineGenerator :: generate_traps ( MapPtr map ) { int max_traps = map -> size ( ) . get_x ( ) / MINE_MAX_TRAPS_DIVISOR ; int num_traps = RNG :: range ( MINE_MIN_TRAPS , max_traps ) ; GeneratorUtils :: generate_traps ( map , num_traps ) ; }
Generate a few traps throughout the mines.
Generate a few traps throughout the mines .