<?xml version="1.0" encoding="utf-8"?>
<AssetDeclaration xmlns="uri:ea.com:eala:asset" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xi="http://www.w3.org/2001/XInclude">
	<Tags></Tags>
	<Includes>
		<Include
			type="all"
			source="ART:SquadMarkGUMis.w3x" />
		<Include
			type="all"
			source="ART:AUCultist_SKN.w3x" />
		<Include
			type="all"
			source="ART:AUCultist_FP.w3x" />			
		<!-- Base Object -->
		<Include
			type="instance"
			source="DATA:BaseObjects/BaseSquad.xml" />
	</Includes>
	<GameObject
		id="Traveler59CultistSquad"
		inheritFrom="BaseSquad"
		SelectPortrait="Portrait_Cultist"
		ButtonImage="Portrait_Cultist"
		Side="Traveler59"
		EditorSorting="UNIT"
		TransportSlotCount="1"
		BuildCost="1000"
		BuildTime="10"
		CommandSet="Traveler59CultistSquadCommandSet"
		CommandPoints="100" 
		KindOf="SELECTABLE CAN_ATTACK ATTACK_NEEDS_LINE_OF_SIGHT INFANTRY HORDE ARMY_SUMMARY LARGE_RECTANGLE_PATHFIND PATH_THROUGH_INFANTRY SKIRMISH_AI_DONT_GARRISON CAN_CAPTURE CAN_BE_FAVORITE_UNIT SCORE"
		IsTrainable="true"
		FormationWidth="2"
		FormationDepth="1"
		ThreatLevel="0"
		ProductionQueueType="INFANTRY"
		UnitCategory="INFANTRY"
		WeaponCategory="GUN"
		EditorName="Traveler59CultistSquad"
		Description="Desc:Traveler59Cultist"
		WorldMapArmoryUpgradesAllowed="Upgrade_Traveler59AdvancedArticulators"
		TypeDescription="Type:Traveler59Cultist"
		UnitTypeIcon="CultistSquadPip">
		<DisplayUpgrade>Upgrade_Traveler59AdvancedArticulators</DisplayUpgrade>	
		<DisplayName
			xai:joinAction="Replace" xmlns:xai="uri:ea.com:eala:asset:instance">Name:Traveler59Cultist</DisplayName>
		<GameDependency>
			<RequiredObject>Traveler59StatisChamber</RequiredObject>
			<RequiredObject>Traveler59ControlCenter</RequiredObject>
		</GameDependency>			
		<ArmorSet
			Armor="NoArmor" />
		<LocomotorSet
			Locomotor="NormalRangedSquadLocomotor"
			Condition="NORMAL"
			Speed="45" />
		<SkirmishAIInformation
			UnitBuilderStandardCombatUnit="true" />
		<Draws>
			<ScriptedModelDraw
				id="ModuleTag_Draw"
				OkToChangeModelColor="true"
				DependencySharedModelFlags="EMOTION_TAUNTING EMOTION_ALERT EMOTION_MORALE_HIGH EMOTION_MORALE_LOW EMOTION_AFRAID EMOTION_COWER SELECTED  EMOTION_TERROR EMOTION_LOOK_TO_SKY">
				<ModelConditionState
					ParseCondStateType="PARSE_DEFAULT">
					<Model
						Name="" />
				</ModelConditionState>
				<ModelConditionState
					ParseCondStateType="PARSE_NORMAL"
					ConditionsYes="FORMATION_PREVIEW">
					<Model
						Name="AUCultist_FP" />
				</ModelConditionState>				
				<ModelConditionState
					ParseCondStateType="PARSE_NORMAL"
					ConditionsYes="WORLD_BUILDER">
					<Model
						Name="SquadMarkAURaz" />
				</ModelConditionState>
			</ScriptedModelDraw>
		</Draws>
		<Behaviors>
			<WeaponSetUpdate
				id="ModuleTag_WeaponSetUpdate">
				<WeaponSlotHardpoint
					ID="1">
					<Weapon
						Ordering="PRIMARY_WEAPON"
						Template="CultistMindControlWeaponRangeFinder" />
				</WeaponSlotHardpoint>
			</WeaponSetUpdate>
	
	<!-- Mind control -->

			<SpecialPower 
				id="ModuleTag_ManipulatorDevice" 
				SpecialPowerTemplate="SpecialPower_CultistMindControl" 
				AvailableAtStart="true" 
				StartsPaused="false"
				UpdateModuleStartsAttack="true" />
			<ActivateModuleSpecialPower 
				id="ModuleTag_ManipulatorDeviceUpdate" 
				SpecialPowerTemplate="SpecialPower_CultistMindControl" 
				StartAbilityRange="250" 
				Options="CHECK_SPECIALPOWER_REQUIREMENTS_DURING_UPDATE"> 
				<SpecialPowerModules 	
					ModuleId="ModuleTag_ManipulatorDeviceWorker" 	
					TriggerType="TARGET_OBJECT" />
			</ActivateModuleSpecialPower>
			<TemporaryOwnerSpecialPower 
				id="ModuleTag_ManipulatorDeviceWorker" 
				SpecialPowerTemplate="SpecialPowerDummyTriggered3" 
				UpdateModuleStartsAttack="false" />	
				
		<!--	<SpecialPower
				id="ModuleTag_CultistMindControlGetInRange"
				SpecialPowerTemplate="SpecialPower_CultistMindControlGetInRange"
				UpdateModuleStartsAttack="true"/>
			<SpecialAbilityUpdate
				id="ModuleTag_CultistMindControlGetInRangeUpdate"
				SpecialPowerTemplate="SpecialPower_CultistMindControlGetInRange"
				UnpackTime="0s"
				PackTime="0s"
				StartAbilityRange="195"
				ChainedButton="Command_UseCultistMindControl" />
			<HordeDispatchSpecialPower
				id="ModuleTag_CultistMindControlHordeDispatch"
				SpecialPowerTemplate="SpecialPower_CultistMindControl" 
				MaxMembersToDispatchTo="1"/> 
		-->	
		<!--	<SpecialPower
				id="ModuleTag_ManipulatorDevice"
				SpecialPowerTemplate="SpecialPower_CultistMindControl"
				AvailableAtStart="true"
				UpdateModuleStartsAttack="true" />
			<ActivateModuleSpecialPower
				id="ModuleTag_ManipulatorDeviceUpdate"
				SpecialPowerTemplate="SpecialPower_CultistMindControl"
				StartAbilityRange="200"
				Options="CHECK_SPECIALPOWER_REQUIREMENTS_DURING_UPDATE">
				<SpecialPowerModules
					ModuleId="ModuleTag_ManipulatorDeviceWorker"
					TriggerType="TARGET_OBJECT" />
			</ActivateModuleSpecialPower>
			<TemporaryOwnerSpecialPower
				id="ModuleTag_ManipulatorDeviceWorker"
				SpecialPowerTemplate="SpecialPowerDummyTriggered3"
				UpdateModuleStartsAttack="false" /> -->
			<Physics
				id="ModuleTag_Physics"></Physics>
			<HordeContain
				id="ModuleTag_HordeContain"
				FrontAngle="4.7123"
				FlankedDelaySeconds="2.0"
				ShowPips="false"
				Formation="MAIN"
				MeleeAttackLeashDistance="1"
				Slots="5"
				ObjectStatusOfContained=""
				ConditionForEntry="INVALID">
				<PassengerFilter
					Rule="NONE"
					Include="INFANTRY" />
				<DieMuxData />
				<InitialPayload
					Name="Traveler59Cultist"
					Count="5" />
				<MeleeBehavior
					Type="AMOEBA" />
				<RankInfo
					RankID="1"
					UnitType="Traveler59Cultist">
					<Position
						X="-4"
						Y="0" />
				</RankInfo>
				<RankInfo
					RankID="2"
					UnitType="Traveler59Cultist">
					<Position
						X="10"
						Y="-15" />
					<Position
						X="10"
						Y="15" />					
					<Position
						X="-20"
						Y="-10" />
					<Position
						X="-20"
						Y="10" />
				</RankInfo>
				<RankToReleaseWhenAttacking>1</RankToReleaseWhenAttacking>
				<RankToReleaseWhenAttacking>2</RankToReleaseWhenAttacking>
			</HordeContain>
			<ProductionUpdate
				id="ModuleTag_ProductionUpdate"
				GiveNoXP="true" />
			<xi:include
				href="DATA:Includes/CaptureBehavior.xml"
				xpointer="xmlns(n=uri:ea.com:eala:asset) xpointer(/n:Behaviors/child::*)" />
			
			<AttributeModifierUpgrade
				id="Upgrade_Traveler59AdvancedArticulators"
				AttributeModifier="AttributeModifier_AdvancedArticulators">
				<TriggeredBy>Upgrade_Traveler59AdvancedArticulators</TriggeredBy>
			</AttributeModifierUpgrade>
		</Behaviors>
		<AI>
			<HordeAIUpdate
				id="ModuleTag_HordeAIUpdate"
				AutoAcquireEnemiesWhenIdle="YES ATTACK_BUILDINGS"
				MaxCowerTime="5.0s"
				MinCowerTime="3.0s"
				CanAttackWhileContained="true">
				<UnitAITargetChooserData
					CheckVisionRange="true" />
			</HordeAIUpdate>
		</AI>
		<Body>
			<ImmortalBody
				id="ModuleTag_ImmortalBody"
				MaxHealth="1.0" />
		</Body>
		<Geometry
			IsSmall="false">
			<Shape
				Type="CYLINDER"
				MajorRadius="30.0"
				Height="10.0" />
		</Geometry>
		<VisionInfo
			VisionRange="350"
			ShroudClearingRange="400"
			MaxVisionBonusPercent="300"
			VisionBonusTestRadius="200"
			VisionBonusPercentPerFoot="1" />
		<CrusherInfo
			UseCrushAttack="false"
			CrushableLevel="0"
			CrusherLevel="0" />
	</GameObject>
</AssetDeclaration>
