armor_generic = {
	role = armor
	
	upgrade_prio = {
		factor = 5

		modifier = {
			factor = 100
			OR = {
				has_tech = basic_medium_tank
				has_tech = basic_medium_tank_chassis
			}
		}
	}

	light_armor_default = {
		upgrade_prio = {
			factor = 5

		     modifier = {
			     factor = 0
			     date > 1942.1.1
		     }
		}
		
		
		target_template = {
			
			support = {
				engineer = 1
				artillery = 1
				mot_recon = 1
			}
			
			regiments = {
				light_armor = 8
				motorized = 4
			}
		}

		
		replace_at_match = 0.75
		replace_with = medium_armor_default
		target_min_match = 0.5
	}

	medium_armor_default = {
	
		upgrade_prio = {
			factor = 1
			
			modifier = {
				factor = 15
				OR = {
					has_tech = basic_medium_tank
					has_tech = basic_medium_tank_chassis
				}
			}
		}
		

		target_template = {
			support = {
				anti_air = 1
				signal_company = 1
				light_tank_recon = 1
				maintenance_company = 1
			}
			
			regiments = {
				medium_armor = 10
				motorized = 4
				mot_artillery_brigade = 1
			}
		}

		replace_at_match = 0.75
	    replace_with = modern_armor_default
		target_min_match = 0.6
	}


	modern_armor_default = {
	
		upgrade_prio = {
			factor = 1
		}
		
		target_template = {
			support = {
				anti_air = 1
				signal_company = 1
				light_tank_recon = 1
				maintenance_company = 1
			}
			
			regiments = {
				modern_armor = 10
				mechanized = 4
				mot_artillery_brigade = 1
			}
		}

	}

}

garrison_generic = {
	role = garrison
	
	upgrade_prio = {
		factor = 1
		
		modifier = {
			factor = 0
			ai_has_role_template = garrison
		}
	}
	
	garrison_generic = {
	
		reinforce_prio = 0
		custom_icon = 7
	
		upgrade_prio = {
			factor = 2
		}
		
		
		target_template = {
			
			support = { 
				engineer = 1
				artillery = 1
			}
			
			regiments = {
				infantry = 9
			}
		}

	}
}

suppression_generic = {
	role = suppression
			
	upgrade_prio = {
		factor = 1

		modifier = {
			factor = 50
		    num_occupied_states > 5
		}
	}
	

	suppression_generic = {
	
		reinforce_prio = 0
		custom_icon = 13
	
		upgrade_prio = {
			factor = 2
		}
		

		target_template = {
			support = { 
				military_police = 1
			}
			
			regiments = {	
				cavalry = 8
			}
		}

	}
}

infantry_generic = {

	role = infantry
	
	upgrade_prio = {
		factor = 15
	}


	infantry_default = {
	
		upgrade_prio = {
			factor = 15
		}
		
		
		target_template = {
			support = {
				engineer = 1
			    recon = 1
				anti_tank = 1
				anti_air = 1
			}
			
			regiments = {
				infantry = 10
				artillery_brigade = 1
			}
		}
		
	}
}

mountaineers_generic = {
	role = mountaineers
	
	upgrade_prio = {
		factor = 2
	}
	

	mountaineers_default = {
	
		upgrade_prio = {
			factor = 2
		}

		target_template = {
			support = {
				engineer = 1
			    recon = 1
				anti_tank = 1
				logistics_company = 1
				artillery = 1
			}
			
			regiments = {
				mountaineers = 10
			}
		}
	}
}

marines_generic = {


	role = marines
	
	upgrade_prio = {
		factor = 2
	}
	

	marine_default = {
	
		upgrade_prio = {
			factor = 2

			modifier = {
				factor = 1
			}
		}

		target_template = {

			support = {
				engineer = 1
			    light_tank_recon = 1
				logistics_company = 1
				anti_air = 1
			}
			
			regiments = {
				marine = 10
			}
		}
	}
}


paratrooper_generic = {

	role = paratrooper
	upgrade_prio = {
		factor = 2

	}

	paratrooper_default = {
	
		upgrade_prio = {
			factor = 2
		}
		
		target_template = {

			support = {
				engineer = 1
			    recon = 1
				artillery = 1
				logistics_company = 1
				anti_tank = 1
			}
			
			regiments = {
				paratrooper = 10
			}
		}
	
	}
}



