The Future Tech can't be picked as a free technology until requirements are met (#1967)

This commit is contained in:
JackRainy 2020-02-19 08:25:35 +02:00 committed by GitHub
parent 8f757e9ab4
commit 094f72dd26
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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())