mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-19 16:57:38 +07:00
Resolved #9211 - Show Strategic resources you have by trade even if you have not researched tech for it yet
This commit is contained in:
parent
a370117301
commit
ec65b7e189
@ -342,13 +342,16 @@ class WorldScreenTopBar(val worldScreen: WorldScreen) : Table() {
|
||||
val civResources = civInfo.getCivResourcesByName()
|
||||
val civResourceSupply = civInfo.getCivResourceSupply()
|
||||
for ((resource, label, icon) in resourceActors) {
|
||||
if (resource.revealedBy != null && !civInfo.tech.isResearched(resource.revealedBy!!))
|
||||
continue
|
||||
if (resource.hasUnique(UniqueType.NotShownOnWorldScreen)) continue
|
||||
|
||||
val amount = civResources[resource.name] ?: 0
|
||||
|
||||
if (resource.revealedBy != null && !civInfo.tech.isResearched(resource.revealedBy!!)
|
||||
&& amount == 0) // You can trade for resources you cannot process yourself yet
|
||||
continue
|
||||
|
||||
resourcesWrapper.add(icon).padLeft(firstPadLeft).padRight(0f)
|
||||
firstPadLeft = 5f
|
||||
val amount = civResources[resource.name] ?: 0
|
||||
if (!resource.isStockpiled())
|
||||
label.setText(amount)
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user