mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-24 03:53:12 -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)
|
if (requiredTech != null)
|
||||||
textList += FormattedLine("Required tech: [$requiredTech]",
|
textList += FormattedLine("Required tech: [$requiredTech]",
|
||||||
link="Technology/$requiredTech")
|
link="Technology/$requiredTech")
|
||||||
if (requiredBuilding != null)
|
if (requiredBuilding != null) {
|
||||||
textList += FormattedLine("Requires [$requiredBuilding] to be built in the city",
|
val linkType = if (ruleset.buildings[requiredBuilding]?.isWonder == true) "Wonder" else "Building"
|
||||||
link="Building/$requiredBuilding")
|
textList += FormattedLine(
|
||||||
|
"Requires [$requiredBuilding] to be built in the city",
|
||||||
|
link="$linkType/$requiredBuilding"
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
if (requiredResource != null) {
|
if (requiredResource != null) {
|
||||||
textList += FormattedLine()
|
textList += FormattedLine()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user