mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-24 03:53:12 -04:00
update VictoryScreenIllustrations
This commit is contained in:
parent
b5c44e3a22
commit
01fde6c4a4
@ -246,14 +246,9 @@ class VictoryScreenIllustrations(
|
|||||||
civ.policies.completedBranches.size
|
civ.policies.completedBranches.size
|
||||||
}
|
}
|
||||||
MilestoneType.MoreCountableThanEachPlayer -> {
|
MilestoneType.MoreCountableThanEachPlayer -> {
|
||||||
var amountDone = 0; var amountToDo = 0;
|
val relevantCivs = civ.gameInfo.civilizations.filter { milestone.getMoreCountableThanOtherCivRelevant(civ, it) }
|
||||||
for (otherCiv in civ.gameInfo.civilizations) {
|
total += if (selectedCiv.shouldHideCivCount()) game.gameParameters.maxNumberOfPlayers - 1 else relevantCivs.size
|
||||||
if (!milestone.getMoreCountableThanOtherCivRelevant(civ, otherCiv)) continue
|
relevantCivs.count { milestone.getMoreCountableThanOtherCivPercent(civ, it) > 100f }
|
||||||
amountToDo++
|
|
||||||
if (milestone.getMoreCountableThanOtherCivPercent(civ, otherCiv) > 100f) amountDone++
|
|
||||||
}
|
|
||||||
total += if (selectedCiv.shouldHideCivCount()) game.gameParameters.maxNumberOfPlayers - 1 else amountToDo
|
|
||||||
amountDone
|
|
||||||
}
|
}
|
||||||
MilestoneType.WorldReligion -> {
|
MilestoneType.WorldReligion -> {
|
||||||
total += game.civilizations.count { it.isMajorCiv() && it.isAlive() }
|
total += game.civilizations.count { it.isMajorCiv() && it.isAlive() }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user