From 6635ed5be9eaa56470cdbcb95e01e39da42f4ec9 Mon Sep 17 00:00:00 2001 From: Jack Rainy Date: Sat, 18 Apr 2020 20:59:29 +0300 Subject: [PATCH] Hotfix: city-state must get at least 1 starting technology (#2450) --- core/src/com/unciv/logic/GameStarter.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/com/unciv/logic/GameStarter.kt b/core/src/com/unciv/logic/GameStarter.kt index c6a2d638..5ef4ef4c 100644 --- a/core/src/com/unciv/logic/GameStarter.kt +++ b/core/src/com/unciv/logic/GameStarter.kt @@ -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 } }