mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-27 05:46:43 -04:00
Resolved #514 - enemy civ is defeated even when he has settlers left, as per original Civ
This commit is contained in:
parent
4dcf2cacc4
commit
6a833ae89a
@ -301,7 +301,8 @@ class CivilizationInfo {
|
||||
|
||||
override fun toString(): String {return civName} // for debug
|
||||
|
||||
fun isDefeated()= cities.isEmpty() && !getCivUnits().any{it.name=="Settler"}
|
||||
fun isDefeated()= cities.isEmpty() && citiesCreated > 0
|
||||
|
||||
fun getEra(): TechEra {
|
||||
val maxEraOfTech = tech.researchedTechnologies
|
||||
.asSequence()
|
||||
|
Loading…
x
Reference in New Issue
Block a user