mirror of
https://github.com/yairm210/Unciv.git
synced 2025-10-02 08:22:08 -04:00
Added information about technology required for improving resource to tile info. (#5509)
* Added information about technology required for improving resource to tile info. * Tile improvement required tech info updated.
This commit is contained in:
parent
086867731d
commit
8cd89deb71
@ -630,6 +630,17 @@ open class TileInfo {
|
|||||||
FormattedLine("{$resource} ($resourceAmount)", link="Resource/$resource")
|
FormattedLine("{$resource} ($resourceAmount)", link="Resource/$resource")
|
||||||
else
|
else
|
||||||
FormattedLine(resource!!, link="Resource/$resource")
|
FormattedLine(resource!!, link="Resource/$resource")
|
||||||
|
if (resource != null && viewingCiv != null && hasViewableResource(viewingCiv)) {
|
||||||
|
val tileImprovement = ruleset.tileImprovements[getTileResource().improvement]
|
||||||
|
if (tileImprovement?.techRequired != null
|
||||||
|
&& !viewingCiv.tech.isResearched(tileImprovement.techRequired!!)) {
|
||||||
|
lineList += FormattedLine(
|
||||||
|
"Requires [${tileImprovement.techRequired}]",
|
||||||
|
link="Technology/${tileImprovement.techRequired}",
|
||||||
|
color= "#FAA"
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
if (naturalWonder != null)
|
if (naturalWonder != null)
|
||||||
lineList += FormattedLine(naturalWonder!!, link="Terrain/$naturalWonder")
|
lineList += FormattedLine(naturalWonder!!, link="Terrain/$naturalWonder")
|
||||||
if (roadStatus !== RoadStatus.None && !isCityCenter())
|
if (roadStatus !== RoadStatus.None && !isCityCenter())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user