mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-28 14:24:43 -04:00
Tests are sometimes ridiculous.
This commit is contained in:
parent
889d6a1587
commit
0c84b95614
@ -274,7 +274,7 @@ class CivilizationInfo {
|
|||||||
/** Returns true if the civ was fully initialized and has no cities remaining */
|
/** Returns true if the civ was fully initialized and has no cities remaining */
|
||||||
fun isDefeated(): Boolean {
|
fun isDefeated(): Boolean {
|
||||||
// Dirty hack: exploredTiles are empty only before starting units are placed
|
// Dirty hack: exploredTiles are empty only before starting units are placed
|
||||||
if (isBarbarian() || isSpectator() || exploredTiles.isEmpty()) return false
|
if (exploredTiles.isEmpty() || isBarbarian() || isSpectator()) return false
|
||||||
// Scenarios are 'to the death'... for now
|
// Scenarios are 'to the death'... for now
|
||||||
if (gameInfo.gameParameters.victoryTypes.contains(VictoryType.Scenario))
|
if (gameInfo.gameParameters.victoryTypes.contains(VictoryType.Scenario))
|
||||||
return cities.isEmpty() && getCivUnits().none()
|
return cities.isEmpty() && getCivUnits().none()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user