Skip to content

Commit

Permalink
Resolved #12678 - city-states don't take unique units from barbarians…
Browse files Browse the repository at this point in the history
… / other city states
  • Loading branch information
yairm210 committed Dec 22, 2024
1 parent 053ca67 commit 7eb642d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ class CityStateFunctions(val civInfo: Civilization) {
return@filter !it.availableInEra(ruleset, startingEra) // Not from the start era or before
&& it.uniqueTo != null && it.uniqueTo !in usedMajorCivs // Must be from a major civ not in the game
// Note that this means that units unique to a civ *filter* instead of a civ *name* will not be provided
&& ruleset.nations[it.uniqueTo]?.isMajorCiv == true // don't take unique units from other city states / barbs
&& ruleset.unitTypes[it.unitType]!!.isLandUnit()
&& (it.strength > 0 || it.rangedStrength > 0) // Must be a land military unit
}
Expand Down

0 comments on commit 7eb642d

Please sign in to comment.