[template AAInfantryPlanesBaseEgo template = AABaseEgo]
{
	[GoalEngine]
	{
		[Combat]
		{
			[AirAttacks]
			{
				min_time_between_attacks	= 40
				extra_planes_multiplier_max	= 2
			}
		}

		[ActorPriority]
		{
			property_IDS					= corpshq
			value							= 1000
			repeat_penalty					= 10000
		}

		[ActorPriority]
		{
			property_IDS					= oil
			value							= 250
			repeat_penalty					= 1000
		}

		[ActorPriority]
		{
			property_IDS					= ammo
			value							= 250
			repeat_penalty					= 1000
		}

		[ActorPriority]
		{
			property_IDS					= airhq
			value							= 650
		}

		[ActorPriority]
		{
			property_IDS					= infhq
			value							= 650
		}

		[ActorPriority]
		{
			property_IDS					= mechhq
			value							= 650
		}

		[ActorPriority]
		{
			property_IDS					= armorhq
			value							= 650
		}

		[ActorPriority]
		{
			property_IDS					= airfield
			value							= 1000
		}

		[ActorPriority]
		{
			property_IDS					= engineer_brigade
			value							= 550
		}

		[ActorPriority]
		{
			property_IDS					= motor_pool
			value							= 550
		}

		[ActorPriority]
		{
			property_IDS					= artillery_brigade
			value							= 550
		}

		[ActorPriority]
		{
			property_IDS					= property_city
			value							= 300
		}

		[ActorPriority]
		{
			property_IDS					= infantry_company
			value							= 700
			repeat_penalty					= 150
		}

		[ActorPriority]
		{
			property_IDS					= paratrooper_company
			value							= 700
			repeat_penalty					= 150				
		}

		[ActorPriority]
		{
			property_IDS					= mechanized_company
			value							= 500
			repeat_penalty					= 100				
		}

		[ActorPriority]
		{
			property_IDS					= artillery_company
			value							= 500
			repeat_penalty					= 10000			
		}

		[ActorPriority]
		{
			property_IDS					= antiaircraft_company
			value							= -100
			repeat_penalty					= 200				
		}

	} ;; GoalEngine
} ;; AAInfantryPlanesBaseEgo

[template InfantryPlanesLowIncomeEgo template = AAInfantryPlanesBaseEgo]
{
	[Filters]
	{
		[Item]
		stat								= money_rate
		min									= -9999999
		max									= 10
	}

	[GoalEngine]
	{
		[GoalPriority]
		{
			goal_IDS						= RESEARCH
			multiplier						= 1.5
			fuzziness						= 100
		}

		[Research template = InfantryPlanesLowIncomeEgoResearch]

		[ResourceManagement]
		{
			other_plenty_value				= 15
		}
		
		[OffensiveCV]
		{
			cv_advantage_target				= 1
			cv_exponent_under_target		= 3
		}

		[DefensiveCV]
		{
			cv_advantage_target				= 1
			cv_advantage_max				= 2.5
			min_cv_to_assign				= 300
			count_static_cv					= true
		}

		[Exploration]
		{
			[DeepGoals]
			{
				num_goals					= 1
				base_priority				= 500
				min_priority				= 500
				black_fog_priority			= 200
				grey_fog_priority			= 200
				fog_search_depth			= -1
				use_time_since_last_scouted	= true
			}

			[AirReconGoals]
			{
				num_goals					= 0
				use_time_since_last_scouted	= true
			}
		}

		[Recruiting]
		{
			max_goals_per_think				= 4
			num_military_goals				= 3
			insufficient_income_level		= 10

			[SpecificRecruitRequest]
			{
				property_ids				= oil
			}

			[SpecificRecruitRequest]
			{
				property_ids				= ammo
			}

			[SpecificRecruitRequest]
			{
				property_ids				= corpshq 
			}

			[SpecificRecruitRequest]
			{
				property_ids				= engineer_brigade
				repeat_penalty				= 10000
			}

			[SpecificRecruitRequest]
			{
				property_ids				= motor_pool
				repeat_penalty				= 10000
			}

			[SpecificRecruitRequest]
			{
				property_ids				= artillery_brigade
				base_priority				= 200
				repeat_penalty				= 10000
			}
							

			[SpecificRecruitRequest]
			{
				property_ids				= infhq 
				base_priority				= -850
				hq_type_not_available_bonus	= 1100
				repeat_penalty				= 10000
			}							

			[SpecificRecruitRequest]
			{
				property_ids				= airhq 
				base_priority				= -850
				hq_type_not_available_bonus	= 900
				one_time_bonus				= 100
				repeat_penalty				= 10000
			}	

			[SpecificRecruitRequest]
			{
				property_ids				= airfield
				base_priority				= 250
				repeat_penalty				= 10000
			}

			[SpecificRecruitRequest]
			{
				property_ids				= tacairhq 
				base_priority				= -850
				hq_type_not_available_bonus	= 900
				one_time_bonus				= 100
				repeat_penalty				= 10000
			}											


			[SpecificRecruitRequest]
			{
				property_ids				= tacairfield
				base_priority				= 250
				repeat_penalty				= 10000
			}

			[SpecificRecruitRequest]
			{
				property_ids				= engineer
				base_priority				= 2000
				
			}

			[SpecificRecruitRequest]
			{
				property_ids				= property_bunker_aa
				
			}

			[SpecificRecruitRequest]
			{
				property_ids				= property_bunker_artillery
				
			}

			[SpecificRecruitRequest]
			{
				property_ids				= property_bunker_aa
				
			}

			[SpecificRecruitRequest]
			{
				property_ids				= property_bunker_artillery
				
			}


			[SpecificRecruitRequest]
			{
				property_ids				= infantry_company
				base_priority				= 2000
				
			}

			[SpecificRecruitRequest]
			{
				property_ids				= antitank_company
				base_priority				= 2000
				
			}
	
			[SpecificRecruitRequest]
			{
				property_ids				= artillery_company
				
			}


			[SpecificRecruitRequest]
			{
				property_ids				= antiaircraft_company
				base_priority				= 1500
				repeat_penalty				= 1000
			}

			[SpecificRecruitRequest]
			{
				property_ids				= recon
			repeat_penalty					= 10000
				
			}

			[SpecificRecruitRequest]
			{
				property_ids				= property_city
				
			}


		} ;; Recruiting

		[ActorPriority]
		{
			property_IDS					= recon
			value							= -500
			repeat_penalty					= 10000				
		}

		[ActorPriority]
		{
			property_ids 					= lighttank_company
			value							= 1000
		}

		[ActorPriority]
		{
			property_IDS					= tankdestroyer_company
			value							= 1000
		}

		[ActorPriority]
		{
			property_IDS					= antitank_company
			value							= 1000			
		}

		[ActorPriority]
		{
			property_IDS					= engineer
			value							= 2000
			repeat_penalty					= 1000
		}
		[ActorPriority]
		{
			property_IDS					= property_bunker
			value							= 1000
		}

		[ActorPriority]
		{
			property_IDS					= property_bunker_artillery
			value							= 750
		}

		[ActorPriority]
		{
			property_IDS					= property_bunker_aa
			value							= 2000
		}

	} ;; GoalEngine
} ;; BalancedLowIncomeEgo

