Resolved #2672 - Difficulties are sorted by ascending difficulty in Civilopedia
This commit is contained in:
parent
84e4e58f23
commit
4a69544c7d
2 changed files with 5 additions and 3 deletions
|
@ -28,7 +28,7 @@ class UnitMovementAlgorithms(val unit:MapUnit) {
|
|||
(!areConnectedByRoad || !civInfo.tech.roadsConnectAcrossRivers)){
|
||||
return 100f // Rivers take the entire turn to cross
|
||||
}
|
||||
|
||||
|
||||
if (areConnectedByRoad)
|
||||
{
|
||||
return if (unit.civInfo.tech.movementSpeedOnRoadsImproved) 1 / 3f + extraCost
|
||||
|
|
|
@ -27,8 +27,10 @@ class CivilopediaScreen(ruleset: Ruleset) : CameraStageBaseScreen() {
|
|||
|
||||
fun select(category: String) {
|
||||
entrySelectTable.clear()
|
||||
for (entry in categoryToEntries[category]!!
|
||||
.sortedBy { it.name.tr() }){ // Alphabetical order of localized names
|
||||
var entries = categoryToEntries[category]!!
|
||||
if(category!="Difficulty levels") // this is the only case where we need them in order
|
||||
entries = entries.sortedBy { it.name.tr() } // Alphabetical order of localized names
|
||||
for (entry in entries){
|
||||
val entryButton = Button(skin)
|
||||
if(entry.image!=null)
|
||||
if (category=="Terrains")
|
||||
|
|
Loading…
Reference in a new issue