armor_JAP = {

	
	role = armor

	available_for = {
		JAP
	}

	upgrade_prio = {
		factor = 200
	}

	medium_armor_1_JAP = {
	
		upgrade_prio = {
			factor = 2

			modifier = {
				factor = 0
				date < 1941.1.1
			}
		}
		
		target_template = {
			support = {
				logistics_company = 1
				artillery = 1
				anti_air = 1
				medium_flame_tank = 1
				pioneer_support = 1
			}
			
			regiments = {
				medium_armor = 6
				medium_tank_destroyer = 1
				motorized = 8
			}
		}
	}
	medium_armor_2_JAP = {
	
		upgrade_prio = {
			factor = 2

			modifier = {
				factor = 0
				date < 1941.1.1
			}
		}

		can_upgrade_in_field = {
			has_equipment = { mechanized_equipment > 2000 }
		}
		
		target_template = {
			support = {
				logistics_company = 1
				artillery = 1
				anti_air = 1
				medium_flame_tank = 1
				pioneer_support = 1
			}
			
			regiments = {
				medium_armor = 6
				medium_tank_destroyer = 1
				mechanized = 8
			}
		}
	}
}

infantry_JAP = {
	
	role = infantry

	available_for = {
		JAP
	}
	
	upgrade_prio = {
		base = 200

		modifier = {
			factor = 25
			OR = {
				NOT = {
					JAP = { has_war_with = USA }
				}
			}
		}
	}
	

	infantry_default_JAP = {
	
		upgrade_prio = {
			factor = 1000

			modifier = {
				factor = 0.25
				num_of_military_factories > 60
			}
		}

		can_upgrade_in_field = {
			has_equipment = { infantry_equipment > 0 }
		}
		target_template = {
			support = {
				artillery = 1
				rangers_support = 1
				medium_flame_tank = 1
			}
			
			regiments = {
				infantry = 9
			}
		}
	}		

	infantry_JAP_2 = {
	
		upgrade_prio = {
			factor = 2000

			modifier = {
				factor = 0
				num_of_military_factories < 60
			}
		}
		target_template = {
			support = {
				artillery = 1
				medium_flame_tank = 1
				pioneer_support = 1
				anti_air = 1
				rangers_support = 1
			}
			
			regiments = {
				infantry = 9
			}
		}
		
	}		
}

mountaineers_JAP = {
	
	role = mountaineers

	available_for = {
		JAP
	}
	
	upgrade_prio = {
		factor = 200

		modifier = {
			factor = 0
			NOT = {
				has_tech = tech_mountaineers
			}
		}
	}
	mountaineers_adv_JAP = {
	
		upgrade_prio = {
			factor = 2222
		}
		target_template = {
			support = {
				pioneer_support = 1
				artillery = 1
				logistics_company = 1
				medium_flame_tank = 1
				rangers_support = 1
			}
			
			regiments = {
				marine = 7
				mountaineers = 10
				anti_tank_brigade = 1
				anti_air_brigade = 1
			}
		}
		
	}
}

marines_JAP = {
	
	role = marines

	available_for = {
		JAP
	}
	
	upgrade_prio = {
		factor = 222

		modifier = {
			factor = 0
			NOT = {
				has_tech = marines
			}
		}
	}
	
	marine_default_JAP = {
	
		upgrade_prio = {
			factor = 200

			modifier = {
				factor = 0
				date > 1939.1.1
			}

			modifier = {
				factor = 2
				has_war_with = USA
			}
		}
		target_template = {
			support = {
				engineer = 1
				rangers_support = 1
				artillery = 1
			}
			
			regiments = {
				marine = 9
			}
		}
	}

	marine_default_JAP_2 = {
	
		upgrade_prio = {
			factor = 200

			modifier = {
				factor = 0
				date < 1939.1.1
			}

			modifier = {
				factor = 2
				has_war_with = USA
			}
		}
		target_template = {
			support = {
				pioneer_support = 1
				artillery = 1
				logistics_company = 1
				medium_flame_tank = 1
				rangers_support = 1
			}
			
			regiments = {
				marine = 7
				mountaineers = 10
				anti_tank_brigade = 1
				anti_air_brigade = 1
			}
		}
	}
}

paratrooper_JAP = {
	
	role = paratroopers

	available_for = {
		JAP
	}
	
	upgrade_prio = {
		factor = 2000

		modifier = {
			factor = 0
			NOT = { has_tech = paratroopers }
			surrender_progress < 0.03
		}
	}
	paratrooper_default_JAP = {
	
		upgrade_prio = {
			factor = 2

			modifier = {
				factor = 1
			}
		}
		target_template = {
			support = {
				artillery = 1
			}
			
			regiments = {
				infantry = 4 
			}
		}
	}
}


garrison_JAP = {
	
	role = garrison

	available_for = {
		JAP
	}
	
	upgrade_prio = {
		factor = 2

		modifier = {
			factor = 10
			date < "1939.1.1"
		}
	}
	

	garrison_JAP = {
	
		reinforce_prio = 0
		custom_icon = 7
	
		upgrade_prio = {
			factor = 200

			modifier = {
				factor = 1
			}
		}
		
		target_template = {
			support = {
				artillery = 1
				anti_air = 1
				engineer = 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
