mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-20 12:48:56 +07:00
The Future Tech can't be picked as a free technology until requirements are met (#1967)
This commit is contained in:
@ -227,7 +227,8 @@ class TechPickerScreen(internal val civInfo: CivilizationInfo, centerOnTech: Tec
|
|||||||
|
|
||||||
|
|
||||||
private fun selectTechnologyForFreeTech(tech: Technology) {
|
private fun selectTechnologyForFreeTech(tech: Technology) {
|
||||||
if (researchableTechs.contains(tech.name) || tech.name==Constants.futureTech) {
|
if (researchableTechs.contains(tech.name) ||
|
||||||
|
(tech.name==Constants.futureTech && civTech.canBeResearched(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())
|
||||||
|
Reference in New Issue
Block a user