Do not resort building uniques when displaying in Civilopedia - leave as the json order to allow modders to determine order themselves

This commit is contained in:
Yair Morgenstern 2022-05-05 18:43:28 +03:00
parent 1e7eff9d1e
commit f703f2fbde

View File

@ -258,7 +258,7 @@ class Building : RulesetStatsObject(), INonPerpetualConstruction {
if (replacementTextForUniques.isNotEmpty()) {
textList += FormattedLine(replacementTextForUniques)
} else if (uniques.isNotEmpty()) {
for (unique in uniqueObjects.sortedBy { it.text }) {
for (unique in uniqueObjects) {
if (unique.hasFlag(UniqueFlag.HiddenToUsers)) continue
if (unique.type == UniqueType.ConsumesResources) continue // already shown from getResourceRequirements
textList += FormattedLine(unique)