update VictoryScreenIllustrations

This commit is contained in:
Rob Loach 2025-09-16 21:14:41 -04:00
parent b5c44e3a22
commit 01fde6c4a4
No known key found for this signature in database
GPG Key ID: 627C60834A74A21A

View File

@ -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() }