<?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:ABCrane_SKN.w3x" />
		<Include
			type="all"
			source="ART:ABCrane_IDLA.w3x" />
		<Include
			type="all"
			source="ART:ABCraneBld_SKN.w3x" />
		<Include
			type="all"
			source="ART:ABCraneBld_AAN.w3x" />
		<Include
			type="all"
			source="ART:ABCrane_D2SN.w3x" />
		<Include
			type="all"
			source="ART:ABCrane_D2AN.w3x" />
		<Include
			type="all"
			source="ART:ABCrane_D3SN.w3x" />
		<Include
			type="all"
			source="ART:ABCrane_D3AN.w3x" />
		<!-- Base Object -->
		<Include
			type="instance"
			source="DATA:BaseObjects/BaseStructure.xml" />
	</Includes>
	<GameObject
		id="AlienFoundry"
		inheritFrom="BaseStructure"
		SelectPortrait="Portrait_ALIENFoundry"
		ButtonImage="Portrait_ALIENFoundry"
		Side="ALIEN"
		EditorSorting="STRUCTURE"
		TransportSlotCount="1"
		BuildCost="1500"
		BuildTime="15"
		CommandSet="AlienFoundryCommandSet"
		PlacementViewAngle="337.5d"
		KindOf="STRUCTURE SELECTABLE IMMOBILE CAN_CAST_REFLECTIONS CONSTRUCTION_YARD FS_FACTORY AUTO_ACQUIRABLE_BY_AI NOT_AUTOACQUIRABLE COVER CRANE"
		RadarPriority="STRUCTURE"
		ProductionQueueType="MAIN_STRUCTURE"
		BuildPlacementTypeFlag="MAIN_STRUCTURE"
		EditorName="AlienFoundry"
		Description="Desc:ALIENFoundry"
		TypeDescription="Type:AlienFoundry"
		EnergyProduction="-10">
		<DisplayName
			xai:joinAction="Replace" xmlns:xai="uri:ea.com:eala:asset:instance">NAME:ALIENFoundry</DisplayName>
		<GameDependency>
			<ObjectFilter
				Rule="ANY">
				<IncludeThing>AlienDronePlatform</IncludeThing>
				<IncludeThing>AlienFoundry</IncludeThing>
			</ObjectFilter>
		</GameDependency>
		<ArmorSet
			Armor="AlienFoundryArmor"
			DamageFX="FactionStructureDamageFX" />
		<SkirmishAIInformation
			BaseBuildingLocation="SPREAD" />
		<Draws>
			<ScriptedModelDraw
				id="ModuleTag_Draw"
				OkToChangeModelColor="true">
				<ModelConditionState
					ParseCondStateType="PARSE_DEFAULT">
					<Model
						Name="ABCrane_SKN" />
				</ModelConditionState>
				<ModelConditionState
					ParseCondStateType="PARSE_NORMAL"
					ConditionsYes="STRUCTURE_UNPACKING">
					<Model
						Name="ABCraneBld_SKN" />
				</ModelConditionState>
				<ModelConditionState
					ParseCondStateType="PARSE_NORMAL"
					ConditionsYes="RUBBLE">
					<Model
						Name="ABCrane_D3SN" />
				</ModelConditionState>
				<ModelConditionState
					ParseCondStateType="PARSE_NORMAL"
					ConditionsYes="REALLYDAMAGED">
					<Model
						Name="ABCrane_D2SN" />
					<ParticleSysBone
						BoneName="FXBone01"
						FXParticleSystemTemplate="AlienDamageFire01"
						FollowBone="true" />
					<ParticleSysBone
						BoneName="FXBone01"
						FXParticleSystemTemplate="AlienDamageFireGlow01"
						FollowBone="true" />
					<ParticleSysBone
						BoneName="FXBone01"
						FXParticleSystemTemplate="AlienDamageFireGlow02"
						FollowBone="true" />
					<ParticleSysBone
						BoneName="FXBone02"
						FXParticleSystemTemplate="AlienDamageFire01"
						FollowBone="true" />
					<ParticleSysBone
						BoneName="FXBone02"
						FXParticleSystemTemplate="AlienDamageFireGlow01"
						FollowBone="true" />
					<ParticleSysBone
						BoneName="FXBone02"
						FXParticleSystemTemplate="AlienDamageFireGlow02"
						FollowBone="true" />
					<ParticleSysBone
						BoneName="FXBone03"
						FXParticleSystemTemplate="AlienDamageFire01"
						FollowBone="true" />
					<ParticleSysBone
						BoneName="FXBone03"
						FXParticleSystemTemplate="AlienDamageFireGlow01"
						FollowBone="true" />
					<ParticleSysBone
						BoneName="FXBone03"
						FXParticleSystemTemplate="AlienDamageFireGlow02"
						FollowBone="true" />
				</ModelConditionState>
				<ModelConditionState
					ParseCondStateType="PARSE_NORMAL"
					ConditionsYes="DAMAGED">
					<Model
						Name="ABCrane_SKN" />
					<Texture
						Original="ABCrane"
						New="ABCrane_D1" />
					<ParticleSysBone
						BoneName="FXBone01"
						FXParticleSystemTemplate="AlienDamageFire01"
						FollowBone="true" />
					<ParticleSysBone
						BoneName="FXBone03"
						FXParticleSystemTemplate="AlienDamageFire01"
						FollowBone="true" />
				</ModelConditionState>
				<AnimationState
					ParseCondStateType="PARSE_DEFAULT"
					StateName="STATE_bored"
					Flags="DO_NOT_PLAY_WHEN_UNPOWERED">
					<Animation
						AnimationName="ABCrane_IDLA"
						AnimationMode="LOOP" />
				</AnimationState>
				<AnimationState
					ParseCondStateType="PARSE_NORMAL"
					ConditionsYes="STRUCTURE_UNPACKING">
					<Animation
						AnimationName="ABCraneBld_AAN"
						AnimationMode="ONCE" />
				</AnimationState>
				<AnimationState
					ParseCondStateType="PARSE_NORMAL"
					ConditionsYes="RUBBLE"
					StateName="STATE_Rubble"
					Flags="START_FRAME_LAST">
					<Animation
						AnimationName="ABCrane_D3AN"
						AnimationMode="MANUAL" />
					<Script>
						Prev = CurDrawablePrevAnimationState();
						if Prev ~= "STATE_Rubble" and Prev ~= "TRANS_IntoRubble" then
						CurDrawableSetTransitionAnimState("TRANS_IntoRubble")
						end
					</Script>
				</AnimationState>
				<AnimationState
					ParseCondStateType="PARSE_NORMAL"
					ConditionsYes="REALLYDAMAGED"
					StateName="STATE_ReallyDamaged"
					Flags="START_FRAME_LAST">
					<Animation
						AnimationName="ABCrane_D2AN"
						AnimationMode="MANUAL" />
					<Script>
						Prev = CurDrawablePrevAnimationState();
						if Prev ~= "STATE_ReallyDamaged" and Prev ~= "TRANS_IntoReallyDamaged" then
						CurDrawableSetTransitionAnimState("TRANS_IntoReallyDamaged")
						end
					</Script>
				</AnimationState>
				<AnimationState
					ParseCondStateType="PARSE_TRANSITION"
					StateName="TRANS_IntoReallyDamaged">
					<Animation
						AnimationName="ABCrane_D2AN"
						AnimationMode="ONCE"
						AnimationBlendTime="0" />
				</AnimationState>
				<AnimationState
					ParseCondStateType="PARSE_TRANSITION"
					StateName="TRANS_IntoRubble">
					<Animation
						AnimationName="ABCrane_D3AN"
						AnimationMode="ONCE"
						AnimationBlendTime="0" />
				</AnimationState>
			</ScriptedModelDraw>
		</Draws>
		<Behaviors>
			<FXListBehavior
				id="ModuleTag_FXList">
				<DieMuxData
					DeathTypes="ALL" />
				<Event
					Index="onTransitionToDamaged"
					FX="FX_AlienBuildingDamagedM" />
				<Event
					Index="onTransitionToReallyDamaged"
					FX="FX_AlienBuildingDamagedM" />
				<Event
					Index="onTransitionToRubble"
					FX="FX_AlienBuildingRubbleM" />
			</FXListBehavior>
			<StructureUnpackUpdate
				id="StructureUnpackUpdate"
				UnpackTime="2.0s" />
			<SlowDeath
				id="ModuleTag_Death"
				SinkDelay="3.0s"
				SinkRate="4.0"
				DestructionDelay="8.0s">
				<Sound Type="INITIAL" List="ALI_Building_Die" />
				<DieMuxData
					DeathTypes="ALL" />
			</SlowDeath>
			<ProductionUpdate
				id="ModuleTag_ProductionUpdate"
				Type="MAIN_STRUCTURE"
				MaxQueueEntries="1" />
			<ProductionUpdate
				id="ModuleTag_OtherProductionUpdate"
				Type="OTHER_STRUCTURE"
				MaxQueueEntries="1" />
			<xi:include
				href="../../Includes/GenericBuildingRepair.xml" />
			<xi:include
				href="../../Includes/GenericEngineerContain.xml" />
			<xi:include
				href="../../Includes/GenericAlienBuildingSuicide.xml" />
		</Behaviors>
		<Body>
			<ActiveBody
				id="ModuleTag_Body"
				MaxHealth="3000.0" />
		</Body>
		<Geometry
			IsSmall="false">
			<Shape
				Type="CYLINDER"
				MajorRadius="25.0"
				MinorRadius="25.0"
				Height="12.5">
				<Offset
					x="0.0"
					y="-9.53674e-007"
					z="0.0" />
			</Shape>
			<ContactPoint>
				<Pos
					x="-21.9926"
					y="-22.4495"
					z="0.0" />
			</ContactPoint>
			<ContactPoint>
				<Pos
					x="10.7874"
					y="-11.2295"
					z="24.8988" />
			</ContactPoint>
			<ContactPoint>
				<Pos
					x="22.0074"
					y="21.5505"
					z="0.0" />
			</ContactPoint>
			<ContactPoint>
				<Pos
					x="-10.7726"
					y="10.3305"
					z="24.8988" />
			</ContactPoint>
			<ContactPoint>
				<Pos
					x="-10.7726"
					y="-11.2295"
					z="24.8988" />
			</ContactPoint>
			<ContactPoint>
				<Pos
					x="22.0074"
					y="-22.4495"
					z="0.0" />
			</ContactPoint>
			<ContactPoint>
				<Pos
					x="10.7874"
					y="10.3305"
					z="24.8988" />
			</ContactPoint>
			<ContactPoint>
				<Pos
					x="-21.9926"
					y="21.5505"
					z="0.0" />
			</ContactPoint>
		</Geometry>
		<AudioArrayVoice>
			<AudioEntry
				Sound="ALI_Foundry_Select"
				AudioType="voiceSelect" />
		</AudioArrayVoice>
		<AudioArraySound>
			<AudioEntry Sound="ALI_Building_LightDamage" AudioType="soundOnDamaged" />
			<AudioEntry Sound="ALI_Building_HeavyDamage" AudioType="soundOnReallyDamaged" />
			<AudioEntry Sound="ALI_Building_Placed" AudioType="soundUnderConstruction" />
		</AudioArraySound>
		<ShadowInfo
			Type="VOLUME" />
		<VisionInfo
			VisionRange="200"
			ShroudClearingRange="300" />
		<ProjectedBuildabilityInfo
			Radius="150"
			BuildPlacementTypes="MAIN_STRUCTURE OTHER_STRUCTURE" />
	</GameObject>
</AssetDeclaration>