Hotfix: city-state must get at least 1 starting technology (#2450)

This commit is contained in:
Jack Rainy 2020-04-18 20:59:29 +03:00 committed by Yair Morgenstern
parent f9e7411569
commit 6635ed5be9

View file

@ -89,6 +89,8 @@ object GameStarter {
for (cityStateName in availableCityStatesNames.take(newGameParameters.numberOfCityStates)) {
val civ = CivilizationInfo(cityStateName)
gameInfo.civilizations.add(civ)
for(tech in ruleset.technologies.values.filter { it.uniques.contains("Starting tech") })
civ.tech.techsResearched.add(tech.name) // can't be .addTechnology because the civInfo isn't assigned yet
}
}