armored_FRA = {
	
	role = armor

	available_for = {
		FRA
	}
	upgrade_prio = {
		factor = 399
	}

	heavy_armor_default_FRA = {

		upgrade_prio = {
			factor = 2000

			modifier = {
				factor = 0
				OR = {
					has_country_flag = era_of_transition
					has_country_flag = fastgaming_test
					has_country_flag = FRA_spacemarine
					can_equip_mech = yes
					has_DLC_for_tank = no
				}
			}
		}
		target_template = {
			support = {
				engineer = 1
				anti_air = 1
				artillery = 1
				signal_company = 1
				medium_flame_tank = 1
			}

			regiments = {
				heavy_tank_destroyer_brigade = 8
				camelry = 7
			}
		}
	}

	heavy_armor_default_FRAb = {

		upgrade_prio = {
			factor = 2000

			modifier = {
				factor = 0
				OR = {
					has_country_flag = era_of_transition
					has_country_flag = fastgaming_test
					has_country_flag = FRA_spacemarine
					has_DLC_for_tank = no
				}
			}
			modifier = {
				factor = 0
				NOT = { has_country_flag = era_of_transition }
				can_equip_mech = no
			}

		}
		target_template = {
			support = {
				engineer = 1
				anti_air = 1
				artillery = 1
				signal_company = 1
				medium_flame_tank = 1
			}

			regiments = {
				heavy_tank_destroyer_brigade = 8
				mechanized = 7
			}
		}
	}

	heavy_armor_default_FRA_2 = {

		upgrade_prio = {
			factor = 2000

			modifier = {
				factor = 0
				OR = {
					NOT = { has_country_flag = era_of_transition }
					has_country_flag = fastgaming_test
					has_country_flag = FRA_spacemarine
					has_DLC_for_tank = no
				}
			}
		}
		target_template = {
			support = {
				medium_flame_tank = 1
				anti_air = 1
				anti_tank = 1
				signal_company = 1
				engineer = 1
			}

			regiments = {
				heavy_tank_destroyer_brigade = 10
				mechanized = 8
			}
		}
	}

	medium_armor_default_FRA_2 = {

		upgrade_prio = {
			factor = 2000

			modifier = {
				factor = 0
				OR = {
					NOT = { has_country_flag = fastgaming_test }
					has_country_flag = FRA_spacemarine
					has_DLC_for_tank = no
				}
			}
		}
		target_template = {
			support = {
				medium_flame_tank = 1
				anti_air = 1
				anti_tank = 1
				artillery = 1
				engineer = 1
			}

			regiments = {
				medium_armor = 9
				camelry = 7
			}
		}
	}

	heavy_TD_spacemarine = {

		upgrade_prio = {
			factor = 2000

			modifier = {
				factor = 0
				OR = {
					NOT = { has_country_flag = FRA_spacemarine }
					has_DLC_for_tank = no
				}
			}
		}
		target_template = {
			support = {
				anti_air = 1
				artillery = 1
				signal_company = 1
				engineer = 1
				medium_flame_tank = 1
			}

			regiments = {
				heavy_tank_destroyer_brigade = 5
				mechanized = 13
			}
		}
	}

	heavy_TD_no_DLC = {

		upgrade_prio = {
			factor = 2000

			modifier = {
				factor = 0
				has_DLC_for_tank = yes
			}
		}
		target_template = {
			support = {
				anti_air = 1
				artillery = 1
				signal_company = 1
				engineer = 1
				field_hospital = 1
			}

			regiments = {
				heavy_armor = 5
				mechanized = 13
			}
		}
	}
}

