Fix Civilopedia resource to Wonder links (#5011)

This commit is contained in:
SomeTroglodyte 2021-08-28 21:27:25 +02:00 committed by GitHub
parent ef7fc36c80
commit 3e22a36bbf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -59,7 +59,7 @@ class TileResource : NamedStats(), ICivilopediaText {
textList += FormattedLine()
textList += FormattedLine("{Buildings that consume this resource}:")
buildingsThatConsumeThis.forEach {
textList += FormattedLine(it.name, link = "Building/${it.name}", indent = 1)
textList += FormattedLine(it.name, link = it.makeLink(), indent = 1)
}
}
@ -68,7 +68,7 @@ class TileResource : NamedStats(), ICivilopediaText {
textList += FormattedLine()
textList += FormattedLine("{Units that consume this resource}: ")
unitsThatConsumeThis.forEach {
textList += FormattedLine(it.name, link = "Unit/${it.name}", indent = 1)
textList += FormattedLine(it.name, link = it.makeLink(), indent = 1)
}
}
@ -79,7 +79,7 @@ class TileResource : NamedStats(), ICivilopediaText {
textList += FormattedLine()
textList += FormattedLine("{Buildings that require this resource worked near the city}: ")
buildingsRequiringThis.forEach {
textList += FormattedLine(it.name, link = "Building/${it.name}", indent = 1)
textList += FormattedLine(it.name, link = it.makeLink(), indent = 1)
}
}