Better defeat condition.

This commit is contained in:
Duan Tao 2019-03-08 22:37:26 +08:00
parent 01dd1fccd7
commit 451a95a86c

View File

@ -302,7 +302,7 @@ class CivilizationInfo {
override fun toString(): String {return civName} // for debug
fun isDefeated()= cities.isEmpty() && citiesCreated > 0
fun isDefeated()= cities.isEmpty() && (citiesCreated > 0 || !getCivUnits().any{it.name=="Settler"})
fun getEra(): TechEra {
val maxEraOfTech = tech.researchedTechnologies
@ -490,4 +490,4 @@ class CivilizationInfo {
}
//endregion
}
}