mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-25 12:54:06 -04:00
Sort game speeds in Civilopedia by game speed modifier (#7408)
This commit is contained in:
parent
b21f616120
commit
43da7ee3cd
@ -74,6 +74,7 @@ class Speed : RulesetObject(), IsPartOfGameInfoSerialization {
|
||||
yield(FormattedLine("Peace deal duration: [$peaceDealDuration] turns${Fonts.turn}"))
|
||||
yield(FormattedLine("Start year: [" + ("{[${abs(startYear).toInt()}] " + (if (startYear < 0) "BC" else "AD") + "}]").tr()))
|
||||
}.toList()
|
||||
override fun getSortGroup(ruleset: Ruleset): Int = (modifier * 1000).toInt()
|
||||
|
||||
fun numTotalTurns(): Int = yearsPerTurn.last().untilTurn
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user