<?xml version="1.0" encoding="utf-8"?>
<AssetDeclaration xmlns="uri:ea.com:eala:asset" xmlns:xai="uri:ea.com:eala:asset:instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xi="http://www.w3.org/2001/XInclude">
	<Tags></Tags>
	<Includes>
		<!-- Base Object -->
		<Include
			type="instance"
			source="DATA:Alien/Structures/AlienSporePod.xml" />
		<Include
			type="instance"
			source="ART:ABGrowthStim_SKN.w3x" />
		<Include
			type="instance"
			source="ART:ABGrowthStim_IDLA.w3x" />
		<Include
			type="instance"
			source="ART:ABGrowthStim_D3SN.w3x" />
		<Include
			type="instance"
			source="ART:ABGrowthStim_D2SN.w3x" />
		<Include
			type="instance"
			source="ART:ABGrowthStim_D2AN.w3x" />
		<Include
			type="instance"
			source="ART:ABGrowthStim_D3AN.w3x" />
		<Include
			type="instance"
			source="ART:ABGrowthStimBld_SKN.w3x" />
		<Include
			type="instance"
			source="ART:ABGrowthStimBld_AAN.w3x" />
		<Include
			type="instance"
			source="ART:ABGrowthStimD.xml" />
			
		    <Include
			type="instance"
			source="DATA:BaseObjects/BaseTechStructure.xml" />			
	</Includes>
	<!-- NerveCenter -->
	<GameObject
		id="Reaper17GrowthStimulator"
		inheritFrom="AlienSporePod"
		SelectPortrait="Portrait_GrowthStimulator"
		ButtonImage="Portrait_GrowthStimulator"
		Side="Reaper17"
		EditorSorting="STRUCTURE"
		EditorName="Reaper17GrowthStimulator"
		Description="Desc:Reaper17GrowthStimulator"
		TypeDescription="Type:Reaper17GrowthStimulator">
		<DisplayName
			xai:joinAction="Replace">NAME:Reaper17GrowthStimulator</DisplayName>
		<GameDependency
			xai:joinAction="Replace">
			<RequiredObject>Reaper17TiberiumTower</RequiredObject>
		</GameDependency>
		<Draws>
			<ScriptedModelDraw
				xai:joinAction="Replace"
				id="ModuleTag_Draw"
				OkToChangeModelColor="true">
				<ModelConditionState
					ParseCondStateType="PARSE_DEFAULT">
					<Model
						Name="ABGrowthStim_SKN" />
				</ModelConditionState>
				<ModelConditionState
					ParseCondStateType="PARSE_NORMAL"
					ConditionsYes="STRUCTURE_UNPACKING">
					<Model
						Name="ABGrowthStimBld_SKN" />
				</ModelConditionState>
				<ModelConditionState
					ParseCondStateType="PARSE_NORMAL"
					ConditionsYes="RUBBLE">
					<Model
						Name="ABGrowthStim_D3SN" />
				</ModelConditionState>
				<ModelConditionState
					ParseCondStateType="PARSE_NORMAL"
					ConditionsYes="REALLYDAMAGED">
					<Model
						Name="ABGrowthStim_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="ABGrowthStim_SKN" />
					<Texture
						Original="ABGrowthStim"
						New="ABGrowthStimD" />
					<ParticleSysBone
						BoneName="FXBone01"
						FXParticleSystemTemplate="AlienDamageFire01"
						FollowBone="true" />
					<ParticleSysBone
						BoneName="FXBone03"
						FXParticleSystemTemplate="AlienDamageFire01"
						FollowBone="true" />
				</ModelConditionState>
				<AnimationState
					ParseCondStateType="PARSE_DEFAULT"
					Flags="RESTART_ANIM_WHEN_COMPLETE DO_NOT_PLAY_WHEN_UNPOWERED">
					<Animation
						AnimationName="ABGrowthStim_IDLA"
						AnimationMode="ONCE"
						AnimationPriority="30" 
						AnimationBlendTime="15" />
				</AnimationState>
				<AnimationState
					ParseCondStateType="PARSE_NORMAL"
					ConditionsYes="STRUCTURE_UNPACKING">
					<Animation
						AnimationName="ABGrowthStimBld_AAN"
						AnimationMode="ONCE" />
				</AnimationState>
				<AnimationState
					ParseCondStateType="PARSE_NORMAL"
					ConditionsYes="RUBBLE"
					StateName="STATE_Rubble"
					Flags="START_FRAME_LAST">
					<Animation
						AnimationName="ABGrowthStim_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="ABGrowthStim_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="ABGrowthStim_D2AN"
						AnimationMode="ONCE"
						AnimationBlendTime="0" />
				</AnimationState>
				<AnimationState
					ParseCondStateType="PARSE_TRANSITION"
					StateName="TRANS_IntoRubble">
					<Animation
						AnimationName="ABGrowthStim_D3AN"
						AnimationMode="ONCE"
						AnimationBlendTime="0" />
				</AnimationState>
			</ScriptedModelDraw>
		</Draws>
		<Behaviors>
<!--Income generation-->
		      <AutoDepositUpdate
		      		id="ModuleTag_IncomeTick"
				DepositInterval="5s"
				DepositAmount="15"
				GiveNoXP="true" />
			<StatusBitsUpgrade
				xai:joinAction="Replace"
				id="ModuleTag_ObjectStatusForTibAgitation"
				StatusToSet="DOES_CONTAIN_TIBERIUM">
				<TriggeredBy>Upgrade_Reaper17Faction</TriggeredBy>
			</StatusBitsUpgrade>	
			<xi:include
			xai:joinAction="Remove"
				href="../../Includes/GenericAlienBuildingDestruction.xml" />
			<xi:include
			xai:joinAction="Remove"			
				href="../../Includes/GenericAlienBuildingSuicide.xml" />
			<xi:include
				href="../../Includes/GenericReaper17BuildingDestruction.xml" />
			<xi:include
				href="../../Includes/GenericReaper17BuildingSuicide.xml" />			
		</Behaviors>
   		<AI>
      			<AIUpdate
				id="ModuleTag_AI"
				AutoAcquireEnemiesWhenIdle="NO"
				AILuaEventsList="BuildingPowerFunctions">
      			</AIUpdate>
    		</AI>	
		<AudioArrayVoice>
			<AudioEntry
				Sound="ALI_SuperGrowthAccelerator_SelectMS"
				AudioType="voiceSelect" />
		</AudioArrayVoice>
	</GameObject>
</AssetDeclaration>
