Fixed strategic resources generation (#2745)
* Fixed strategic resources generation * Removed the already PR'd part
This commit is contained in:
parent
f6b738a04a
commit
835c0832e2
1 changed files with 1 additions and 2 deletions
|
@ -133,8 +133,7 @@ class MapGenerator(val ruleset: Ruleset) {
|
|||
// remove the tiles where previous resources have been placed
|
||||
val suitableTiles = candidateTiles
|
||||
.filter { it.resource == null
|
||||
&& resource.terrainsCanBeFoundOn.contains(it.getBaseTerrain().name)
|
||||
&& (it.terrainFeature==null || ruleset.tileImprovements.containsKey("Remove "+it.terrainFeature)) }
|
||||
&& resource.terrainsCanBeFoundOn.contains(it.getLastTerrain().name) }
|
||||
|
||||
val locations = randomness.chooseSpreadOutLocations(resourcesPerType, suitableTiles, distance)
|
||||
|
||||
|
|
Loading…
Reference in a new issue