mirror of
https://github.com/yairm210/Unciv.git
synced 2025-02-07 17:43:54 +07:00
The Future Tech can't be picked as a free technology until requirements are met (#1967)
This commit is contained in:
parent
8f757e9ab4
commit
094f72dd26
@ -227,7 +227,8 @@ class TechPickerScreen(internal val civInfo: CivilizationInfo, centerOnTech: Tec
|
||||
|
||||
|
||||
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())
|
||||
} else {
|
||||
rightSideButton.setText("Pick a free tech".tr())
|
||||
|
Loading…
Reference in New Issue
Block a user