Ruins no longer give researched techs - kudos philn3v!
Can no longer see over mountains
This commit is contained in:
parent
5e8cf6ea84
commit
8c3282ddce
3 changed files with 5 additions and 3 deletions
|
@ -52,7 +52,7 @@ class GameStarter(){
|
|||
}
|
||||
|
||||
fun getStartingLocations(numberOfPlayers:Int,tileMap: TileMap): Stack<TileInfo> {
|
||||
for(minimumDistanceBetweenStartingLocations in 7 downTo 1){
|
||||
for(minimumDistanceBetweenStartingLocations in 7 downTo 0){
|
||||
val freeTiles = tileMap.values
|
||||
.filter { it.isLand() && vectorIsWithinNTilesOfEdge(it.position,3,tileMap)}
|
||||
.toMutableList()
|
||||
|
|
|
@ -329,7 +329,8 @@ class MapUnit {
|
|||
city.population.autoAssignPopulation()
|
||||
civInfo.addNotification("We have found survivors the ruins - population added to ["+city.name+"]",city.location, Color.GREEN)
|
||||
}
|
||||
val researchableAncientEraTechs = GameBasics.Technologies.values.filter { civInfo.tech.canBeResearched(it.name)}
|
||||
val researchableAncientEraTechs = GameBasics.Technologies.values
|
||||
.filter { !civInfo.tech.isResearched(it.name) && civInfo.tech.canBeResearched(it.name)}
|
||||
if(researchableAncientEraTechs.isNotEmpty())
|
||||
actions.add {
|
||||
val tech = researchableAncientEraTechs.getRandom().name
|
||||
|
|
|
@ -79,7 +79,8 @@ open class TileInfo {
|
|||
fun getHeight(): Int {
|
||||
var height = 0
|
||||
if (listOf("Forest", "Jungle").contains(terrainFeature)) height += 1
|
||||
if ("Hill" == baseTerrain) height += 2
|
||||
if (baseTerrain == "Hill") height += 2
|
||||
if(baseTerrain=="Mountain") height = 4
|
||||
return height
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue