mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-11 00:08:58 +07:00
Resolved #9444 - Crop yield chart no longer displays score data
This commit is contained in:
@ -50,7 +50,7 @@ class VictoryScreenCharts(
|
|||||||
|
|
||||||
rankingTypeSelect.onChange {
|
rankingTypeSelect.onChange {
|
||||||
rankingType = RankingType.values()
|
rankingType = RankingType.values()
|
||||||
.firstOrNull { it.name == rankingTypeSelect.selected.value }
|
.firstOrNull { it.label == rankingTypeSelect.selected.value }
|
||||||
?: RankingType.Score
|
?: RankingType.Score
|
||||||
update()
|
update()
|
||||||
}
|
}
|
||||||
@ -107,7 +107,8 @@ class VictoryScreenCharts(
|
|||||||
civ.statsHistory
|
civ.statsHistory
|
||||||
.filterValues { it.containsKey(rankingType) }
|
.filterValues { it.containsKey(rankingType) }
|
||||||
.map { (turn, data) -> Pair(turn, Pair(civ, data.getValue(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() }
|
.mapValues { group -> group.value.toMap() }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user