Fixed strategic resources generation (#2745)

* Fixed strategic resources generation

* Removed the already PR'd part
This commit is contained in:
lyrjie 2020-06-20 23:09:15 +03:00 committed by GitHub
parent f6b738a04a
commit 835c0832e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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