mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-06 08:21:36 +07:00
Allow Barbarians to make set-up ranged units (#11173)
Allow Barbarians to create units that must set up to ranged attack, unless specifically forbidden by the relevant unique Since we have a unique for this explicit purpose, we no longer need this extra prevention for Barbarian unit types.
This commit is contained in:
@ -258,8 +258,7 @@ class Encampment() : IsPartOfGameInfoSerialization {
|
|||||||
barbarianCiv.tech.techsResearched = allResearchedTechs.toHashSet()
|
barbarianCiv.tech.techsResearched = allResearchedTechs.toHashSet()
|
||||||
val unitList = gameInfo.ruleset.units.values
|
val unitList = gameInfo.ruleset.units.values
|
||||||
.filter { it.isMilitary() &&
|
.filter { it.isMilitary() &&
|
||||||
!(it.hasUnique(UniqueType.MustSetUp) ||
|
!(it.hasUnique(UniqueType.CannotAttack) ||
|
||||||
it.hasUnique(UniqueType.CannotAttack) ||
|
|
||||||
it.hasUnique(UniqueType.CannotBeBarbarian)) &&
|
it.hasUnique(UniqueType.CannotBeBarbarian)) &&
|
||||||
(if (naval) it.isWaterUnit() else it.isLandUnit()) &&
|
(if (naval) it.isWaterUnit() else it.isLandUnit()) &&
|
||||||
it.isBuildable(barbarianCiv) }
|
it.isBuildable(barbarianCiv) }
|
||||||
|
Reference in New Issue
Block a user