mirror of
https://github.com/yairm210/Unciv.git
synced 2025-02-13 12:27:40 +07:00
Resolved #9444 - Crop yield chart no longer displays score data
This commit is contained in:
parent
e75742d3d6
commit
5fcfa6ac2d
@ -50,7 +50,7 @@ class VictoryScreenCharts(
|
||||
|
||||
rankingTypeSelect.onChange {
|
||||
rankingType = RankingType.values()
|
||||
.firstOrNull { it.name == rankingTypeSelect.selected.value }
|
||||
.firstOrNull { it.label == rankingTypeSelect.selected.value }
|
||||
?: RankingType.Score
|
||||
update()
|
||||
}
|
||||
@ -107,7 +107,8 @@ class VictoryScreenCharts(
|
||||
civ.statsHistory
|
||||
.filterValues { it.containsKey(rankingType) }
|
||||
.map { (turn, data) -> Pair(turn, Pair(civ, data.getValue(rankingType))) }
|
||||
}.groupBy({ it.first }, { it.second })
|
||||
}
|
||||
.groupBy({ it.first }, { it.second })
|
||||
.mapValues { group -> group.value.toMap() }
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user