File tree 1 file changed +4
-4
lines changed
core/src/com/unciv/logic/civilization/diplomacy
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -549,12 +549,12 @@ class CityStateFunctions(val civInfo: Civilization) {
549
549
550
550
fun getFreeTechForCityState () {
551
551
// City-States automatically get all techs that at least half of the major civs know
552
- val researchableTechs = civInfo.gameInfo.ruleset.technologies.keys
553
- .filter { civInfo.tech.canBeResearched(it) }
552
+ val researchableTechs = civInfo.gameInfo.ruleset.technologies.values
553
+ .filter { ! it.hasUnique( UniqueType . ResearchableMultipleTimes ) && civInfo.tech.canBeResearched(it.name ) }
554
554
for (tech in researchableTechs) {
555
555
val aliveMajorCivs = civInfo.gameInfo.getAliveMajorCivs()
556
- if (aliveMajorCivs.count { it.tech.isResearched(tech) } >= aliveMajorCivs.size / 2 )
557
- civInfo.tech.addTechnology(tech)
556
+ if (aliveMajorCivs.count { it.tech.isResearched(tech.name ) } >= aliveMajorCivs.size / 2 )
557
+ civInfo.tech.addTechnology(tech.name )
558
558
}
559
559
return
560
560
}
You can’t perform that action at this time.
0 commit comments