[template InfantryPlanesMainGameEgo template = AAInfantryPlanesBaseEgo]
{
	[Filters]
	{
		[Item]
		stat								= money_rate
		min									= 11
		max									= 40
	}

	[GoalEngine]
	{
		[GoalPriority]
		{
			goal_IDS						= RESEARCH
			multiplier						= 1.75
			fuzziness						= 125
		}

		[Research template = InfantryPlanesMainGameEgoResearch]

		[OffensiveCV]
		{
			cv_advantage_target				= .9
			cv_exponent_under_target		= 2
		}

		[DefensiveCV]
		{
			fixed cv_advantage_target		= 1
			fixed cv_advantage_max			= 2.5
			min_cv_to_assign				= 200
			count_static_cv					= false
		}

		[Exploration]
		{
			[DeepGoals]
			{
				num_goals					= 2
				base_priority				= 500
				min_priority				= 500
				black_fog_priority			= 200
				grey_fog_priority			= 200
				fog_search_depth			= -1
				use_time_since_last_scouted	= true
			}

			[AirReconGoals]
			{
				num_goals					= 1
				base_priority				= 100
				min_priority				= 100
				black_fog_priority			= 100
				grey_fog_priority			= 100
				fog_search_depth			= -1
				use_time_since_last_scouted	= true
			}
		} ;; Exploration

		[Recruiting]
		{
			max_goals_per_think				= 5
			num_military_goals				= 4
			insufficient_income_level		= 30

			[SpecificRecruitRequest]
			{
				property_ids				= oil
			}

			[SpecificRecruitRequest]
			{
				property_ids				= ammo
			}

			[SpecificRecruitRequest]
			{
				property_ids				= corpshq 
			}

			[SpecificRecruitRequest]
			{
				property_ids				= engineer_brigade
				repeat_penalty				= 10000
			}

			[SpecificRecruitRequest]
			{
				property_ids				= motor_pool
				repeat_penalty				= 10000
			}

			[SpecificRecruitRequest]
			{
				property_ids				= artillery_brigade
				base_priority				= 200
				repeat_penalty				= 10000
			}
							

			[SpecificRecruitRequest]
			{
				property_ids				= infhq 
				base_priority				= -850
				hq_type_not_available_bonus	= 1100
			}							

			[SpecificRecruitRequest]
			{
				property_ids				= mechhq
				base_priority				= -850
				hq_type_not_available_bonus	= 1100
				repeat_penalty				= 10000
			}

			[SpecificRecruitRequest]
			{
				property_ids				= armorhq
				base_priority				= -850
				hq_type_not_available_bonus	= 1100
				repeat_penalty				= 10000
			}

			[SpecificRecruitRequest]
			{
				property_ids				= airhq 
				base_priority				= -850
				hq_type_not_available_bonus	= 900
				one_time_bonus				= 100
				repeat_penalty				= 10000
			}	

			[SpecificRecruitRequest]
			{
				property_ids				= tacairhq 
				base_priority				= -850
				hq_type_not_available_bonus	= 900
				one_time_bonus				= 100
				repeat_penalty				= 10000
			}												

			[SpecificRecruitRequest]
			{
				property_ids				= tacairfield
				base_priority				= 250
				repeat_penalty				= 10000
			}

			[SpecificRecruitRequest]
			{
				property_ids				= airfield
				base_priority				= 250
				repeat_penalty				= 10000
			}


			[SpecificRecruitRequest]
			{
				property_ids				= engineer
				base_priority				= 2000
				
			}

			[SpecificRecruitRequest]
			{
				property_ids				= property_bunker_aa
				
			}

			[SpecificRecruitRequest]
			{
				property_ids				= property_bunker_artillery
				
			}

			[SpecificRecruitRequest]
			{
				property_ids				= property_bunker_aa
				
			}

			[SpecificRecruitRequest]
			{
				property_ids				= property_bunker_artillery
				
			}


			[SpecificRecruitRequest]
			{
				property_ids				= infantry_company
				base_priority				= 2000
				
			}

			[SpecificRecruitRequest]
			{
				property_ids				= antitank_company
				base_priority				= 2000
				
			}

	
			[SpecificRecruitRequest]
			{
				property_ids				= artillery_company
				
			}

			[SpecificRecruitRequest]
			{
				property_ids				= mechanized_company
				
			}

			[SpecificRecruitRequest]
			{
				property_ids				= tankdestroyer_company
				
			}

			[SpecificRecruitRequest]
			{
				property_ids				= antiaircraft_company
				base_priority				= 1500
				repeat_penalty				= 1000
			}

			[SpecificRecruitRequest]
			{
				property_ids				= tank_company
				
			}

			[SpecificRecruitRequest]
			{
				property_ids				= hvytank_company

			}

			[SpecificRecruitRequest]
			{
				property_ids				= recon
			repeat_penalty					= 10000
				
			}

			[SpecificRecruitRequest]
			{
				property_ids				= flmtank_company
				
			}

			[SpecificRecruitRequest]
			{
				property_ids				= property_city
				
			}
		}

		[ActorPriority]
		{
			property_IDS					= recon
			value							= -500
			repeat_penalty					= 10000				
		}

		[ActorPriority]
		{
			property_ids 					= lighttank_company
			value							= 500
		}

		[ActorPriority]
		{
			property_IDS					= tankdestroyer_company
			value							= 1000
		}

		[ActorPriority]
		{
			property_IDS					= antitank_company
			value							= 1000			
		}

		[ActorPriority]
		{
			property_IDS					= property_bunker
			value							= 750
			repeat_penalty					= 75
		}

		[ActorPriority]
		{
			property_IDS					= property_bunker_artillery
			value							= 750
			repeat_penalty					= 75
		}

		[ActorPriority]
		{
			property_IDS					= property_bunker_aa
			value							= 750
			repeat_penalty					= 75
		}



	} ;; GoalEngine
} ;; BalancedMainGameEgo

