Remove unique units from barbarians.
This commit is contained in:
parent
ddcf3dd83e
commit
624f83d109
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ class GameInfo {
|
|||
|
||||
val allResearchedTechs = civilizations.filterNot { it.isBarbarianCivilization() }
|
||||
.flatMap { it.tech.researchedTechnologies }.map{ it.name }
|
||||
val unitList = GameBasics.Units.values.filter { !it.unitType.isCivilian() }
|
||||
val unitList = GameBasics.Units.values.filter { !it.unitType.isCivilian() && it.uniqueTo == null }
|
||||
.filter{ allResearchedTechs.contains(it.requiredTech) }
|
||||
val unit = if (unitList.isEmpty()) "Warrior" else unitList.getRandom().name
|
||||
|
||||
|
|
Loading…
Reference in a new issue