mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-23 03:23:17 -04:00
Resolved #11929 - Hidden conditionals are hidden in more places
This commit is contained in:
parent
f31463782b
commit
df96526f1e
@ -56,7 +56,7 @@ open class Policy : RulesetObject() {
|
||||
|| it.type == UniqueType.OnlyAvailable
|
||||
|| it.type == UniqueType.OneTimeGlobalAlert
|
||||
}
|
||||
.joinToString("\n") { "• ${it.text.tr()}" }
|
||||
.joinToString("\n") { "• ${it.getDisplayText().tr()}" }
|
||||
}
|
||||
|
||||
override fun makeLink() = "Policy/$name"
|
||||
|
@ -292,7 +292,7 @@ object BaseUnitDescriptions {
|
||||
val lostAbilityPredicate: (Unique)->Boolean = { it.text in betterUnit.uniques || it.isHiddenToUsers() }
|
||||
for (unique in originalUnit.uniqueObjects.filterNot(lostAbilityPredicate)) {
|
||||
// Need double translation of the "ability" here - unique texts may contain nuts - pardon, square brackets
|
||||
yield("Lost ability (vs [${originalUnit.name}]): [${unique.text.tr()}]" to null)
|
||||
yield("Lost ability (vs [${originalUnit.name}]): [${unique.getDisplayText().tr()}]" to null)
|
||||
}
|
||||
for (promotionName in betterUnit.promotions.filter { it !in originalUnit.promotions }) {
|
||||
val promotion = ruleset.unitPromotions[promotionName]!!
|
||||
|
@ -269,7 +269,7 @@ object BuildingDescriptions {
|
||||
if (!tileBonusHashmap.containsKey(stats)) tileBonusHashmap[stats] = ArrayList()
|
||||
tileBonusHashmap[stats]!!.add(unique.params[1])
|
||||
}
|
||||
else -> yield(unique.text)
|
||||
else -> yield(unique.getDisplayText())
|
||||
}
|
||||
for ((key, value) in tileBonusHashmap)
|
||||
yield( "[stats] from [tileFilter] tiles in this city"
|
||||
|
@ -204,7 +204,7 @@ class CivilopediaScreen(
|
||||
fun shouldBeDisplayed(obj: ICivilopediaText) =
|
||||
obj is IHasUniques && !obj.isHiddenFromCivilopedia(game.gameInfo, ruleset)
|
||||
|
||||
for (loopCategory in CivilopediaCategories.values()) {
|
||||
for (loopCategory in CivilopediaCategories.entries) {
|
||||
if (!religionEnabled && loopCategory == CivilopediaCategories.Belief) continue
|
||||
categoryToEntries[loopCategory] =
|
||||
loopCategory.getCategoryIterator(ruleset, tutorialController)
|
||||
|
Loading…
x
Reference in New Issue
Block a user