mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-27 13:55:54 -04:00
Fix era of Wonders without tech in Wonder overview (#5347)
This commit is contained in:
parent
d3868dae62
commit
070c41592f
@ -115,7 +115,7 @@ class WonderOverviewTable(
|
|||||||
val wonderEraMap: Map<String, Era> =
|
val wonderEraMap: Map<String, Era> =
|
||||||
ruleSet.buildings.values.asSequence()
|
ruleSet.buildings.values.asSequence()
|
||||||
.filter { it.isWonder }
|
.filter { it.isWonder }
|
||||||
.map { it.name to ruleSet.eras[ruleSet.technologies[it.requiredTech]?.era()]!! }
|
.map { it.name to (ruleSet.eras[ruleSet.technologies[it.requiredTech]?.era()] ?: viewingPlayer.getEra()) }
|
||||||
.toMap()
|
.toMap()
|
||||||
|
|
||||||
// Maps all World Wonders by their position in sort order to their name
|
// Maps all World Wonders by their position in sort order to their name
|
||||||
|
Loading…
x
Reference in New Issue
Block a user