mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-25 04:43:05 -04:00
Fixed hidden unit uniques being shown to users in construction table - #6131
This commit is contained in:
parent
ba4561add6
commit
36c8ce78cc
@ -86,10 +86,11 @@ class BaseUnit : RulesetObject(), INonPerpetualConstruction {
|
||||
lines += "$strengthLine$movement${Fonts.movement}"
|
||||
|
||||
if (replacementTextForUniques != "") lines += replacementTextForUniques
|
||||
else for (unique in uniques.filterNot {
|
||||
it.startsWith("Hidden ") && it.endsWith(" disabled") || it == UniqueType.Unbuildable.text
|
||||
else for (unique in uniqueObjects.filterNot {
|
||||
it.type == UniqueType.Unbuildable
|
||||
|| it.type?.flags?.contains(UniqueFlag.HiddenToUsers) == true
|
||||
})
|
||||
lines += unique.tr()
|
||||
lines += unique.text.tr()
|
||||
|
||||
if (promotions.isNotEmpty()) {
|
||||
val prefix = "Free promotion${if (promotions.size == 1) "" else "s"}:".tr() + " "
|
||||
|
Loading…
x
Reference in New Issue
Block a user