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