mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-26 05:14:32 -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}"
|
lines += "$strengthLine$movement${Fonts.movement}"
|
||||||
|
|
||||||
if (replacementTextForUniques != "") lines += replacementTextForUniques
|
if (replacementTextForUniques != "") lines += replacementTextForUniques
|
||||||
else for (unique in uniques.filterNot {
|
else for (unique in uniqueObjects.filterNot {
|
||||||
it.startsWith("Hidden ") && it.endsWith(" disabled") || it == UniqueType.Unbuildable.text
|
it.type == UniqueType.Unbuildable
|
||||||
|
|| it.type?.flags?.contains(UniqueFlag.HiddenToUsers) == true
|
||||||
})
|
})
|
||||||
lines += unique.tr()
|
lines += unique.text.tr()
|
||||||
|
|
||||||
if (promotions.isNotEmpty()) {
|
if (promotions.isNotEmpty()) {
|
||||||
val prefix = "Free promotion${if (promotions.size == 1) "" else "s"}:".tr() + " "
|
val prefix = "Free promotion${if (promotions.size == 1) "" else "s"}:".tr() + " "
|
||||||
|
Loading…
x
Reference in New Issue
Block a user