infantry_harf_default = {
        #通用编制，让拥有自己独特编制的国家禁用
     
	role = armor_infantry #自定义编制类型，这里用的原版默认编制，

	upgrade_prio = {
		factor = 15 #该编制类型相对于其他编制类型优先升级的倾向（策略文件也能改，那里改的话应该是优先覆盖）
	}
	armor_infantry_template_minor_allies = {
        reinforce_prio = 2
		upgrade_prio = {
			factor = 10
            modifier = {
				factor = 0
				or = { 
					is_major = yes
                    num_of_military_factories > 99
					has_design_based_on = heavy_tank_destroyer_chassis
				}
			}
			modifier = {
				factor = 0
				has_tech = mechanised_infantry 
			}
			modifier = {
				factor = 0
				not = {
				    any_allied_country = {
				    is_major = yes
				    or = { num_of_military_factories > 99
				    num_divisions > 99 }
			        }    
				}
			}
        }
        target_template = {
            regiments = {
                infantry = 10
                medium_armor = 8
            }
			support = {
				engineer = 1
                field_hospital = 1
				medium_flame_tank = 1
                light_tank_recon = 1
                anti_air = 1
			}
		}
    }
	armor_infantry_template_minor_allies_heavy = {
        reinforce_prio = 2
		upgrade_prio = {
			factor = 15
            modifier = {
				factor = 0
				or = { 
					is_major = yes
                    num_of_military_factories > 99
					has_design_based_on = heavy_tank_destroyer_chassis 
				}
			}
			modifier = {
				factor = 0
				not = { has_tech = mechanised_infantry }
			}
			modifier = {
				factor = 0
				not = {
				    any_allied_country = {
				    is_major = yes
				    or = { num_of_military_factories > 99
				    num_divisions > 99 }
			        }    
				}
			}
        }
        target_template = {
            regiments = {
                mechanized = 10
                medium_armor = 8
            }
			support = {
				engineer = 1
                field_hospital = 1
				medium_flame_tank = 1
                light_tank_recon = 1
                anti_air = 1
			}
		}
    }
	armor_infantry_template_minor_allies_elite = {
        reinforce_prio = 2
		upgrade_prio = {
			factor = 20
            modifier = {
				factor = 0
				or = { 
					is_major = yes
                    num_of_military_factories > 99
					not = { has_tech = mechanised_infantry }
					not = { has_design_based_on = heavy_tank_destroyer_chassis }
				}
			}
			modifier = {
				factor = 0
				not = {
				    any_allied_country = {
				    is_major = yes
				    or = { num_of_military_factories > 99
				    num_divisions > 99 }
			        }    
				}
			}
        }
        target_template = {
            regiments = {
                mechanized = 9
                medium_armor = 8
				heavy_tank_destroyer_brigade = 1
            }
			support = {
				engineer = 1
                field_hospital = 1
				medium_flame_tank = 1
                light_tank_recon = 1
                anti_air = 1
			}
		}
    }
	infantry_template_small = {
		upgrade_prio = {
			factor = 10 #用于规定什么条件下AI会升级到这个编制，高倾向的话就直接捏下一个了
            modifier = {
				factor = 0
                num_of_military_factories > 15
			}
			modifier = {
				factor = 0
                any_allied_country = {
				is_major = yes
				or = { num_of_military_factories > 99
				num_divisions > 99 }
			    }
			}
		}
        target_template = {
			regiments = {
				infantry = 13
                anti_air_brigade = 1
 			}

			support = {
                engineer = 1
				medium_flame_tank = 1
			}
		}
	}

	# 27宽凑合
	infantry_template_medium = {
		upgrade_prio = {
			factor = 15
            modifier = {
				factor = 0
				OR = { num_of_military_factories < 16
                num_of_military_factories > 29 }
			}
			modifier = {
				factor = 0
                any_allied_country = {
				is_major = yes
				or = { num_of_military_factories > 99
				num_divisions > 99 }
			    }
			}
		}
        target_template = {
			regiments = {
				infantry = 16
                medium_armor = 1
                anti_air_brigade = 2
			}

			support = {
				engineer = 1
                field_hospital = 1
                medium_flame_tank = 1
			}
		}
	}
    infantry_template_armor = {
		upgrade_prio = {
			factor = 20
            modifier = {
				factor = 0
				or = { num_of_military_factories < 26
                num_of_military_factories > 59 }
			}
			modifier = {
				factor = 0
                any_allied_country = {
				is_major = yes
				or = { num_of_military_factories > 99
				num_divisions > 99 }
			    }
			}
		}
        target_template = {
			regiments = {
				infantry = 15
                medium_armor = 2
                anti_air_brigade = 2
			}

			support = {
				engineer = 1
                field_hospital = 1
				signal_company = 1
                light_tank_recon = 1
                medium_flame_tank = 1
			}
		}
	}

	# 步坦
    armor_infantry_template_0 = {
		upgrade_prio = {
			factor = 25
            modifier = {
				factor = 0
                or = { num_of_military_factories < 60
                num_of_military_factories > 99 }
			}
			modifier = {
				factor = 0
                any_allied_country = {
				is_major = yes
				or = { num_of_military_factories > 99
				num_divisions > 99 }
			    }
			}
		}
        target_template = {
			regiments = {
				infantry = 14
                medium_armor = 3
                anti_air_brigade = 2
			}

			support = {
				engineer = 1
                field_hospital = 1
				signal_company = 1
                light_tank_recon = 1
                medium_flame_tank = 1
			}
		}
	}
    armor_infantry_template_1 = {
        reinforce_prio = 2
		upgrade_prio = {
			factor = 30
            modifier = {
				factor = 0
				or = {  num_of_military_factories < 100
				num_of_military_factories > 129 }
			}
            modifier = {
			    factor = 0
			    has_tech = mechanised_infantry
       		}
        }
        target_template = {
            regiments = {
                infantry = 11
                medium_armor = 5
                heavy_tank_destroyer_brigade = 1
                anti_air_brigade = 2
            }
			support = {
				assault_engineer = 1
                field_hospital = 1
				signal_company = 1
                light_tank_recon = 1
                medium_flame_tank = 1
			}
		}
    }
	armor_infantry_template_2 = {
        reinforce_prio = 2
		upgrade_prio = {
			factor = 35
            modifier = {
				factor = 0
				num_of_military_factories < 130
			}
            modifier = {
			    factor = 0
			    has_tech = mechanised_infantry
       		}
        }
        target_template = {
            regiments = {
                infantry = 10
                medium_armor = 6
                heavy_tank_destroyer_brigade = 1
                anti_air_brigade = 2
            }
			support = {
				assault_engineer = 1
                field_hospital = 1
				signal_company = 1
                light_tank_recon = 1
                medium_flame_tank = 1
			}
		}
    }
    MEDIUM_mec_ARMOR_1 = {
        reinforce_prio = 2
		upgrade_prio = {
			factor = 40
            modifier = {
				factor = 0
				or = { num_of_military_factories < 130
                num_of_military_factories > 149 }
			}
            modifier = {
			    factor = 0
			    not = { has_tech = mechanised_infantry }
		        }
       		}
            target_template = {
            regiments = {
		        mechanized = 1
                infantry = 8
                medium_armor = 7
                heavy_tank_destroyer_brigade = 1
                anti_air_brigade = 2
            }
			support = {
				assault_engineer = 1
                field_hospital = 1
				signal_company = 1
                light_tank_recon = 1
                medium_flame_tank = 1
			}
		}
	}
    MEDIUM_mec_ARMOR_2 = {
        reinforce_prio = 2
		upgrade_prio = {
			factor = 50
            modifier = {
				factor = 0
				or = { num_of_military_factories < 150
                num_of_military_factories > 179 }
			}
            modifier = {
			factor = 0
			not = { has_tech = mechanised_infantry }
		    }
        }
        target_template = {
            regiments = {
		        mechanized = 2
                infantry = 7
                medium_armor = 6
                heavy_tank_destroyer_brigade = 2
                anti_air_brigade = 2
            }
			support = {
				assault_engineer = 1
                field_hospital = 1
				logistics_company = 1
                light_tank_recon = 1
                medium_flame_tank = 1
			}
		}
	}
   MEDIUM_mec_ARMOR_3 = {
        reinforce_prio = 2
		upgrade_prio = {
			factor = 60
            modifier = {
				factor = 0
				or = { num_of_military_factories < 180
                num_of_military_factories > 219 }
			}
            modifier = {
			factor = 0
			not = { has_tech = mechanised_infantry }
		    }
        }
        target_template = {
            regiments = {
		        mechanized = 4
                infantry = 5
                medium_armor = 5
                heavy_tank_destroyer_brigade = 3
                anti_air_brigade = 2
            }
			support = {
				assault_engineer = 1
                field_hospital = 1
				signal_company = 1
                light_tank_recon = 1
                medium_flame_tank = 1
			}
		}
	}
    MEDIUM_mec_ARMOR_4 = {
        reinforce_prio = 2
		upgrade_prio = {
			factor = 70
            modifier = {
				factor = 0
				or = { num_of_military_factories < 220
                num_of_military_factories > 249 }
			}
            modifier = {
			factor = 0
			not = { has_tech = mechanised_infantry }
		    }
        }
        target_template = {
            regiments = {
		        mechanized = 6
                infantry = 3
                medium_armor = 5
                heavy_tank_destroyer_brigade = 3
                anti_air_brigade = 2
            }
			support = {
				assault_engineer = 1
                field_hospital = 1
				signal_company = 1
                light_tank_recon = 1
                medium_flame_tank = 1
			}
		}
	}
    MEDIUM_mec_ARMOR_5 = {
        reinforce_prio = 2
		upgrade_prio = {
			factor = 80
            modifier = {
				factor = 0
				or = { num_of_military_factories < 250
				has_completed_focus = GER_aggressive_breakthrough }
			}
            modifier = {
			factor = 0
			not = { has_tech = mechanised_infantry }
		    }
        }
        target_template = {
            regiments = {
		        mechanized = 8
                medium_armor = 5
                heavy_tank_destroyer_brigade = 4
                anti_air_brigade = 2
            }
			support = {
				assault_engineer = 1
                field_hospital = 1
				signal_company = 1
                light_tank_recon = 1
                medium_flame_tank = 1
			}
		}
	}
	MEDIUM_mec_ARMOR_GER = {
        reinforce_prio = 2
		upgrade_prio = {
			factor = 90
            modifier = {
				factor = 0
				or = { num_of_military_factories < 250
				not = { has_completed_focus = GER_aggressive_breakthrough } }
			}
            modifier = {
			factor = 0
			not = { has_tech = mechanised_infantry }
		    }
        }
        target_template = {
            regiments = {
		        mechanized = 9
                medium_armor = 5
                heavy_tank_destroyer_brigade = 5
                anti_air_brigade = 2
            }
			support = {
				assault_engineer = 1
                field_hospital = 1
				signal_company = 1
                light_tank_recon = 1
                medium_flame_tank = 1
			}
		}
	}
}



