mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-29 23:10:39 -04:00
fix that researched tech can be picked when we pick a free tech
This commit is contained in:
parent
a50400e4db
commit
b31c6f3ec7
@ -189,7 +189,7 @@ class TechPickerScreen(internal val civInfo: CivilizationInfo, centerOnTech: Tec
|
|||||||
|
|
||||||
|
|
||||||
private fun selectTechnologyForFreeTech(tech: Technology) {
|
private fun selectTechnologyForFreeTech(tech: Technology) {
|
||||||
if (researchableTechs.contains(tech.name)) {
|
if (researchableTechs.contains(tech.name)&&!civTech.isResearched(tech.name)) {
|
||||||
pick("Pick [${selectedTech!!.name}] as free tech".tr())
|
pick("Pick [${selectedTech!!.name}] as free tech".tr())
|
||||||
} else {
|
} else {
|
||||||
rightSideButton.setText("Pick a free tech".tr())
|
rightSideButton.setText("Pick a free tech".tr())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user