mirror of
https://github.com/yairm210/Unciv.git
synced 2025-03-12 19:10:12 +07:00
Barbarians can be never defeated (#1940)
This commit is contained in:
parent
19cac1f7bf
commit
cd3004fedb
@ -279,6 +279,7 @@ class CivilizationInfo {
|
||||
/** Returns true if the civ was fully initialized and has no cities or settlers remaining */
|
||||
fun isDefeated()= cities.isEmpty()
|
||||
&& exploredTiles.isNotEmpty() // Dirty hack: exploredTiles are empty only before starting units are placed
|
||||
&& !isBarbarian() // Barbarians can be never defeated
|
||||
&& (citiesCreated > 0 || !getCivUnits().any { it.name == Constants.settler })
|
||||
|
||||
fun getEra(): TechEra {
|
||||
|
Loading…
Reference in New Issue
Block a user