
infantry_AOI = {
	
	role = infantry

	available_for = {
		AOI
		LBA
	}
	upgrade_prio = {
		factor = 2

		modifier = {
			factor = 5
		}
	}
	infantry_default_AOI = {
	
		upgrade_prio = {
			factor = 20
			modifier = {
				factor = 0
				num_of_military_factories > 12
			}
		}
		target_template = {
			regiments = {
				irregular_infantry = 7
			}
		
			support = {
				artillery = 1
				anti_air = 1
				rangers_support = 1
			}
		}
	}
	
	infantry_2_AOI = {
	
		upgrade_prio = {
			factor = 20
			modifier = {
				factor = 0
				num_of_military_factories < 12
			}
			modifier = {
				factor = 0
				num_of_military_factories > 50
			}
		}
		target_template = {
			regiments = {
				irregular_infantry = 7
			}
		
			support = {
				anti_air = 1
				artillery = 1
				rangers_support = 1
				engineer = 1
			}
		}

		can_upgrade_in_field = {
			has_equipment = { support_equipment > 500 }
		}
	}
	
	infantry_3_AOI = {
	
		upgrade_prio = {
			factor = 20
			modifier = {
				factor = 0
				num_of_military_factories < 50
			}
		}
		target_template = {
			regiments = {
				irregular_infantry = 22
			}
		
			support = {
				anti_air = 1
				artillery = 1
				field_hospital = 1
				engineer = 1
				rangers_support = 1
			}
		}
	}
}


mountaineers_AOI = {

	
	role = mountaineers

	available_for = {
		AOI
		LBA
	}
	upgrade_prio = {
		factor = 2

		modifier = {
			factor = 0
			NOT = {
				has_tech = tech_mountaineers
			}
		}
	}
	mountaineers_default_AOI = {
	
		upgrade_prio = {
			factor = 25
			modifier = {
				factor = 0
				num_of_military_factories > 20
			}
		}
		
		target_template = {
			support = {
				artillery = 1
				rangers_support = 1
				anti_air = 1
				engineer = 1
				field_hospital = 1
			}
			
			regiments = {
				mountaineers = 7
			}
		}
	}

	mountaineers_adv_AOI = {
	
		upgrade_prio = {
			factor = 2
			modifier = {
				factor = 0
				num_of_military_factories < 25
			}
		}
		target_template = {
			support = {
				artillery = 1
				rangers_support = 1
				anti_air = 1
				engineer = 1
				field_hospital = 1
			}
			
			regiments = {
				mountaineers = 18
			}
		}
	}
}

