mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-28 06:16:37 -04:00
Better defeat condition.
This commit is contained in:
parent
01dd1fccd7
commit
451a95a86c
@ -302,7 +302,7 @@ class CivilizationInfo {
|
|||||||
|
|
||||||
override fun toString(): String {return civName} // for debug
|
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 {
|
fun getEra(): TechEra {
|
||||||
val maxEraOfTech = tech.researchedTechnologies
|
val maxEraOfTech = tech.researchedTechnologies
|
||||||
|
Loading…
x
Reference in New Issue
Block a user