Buying techs now enables their uniques immediately - kudos ingvart!

This commit is contained in:
Yair Morgenstern
2018-12-19 19:20:57 +02:00
parent a1a2b89949
commit f19750409d
3 changed files with 4 additions and 6 deletions

View File

@ -31,7 +31,8 @@ class GameStarter{
for (nationName in GameBasics.Nations.keys.filterNot { it=="Barbarians" || it==newGameParameters.nation }.shuffled()
.take(newGameParameters.numberOfEnemies)) {
val civ = CivilizationInfo(nationName)
civ.tech.techsResearched.addAll(gameInfo.getDifficulty().aiFreeTechs)
for (tech in gameInfo.getDifficulty().aiFreeTechs)
civ.tech.addTechnology(tech)
gameInfo.civilizations.add(civ)
}