infantry_generic_ahist = {

	blocked_for = {
		GER
		JAP
		ENG
		USA
		ITA
		SOV
		CHI
		PRC 
		GXC
		YUN
		SHX
		FRA
		XSM
		SIK
		FIN
		CZE
		MON
		TAN
		AOI
		NEP
	}

	roles = {
		infantry
	}
	
	upgrade_prio = {
		factor = 2

		modifier = {
			factor = 5
		}
	}

	match_to_count = 0.10
	
	infantry_default_sfp_1 = {
	
		upgrade_prio = {
			factor = 10


			modifier = {
				factor = 0
				AND = {
					has_tech = special_forces_mountaineers
					has_tech = rocket_artillery
				}
			}


			modifier = {
				factor = 0
				OR = {
					is_ai_mass_mob = yes
					is_ai_mech_mob = yes
					is_historical_focus_on = yes
					NOT = { has_tech = superior_firepower }
				}
			}
		}
		
		target_width = 12.0
		width_weight = 1.0
		column_swap_factor = 0.5
		
		stat_weights = {
			0.00 #-- default_morale
			0.00 #-- defense
			1.00 #-- breakthrough
			0.00 #-- hardness
			4.00 #-- soft_attack
			0.00 #-- hard_attack
			0.00 #-- recon
			1.00 #-- entrenchment
			0.00 #-- initiative
			0.00 #-- casualty_trickleback
			0.00 #-- supply_consumption_factor
			0.00 #-- supply_consumption
			0.00 #-- suppression
			0.00 #-- suppression_factor
			0.00 #-- experience_loss_factor
			0.00 #-- equipment_capture_factor
			0.00 #-- fuel_capacity
			#-- Air Values
			0.00 #-- air_attack
			#-- Common Values
			0.60 #-- max_organisation
			0.40 #-- max_strength
			0.00 #-- maximum_speed
			0.00 #-- armor_value
			0.20 #-- ap_attack
			0.00 #-- reliability
			0.00 #-- reliability_factor
			0.00 #-- weight
			0.00 #-- fuel_consumption
			0.00 #-- fuel_consumption_factor
			0.00 #-- strat_attack
			0.00 #-- carrier_size
			0.00 #-- acc_hot_gain
			0.00 #-- acc_cold_gain
			0.00 #-- build_cost_ic
		}
		
		target_template = {
			weight = 0.9
			match_value = 13000.0
			
			support = {
				engineer = 1
				recon = 1
				anti_air = 1
				artillery = 1
			}
			
			regiments = {
				infantry = 8
			}
		}
		
		allowed_types = {
			infantry	
			rangers_support	
			engineer
			recon
			field_hospital
			logistics_company
			anti_air
			anti_tank
			artillery
			rocket_artillery
			artillery_brigade
		}
	}
	
	infantry_default_sfp_2 = {
	
		upgrade_prio = {
			factor = 10


			modifier = {
				factor = 0
				OR = {
					NOT = { has_tech = special_forces_mountaineers }
					NOT = { has_tech = rocket_artillery }
				}
			}


			modifier = {
				factor = 0
				OR = {
					is_ai_mass_mob = yes
					is_ai_mech_mob = yes
					is_historical_focus_on = yes
					NOT = { has_tech = superior_firepower }
				}
			}
		}
		
		target_width = 12.0
		width_weight = 1.0
		column_swap_factor = 0.5
		
		stat_weights = {
			0.00 #-- default_morale
			0.00 #-- defense
			1.00 #-- breakthrough
			0.00 #-- hardness
			4.00 #-- soft_attack
			0.00 #-- hard_attack
			0.00 #-- recon
			1.00 #-- entrenchment
			0.00 #-- initiative
			0.00 #-- casualty_trickleback
			0.00 #-- supply_consumption_factor
			0.00 #-- supply_consumption
			0.00 #-- suppression
			0.00 #-- suppression_factor
			0.00 #-- experience_loss_factor
			0.00 #-- equipment_capture_factor
			0.00 #-- fuel_capacity
			#-- Air Values
			0.00 #-- air_attack
			#-- Common Values
			0.60 #-- max_organisation
			0.40 #-- max_strength
			0.00 #-- maximum_speed
			0.00 #-- armor_value
			0.20 #-- ap_attack
			0.00 #-- reliability
			0.00 #-- reliability_factor
			0.00 #-- weight
			0.00 #-- fuel_consumption
			0.00 #-- fuel_consumption_factor
			0.00 #-- strat_attack
			0.00 #-- carrier_size
			0.00 #-- acc_hot_gain
			0.00 #-- acc_cold_gain
			0.00 #-- build_cost_ic
		}
		
		target_template = {
			weight = 0.9
			match_value = 13000.0
			
			support = {
				engineer = 1
				rangers_support = 1
				rocket_artillery = 1
				anti_air = 1
				artillery = 1
			}
			
			regiments = {
				infantry = 8
			}
		}
		
		allowed_types = {
			infantry	
			rangers_support	
			engineer
			recon
			field_hospital
			logistics_company
			anti_air
			anti_tank
			artillery
			rocket_artillery
			artillery_brigade
		}
	}
	infantry_defaulta = {
	
		upgrade_prio = {
			factor = 10

			modifier = {
				factor = 0
				has_tech = superior_firepower
			}

			modifier = {
				factor = 0
				num_of_military_factories > 13
			}


			modifier = {
				factor = 0
				OR = {
					is_ai_mass_mob = yes
					is_ai_mech_mob = yes
					is_historical_focus_on = yes
				}
			}
		}
		
		target_width = 21.0
		width_weight = 1.0
		column_swap_factor = 0.5
		
		stat_weights = {
			0.00 #-- default_morale
			0.00 #-- defense
			1.00 #-- breakthrough
			0.00 #-- hardness
			4.00 #-- soft_attack
			0.00 #-- hard_attack
			0.00 #-- recon
			1.00 #-- entrenchment
			0.00 #-- initiative
			0.00 #-- casualty_trickleback
			0.00 #-- supply_consumption_factor
			0.00 #-- supply_consumption
			0.00 #-- suppression
			0.00 #-- suppression_factor
			0.00 #-- experience_loss_factor
			0.00 #-- equipment_capture_factor
			0.00 #-- fuel_capacity
			#-- Air Values
			0.00 #-- air_attack
			#-- Common Values
			0.60 #-- max_organisation
			0.40 #-- max_strength
			0.00 #-- maximum_speed
			0.00 #-- armor_value
			0.20 #-- ap_attack
			0.00 #-- reliability
			0.00 #-- reliability_factor
			0.00 #-- weight
			0.00 #-- fuel_consumption
			0.00 #-- fuel_consumption_factor
			0.00 #-- strat_attack
			0.00 #-- carrier_size
			0.00 #-- acc_hot_gain
			0.00 #-- acc_cold_gain
			0.00 #-- build_cost_ic
		}
		
		target_template = {
			weight = 0.9
			match_value = 13000.0
			
			support = {
				engineer = 1
				rangers_support = 1
				logistics_company = 1
				anti_air = 1
				artillery = 1
			}
			
			regiments = {
				infantry = 9
				artillery_brigade = 1
			}
		}
		
		allowed_types = {
			infantry	
			rangers_support	
			engineer
			recon
			field_hospital
			logistics_company
			anti_air
			anti_tank
			artillery
			rocket_artillery
			artillery_brigade
		}

		replace_at_match = 0.9
		replace_with = infantry_improveda
		target_min_match = 0.9
	}

	infantry_improveda = {
	
		upgrade_prio = {
			factor = 10

			modifier = {
				factor = 0
				has_tech = superior_firepower
			}

			modifier = {
				factor = 0
				num_of_military_factories < 13
			}

			modifier = {
				factor = 0
				OR = {
					is_ai_mass_mob = yes
					is_ai_mech_mob = yes
					is_historical_focus_on = yes
				}
			}
		}
		
		target_width = 30.0
		width_weight = 1.0
		column_swap_factor = 0.5
		
		stat_weights = {
			0.00 #-- default_morale
			0.00 #-- defense
			1.00 #-- breakthrough
			0.00 #-- hardness
			4.00 #-- soft_attack
			0.00 #-- hard_attack
			0.00 #-- recon
			1.00 #-- entrenchment
			0.00 #-- initiative
			0.00 #-- casualty_trickleback
			0.00 #-- supply_consumption_factor
			0.00 #-- supply_consumption
			0.00 #-- suppression
			0.00 #-- suppression_factor
			0.00 #-- experience_loss_factor
			0.00 #-- equipment_capture_factor
			0.00 #-- fuel_capacity
			#-- Air Values
			0.00 #-- air_attack
			#-- Common Values
			0.60 #-- max_organisation
			0.40 #-- max_strength
			0.00 #-- maximum_speed
			0.00 #-- armor_value
			0.20 #-- ap_attack
			0.00 #-- reliability
			0.00 #-- reliability_factor
			0.00 #-- weight
			0.00 #-- fuel_consumption
			0.00 #-- fuel_consumption_factor
			0.00 #-- strat_attack
			0.00 #-- carrier_size
			0.00 #-- acc_hot_gain
			0.00 #-- acc_cold_gain
			0.00 #-- build_cost_ic
		}
		
		target_template = {
			weight = 0.9
			match_value = 14000.0
			
			support = {
				engineer = 1
				rangers_support = 1
				logistics_company = 1
				field_hospital = 1
				artillery = 1
			}
			
			regiments = {
				artillery_brigade = 2
				infantry = 12
			}
		}
		
		allowed_types = {
			rangers_support
			infantry		
			engineer
			recon
			field_hospital
			logistics_company
			anti_air
			anti_tank
			artillery
			rocket_artillery
			artillery_brigade
			anti_air_brigade
			anti_tank_brigade
		}
	}


	infantry_mass_mob_baseah = {
	
		upgrade_prio = {
			factor = 10

			modifier = {
				factor = 0
				is_ai_mass_mob = no
			}

			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}

			modifier = {
				factor = 0
				num_of_military_factories > 13
			}

		}
		
		target_width = 14.0
		width_weight = 1.0
		column_swap_factor = 0.5
		
		stat_weights = {
			0.00 #-- default_morale
			0.00 #-- defense
			1.00 #-- breakthrough
			0.00 #-- hardness
			4.00 #-- soft_attack
			0.00 #-- hard_attack
			0.00 #-- recon
			1.00 #-- entrenchment
			0.00 #-- initiative
			0.00 #-- casualty_trickleback
			0.00 #-- supply_consumption_factor
			0.00 #-- supply_consumption
			0.00 #-- suppression
			0.00 #-- suppression_factor
			0.00 #-- experience_loss_factor
			0.00 #-- equipment_capture_factor
			0.00 #-- fuel_capacity
			#-- Air Values
			0.00 #-- air_attack
			#-- Common Values
			0.60 #-- max_organisation
			0.40 #-- max_strength
			0.00 #-- maximum_speed
			0.00 #-- armor_value
			0.20 #-- ap_attack
			0.00 #-- reliability
			0.00 #-- reliability_factor
			0.00 #-- weight
			0.00 #-- fuel_consumption
			0.00 #-- fuel_consumption_factor
			0.00 #-- strat_attack
			0.00 #-- carrier_size
			0.00 #-- acc_hot_gain
			0.00 #-- acc_cold_gain
			0.00 #-- build_cost_ic
		}
		
		target_template = {
			weight = 0.9
			match_value = 14000.0
			
			support = {
				artillery = 1
				anti_air = 1
				anti_tank = 1
				rangers_support = 1
				engineer = 1
			}
			
			regiments = {
				infantry = 9
				artillery_brigade = 1
			}
		}
		
		allowed_types = {
			rangers_support
			winter_logistics_support
			infantry		
			engineer
			recon
			field_hospital
			logistics_company
			anti_air
			anti_tank
			artillery
			rocket_artillery
			artillery_brigade
		}
	}


	infantry_mass_mob_base2 = {
	
		upgrade_prio = {
			factor = 10

			modifier = {
				factor = 0
				is_ai_mass_mob = no
			}

			modifier = {
				factor = 0
				num_of_military_factories < 13
			}

			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}


		}
		
		target_width = 14.0
		width_weight = 1.0
		column_swap_factor = 0.5
		
		stat_weights = {
			0.00 #-- default_morale
			0.00 #-- defense
			1.00 #-- breakthrough
			0.00 #-- hardness
			4.00 #-- soft_attack
			0.00 #-- hard_attack
			0.00 #-- recon
			1.00 #-- entrenchment
			0.00 #-- initiative
			0.00 #-- casualty_trickleback
			0.00 #-- supply_consumption_factor
			0.00 #-- supply_consumption
			0.00 #-- suppression
			0.00 #-- suppression_factor
			0.00 #-- experience_loss_factor
			0.00 #-- equipment_capture_factor
			0.00 #-- fuel_capacity
			#-- Air Values
			0.00 #-- air_attack
			#-- Common Values
			0.60 #-- max_organisation
			0.40 #-- max_strength
			0.00 #-- maximum_speed
			0.00 #-- armor_value
			0.20 #-- ap_attack
			0.00 #-- reliability
			0.00 #-- reliability_factor
			0.00 #-- weight
			0.00 #-- fuel_consumption
			0.00 #-- fuel_consumption_factor
			0.00 #-- strat_attack
			0.00 #-- carrier_size
			0.00 #-- acc_hot_gain
			0.00 #-- acc_cold_gain
			0.00 #-- build_cost_ic
		}
		
		target_template = {
			weight = 0.9
			match_value = 14000.0
			
			support = {
				artillery = 1
				anti_air = 1
				anti_tank = 1
				engineer = 1
				rangers_support = 1
			}
			
			regiments = {
				infantry = 14
				artillery_brigade = 1
			}
		}
		
		allowed_types = {
			rangers_support
			winter_logistics_support
			infantry		
			engineer
			recon
			field_hospital
			logistics_company
			anti_air
			anti_tank
			artillery
			rocket_artillery
			artillery_brigade
		}
	}


}