infantry_FRA_ahistorical = {
	
	role = infantry

	available_for = {
		FRA
	}

	upgrade_prio = {
		base = 2000

		modifier = {
			factor = 0
			is_historical_focus_on = yes
		}
	}
	infantry_default_FRA_ahist = {

		upgrade_prio = {
			factor = 2000

			modifier = {
				factor = 0
				num_of_military_factories > 50
			}
		}
		target_template = {
			support = {
				artillery = 1
				anti_air = 1
				anti_tank = 1
				engineer = 1
			}

			regiments = {
				infantry = 7
				artillery_brigade = 1
			}
		}
	}
	infantry_2_FRA_ahist = {

		upgrade_prio = {
			factor = 2000

			modifier = {
				factor = 0
				OR = {
					num_of_military_factories < 50
					num_of_military_factories > 100
				}
			}
		}
		target_template = {
			support = {
				artillery = 1
				anti_air = 1
				anti_tank = 1
				engineer = 1
				field_hospital = 1
			}

			regiments = {
				infantry = 9
				artillery_brigade = 2
			}
		}
	}
	infantry_3_FRA_ahist = {

		upgrade_prio = {
			factor = 2000

			modifier = {
				factor = 0
				num_of_military_factories < 100
			}
		}
		target_template = {
			support = {
				artillery = 1
				anti_air = 1
				anti_tank = 1
				engineer = 1
				field_hospital = 1
			}

			regiments = {
				infantry = 9
				artillery_brigade = 3
			}
		}
	}
}
infantry_FRA = {
	
	role = infantry

	available_for = {
		FRA
	}

	upgrade_prio = {
		base = 2000

		modifier = {
			factor = 0
			is_historical_focus_on = no
		}
	}
	infantry_default_FRA = {

		upgrade_prio = {
			factor = 2000

			modifier = {
				factor = 0
				num_of_military_factories > 100
				date > 1941.1.1
			}
		}
		target_template = {
			support = {
				engineer = 1
				artillery = 1
				anti_air = 1
				anti_tank = 1
				signal_company = 1
			}

			regiments = {
				infantry = 8
			}
		}
	}

	FRA_template_infantry_2 = {

		upgrade_prio = {
			factor = 2000

			modifier = {
				factor = 0
				OR = {
					num_of_military_factories < 100
					date < 1941.1.1
				}
			}

			modifier = {
				factor = 0
				is_historical_focus_on = no
			}
		}

		can_upgrade_in_field = {
			has_equipment = { infantry_equipment > 1000 }
		}
		target_template = {
			support = {
				engineer = 1
				signal_company = 1
				artillery = 1
				field_hospital = 1
				logistics_company = 1
			}

			regiments = {
				infantry = 12
				artillery_brigade = 2
				anti_tank_brigade = 1
				anti_air_brigade = 1
			}
		}
	}

	heavy_TD_spacemarine_inf_base = {

		upgrade_prio = {
			factor = 2000

			modifier = {
				factor = 0
				NOT = { has_country_flag = FRA_spacemarine }
			}

			modifier = {
				factor = 0
				num_of_military_factories > 75
			}
		}
		target_template = {
			support = {
				artillery = 1
				anti_tank = 1
				anti_air = 1
				engineer = 1
			}

			regiments = {
				infantry = 8
			}
		}
	}

	heavy_TD_spacemarine_inf = {

		upgrade_prio = {
			factor = 2000

			modifier = {
				factor = 0
				NOT = { has_country_flag = FRA_spacemarine }
			}

			modifier = {
				factor = 0
				num_of_military_factories < 75
			}
		}
		target_template = {
			support = {
				anti_air = 1
				artillery = 1
				field_hospital = 1
				engineer = 1
				signal_company = 1
			}

			regiments = {
				heavy_tank_destroyer_brigade = 1
				infantry = 8
			}
		}
	}

	heavy_TD_spacemarine_inf_2 = {

		upgrade_prio = {
			factor = 2000

			modifier = {
				factor = 0
				NOT = { has_country_flag = FRA_spacemarine }
			}

			modifier = {
				factor = 0
				num_of_military_factories < 150
			}

			modifier = {
				factor = 10
				num_of_military_factories > 150
			}
		}
		target_template = {
			support = {
				anti_air = 1
				artillery = 1
				medium_flame_tank = 1
				engineer = 1
				field_hospital = 1
			}

			regiments = {
				heavy_tank_destroyer_brigade = 5
				infantry = 15
			}
		}
	}
}


garrison_FRA = {
	
	role = garrison

	available_for = {
		FRA
	}

	upgrade_prio = {
		factor = 80
	}
	garrison_FRA = {

		upgrade_prio = {
			factor = 1

			modifier = {
				factor = 15
			}
		}

		reinforce_prio = 0
		custom_icon = 7
		target_template = {
			support = {
				artillery = 1
			}

			regiments = {
				infantry = 6
			}
		}
	}
}


	# REGIMENTS:
	#infantry
	#light_armor
	#super_heavy_armor
	#modern_armor
	#heavy_armor
	#medium_armor
	#light_armor
	#anti_tank
	#cavalry
	#motorized
	#mechanized
	#marine
	#mountaineers
	#paratrooper
	#rocket_artillery
	#light_tank_destroyer
	#anti_air
	#artillery

	# SUPPORT:
	#engineer
	#recon
	#signal_company
	#maintenance_company
	#anti_tank_brigade
	#anti_air_brigade
	#artillery_brigade
	#field_hospital
	#logistics_company
	#military_police
	#light_sp_anti_air_brigade
	#light_sp_artillery_brigade