[template InfantryPlanesEndGameEgo template = AAInfantryPlanesBaseEgo]
{
	[Filters]
	{
		[Item]
		stat								= money_rate
		min									= 41
		max									= 1000000
	}

	[GoalEngine]
	{
		[GoalPriority]
		{
			goal_IDS						= RESEARCH
			multiplier						= 2
			fuzziness						= 150
		}

		[Research template = InfantryPlanesEndGameEgoResearch]

		[OffensiveCV]
		{
			cv_advantage_target				= 0.8
			cv_exponent_under_target		= 1.5
		}

		[DefensiveCV]
		{
			fixed cv_advantage_target		= 1
			fixed cv_advantage_max			= 2.5
			min_cv_to_assign				= 100
			count_static_cv					= false
		}

		[Exploration]
		{
			[DeepGoals]
			{
				num_goals					= 3
				base_priority				= 500
				min_priority				= 500
				black_fog_priority			= 200
				grey_fog_priority			= 200
				fog_search_depth			= -1
				use_time_since_last_scouted	= true
			}

			[AirReconGoals]
			{
				num_goals					= 1
				base_priority				= 250
				min_priority				= 250
				black_fog_priority			= 250
				grey_fog_priority			= 250
				fog_search_depth			= -1
				use_time_since_last_scouted	= true
			}
		} ;; Exploration

		[Recruiting]
		{
			max_goals_per_think				= 6
			num_military_goals				= 5
			insufficient_income_level		= 80

			[SpecificRecruitRequest]
			{
				property_ids				= oil
			}

			[SpecificRecruitRequest]
			{
				property_ids				= ammo
			}

			[SpecificRecruitRequest]
			{
				property_ids				= corpshq 
			}

			[SpecificRecruitRequest]
			{
				property_ids				= engineer_brigade
				repeat_penalty				= 10000
			}

			[SpecificRecruitRequest]
			{
				property_ids				= motor_pool
				repeat_penalty				= 10000
			}

			[SpecificRecruitRequest]
			{
				property_ids				= artillery_brigade
				base_priority				= 200
				repeat_penalty				= 10000
			}
							

			[SpecificRecruitRequest]
			{
				property_ids				= infhq 
				base_priority				= -850
				hq_type_not_available_bonus	= 1100
			}							

			[SpecificRecruitRequest]
			{
				property_ids				= mechhq
				base_priority				= -850
				hq_type_not_available_bonus	= 1100
			}

			[SpecificRecruitRequest]
			{
				property_ids				= armorhq
				base_priority				= -850
				hq_type_not_available_bonus	= 1100
				repeat_penalty				= 10000
			}

			[SpecificRecruitRequest]
			{
				property_ids				= airhq 
				base_priority				= -850
				hq_type_not_available_bonus	= 10000
				one_time_bonus				= 1000
			}							

			[SpecificRecruitRequest]
			{
				property_ids				= tacairfield
				base_priority				= 250

			}

			[SpecificRecruitRequest]
			{
				property_ids				= airfield
				base_priority				= 250
				repeat_penalty				= 10000
			}


			[SpecificRecruitRequest]
			{
				property_ids				= engineer
				base_priority				= 2000
				
			}

			[SpecificRecruitRequest]
			{
				property_ids				= property_bunker_aa
				
			}

			[SpecificRecruitRequest]
			{
				property_ids				= property_bunker_artillery
				
			}

			[SpecificRecruitRequest]
			{
				property_ids				= property_bunker_aa
				
			}

			[SpecificRecruitRequest]
			{
				property_ids				= property_bunker_artillery
				
			}


			[SpecificRecruitRequest]
			{
				property_ids				= infantry_company
				base_priority				= 2000
				
			}

			[SpecificRecruitRequest]
			{
				property_ids				= antitank_company
				base_priority				= 2000
				
			}

	
			[SpecificRecruitRequest]
			{
				property_ids				= artillery_company
				
			}

			[SpecificRecruitRequest]
			{
				property_ids				= mechanized_company
				
			}


			[SpecificRecruitRequest]
			{
				property_ids				= tankdestroyer_company
				
			}

			[SpecificRecruitRequest]
			{
				property_ids				= antiaircraft_company
				base_priority				= 1500
				repeat_penalty				= 1000
			}

			[SpecificRecruitRequest]
			{
				property_ids				= tank_company
				
			}	

			[SpecificRecruitRequest]
			{
				property_ids				= hvytank_company

			}

			[SpecificRecruitRequest]
			{
				property_ids				= recon
			repeat_penalty					= 10000
				
			}

			[SpecificRecruitRequest]
			{
				property_ids				= flmtank_company
				
			}

			[SpecificRecruitRequest]
			{
				property_ids				= property_city
				
			}

		} ;; Recruiting

		[ActorPriority]
		{
			property_IDS					= recon
			value							= -500
			repeat_penalty					= 10000				
		}

		[ActorPriority]
		{
			property_ids 					= lighttank_company
			value							= 250
		}

		[ActorPriority]
		{
			property_IDS					= tankdestroyer_company
			value							= 1000
		}

		[ActorPriority]
		{
			property_IDS					= antitank_company
			value							= 500			
		}

		[ActorPriority]
		{
			property_ids 					= hvytank_company
			value							= 1000
		}

		[ActorPriority]
		{
			property_IDS					= engineer
			value							= 600
			repeat_penalty					= 10000
		}

		[ActorPriority]
		{
			property_IDS					= property_bunker
			value							= 750
			repeat_penalty					= 75
		}

		[ActorPriority]
		{
			property_IDS					= property_bunker_artillery
			value							= 750
			repeat_penalty					= 75
		}

		[ActorPriority]
		{
			property_IDS					= property_bunker_aa
			value							= 750
			repeat_penalty					= 75
		}
	} ;; GoalEngine
} ;; BalancedEndGameEgo