mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-22 10:54:19 -04:00
Fix Civilopedia requiredBuilding links for Wonders (#13442)
This commit is contained in:
parent
686180fe4f
commit
f3511f99f4
@ -182,9 +182,13 @@ object BuildingDescriptions {
|
||||
if (requiredTech != null)
|
||||
textList += FormattedLine("Required tech: [$requiredTech]",
|
||||
link="Technology/$requiredTech")
|
||||
if (requiredBuilding != null)
|
||||
textList += FormattedLine("Requires [$requiredBuilding] to be built in the city",
|
||||
link="Building/$requiredBuilding")
|
||||
if (requiredBuilding != null) {
|
||||
val linkType = if (ruleset.buildings[requiredBuilding]?.isWonder == true) "Wonder" else "Building"
|
||||
textList += FormattedLine(
|
||||
"Requires [$requiredBuilding] to be built in the city",
|
||||
link="$linkType/$requiredBuilding"
|
||||
)
|
||||
}
|
||||
|
||||
if (requiredResource != null) {
|
||||
textList += FormattedLine()
|
||||
|
Loading…
x
Reference in New Issue
Block a user