From 0de947d1b9efd1b45b12035c6f60edc0dc2f9957 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 922fbb2812..3d64c0d449 100644 --- a/core/src/com/unciv/logic/GameStarter.kt +++ b/core/src/com/unciv/logic/GameStarter.kt @@ -91,6 +91,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 } }