technologies = {
	@anti_tank = 7

	interwar_antitank = {

		enable_equipments = {
			anti_tank_equipment_1
		}
		enable_equipment_modules = {
			tank_small_cannon_2
			tank_buster_1
		}
		path = {
			leads_to_tech = antitank1
			research_cost_coeff = 1
		}

		sub_technologies = {
			interwar_antitank_h
		}

		research_cost = 1.0

		start_year = 1936

		folder = {
			name = artillery_folder
			position = { x = @anti_tank y = 2 }
		}

		ai_will_do = {
			factor = 1

			modifier = {
				factor = 0.2

				OR = {
					tag = CHI
					tag = PRC
					tag = XSM
					tag = SIK
					tag = GXC
					tag = SHX
					tag = YUN
				}
			}
			modifier = {
				tag = JAP
				not = {
					OR = {
						has_War_with = SOV
						has_war_with = USA
					}
				}
				factor = 0.5
			}
			modifier = {
				factor = 2
				date > "1937.1.1"
			}

			modifier = {
				factor = 5
				date > "1938.1.1"
			}

			modifier = {
				factor = 5
				date > "1939.1.1"
			}
			modifier = {
				factor = 10
				any_enemy_country = {
					ROOT = {
						estimated_intel_max_armor = {
							tag = PREV
							value > 30
						}
					}
				}
			}
		}

		categories = {
			artillery
			cat_anti_tank
			mio_cat_all_artillery_equipment
		}
		special_project_specialization = { specialization_land }
	}
	interwar_antitank_h = {

		enable_equipments = {
			anti_tank_equipment_h_1
		}

		enable_equipment_modules = {
			tank_medium_cannon
			#tank_high_velocity_cannon_2
			lc_high_velocity_cannon_turret #Module for Land Cruiser
		}

		enable_subunits = {
			anti_tank_brigade_h
			mot_anti_tank_brigade_h
		}

		research_cost = 0.5

		start_year = 1939

		ai_will_do = {
			factor = 1

			modifier = {
				factor = 0.5

				OR = {
					tag = CHI
					tag = PRC
					tag = XSM
					tag = SIK
					tag = GXC
					tag = SHX
					tag = YUN
				}
			}
			modifier = {
				factor = 2
				date > "1937.1.1"
			}

			modifier = {
				factor = 5
				date > "1938.1.1"
			}

			modifier = {
				factor = 5
				date > "1939.1.1"
			}
			modifier = {
				num_of_factories < 75
				factor = 0.1
			}
		}

		categories = {
			artillery
			cat_anti_tank
			mio_cat_all_artillery_equipment
		}
		special_project_specialization = { specialization_land }
	}

	antitank1 = {

		category_anti_tank = {
			hard_attack = 0.1
			ap_attack = 0.1
		}

		enable_equipment_modules = {
			#tank_high_velocity_cannon
			squeezebore_adaptor
		}

		path = {
			leads_to_tech = antitank2
			research_cost_coeff = 1
		}

		research_cost = 1

		start_year = 1939

		folder = {
			name = artillery_folder
			position = { x = @anti_tank y = 4 }
		}

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 10
				any_enemy_country = {
					ROOT = {
						estimated_intel_max_armor = {
							tag = PREV
							value > 30
						}
					}
				}
			}
			modifier = {
				tag = JAP
				not = {
					OR = {
						has_War_with = SOV
						has_war_with = USA
					}
				}
				factor = 0.5
			}
			modifier = {
				factor = 2
				date > "1939.1.6"
			}

			modifier = {
				factor = 5
				date > "1940.1.1"
			}
		}

		categories = {
			artillery
			cat_anti_tank
			mio_cat_all_artillery_equipment
		}
		special_project_specialization = { specialization_land }
	}

	antitank2 = {

		enable_equipments = {
			anti_tank_equipment_2
		}
		enable_equipment_modules = {
			tank_medium_cannon_0
			tank_high_velocity_cannon
			tank_buster_2
		}
		path = {
			leads_to_tech = antitank3
			research_cost_coeff = 1
		}

		sub_technologies = {
			antitank2_h
		}

		research_cost = 1

		start_year = 1940

		folder = {
			name = artillery_folder
			position = { x = @anti_tank y = 6 }
		}

		ai_will_do = {
			factor = 1

			modifier = {
				factor = 2
				date > "1939.1.9"
			}
			modifier = {
				tag = JAP
				not = {
					OR = {
						has_War_with = SOV
						has_war_with = USA
					}
				}
				factor = 0.5
			}
			modifier = {
				factor = 2
				date > "1940.1.1"
			}
			modifier = {
				tag = USA
				has_War = no
				factor = 0.5 #this tank nonsense will never catch on
			}
			modifier = {
				factor = 5
				date > "1940.1.6"
			}
			modifier = {
				factor = 10
				any_enemy_country = {
					ROOT = {
						estimated_intel_max_armor = {
							tag = PREV
							value > 32
						}
					}
				}
			}
		}

		categories = {
			artillery
			cat_anti_tank
			mio_cat_all_artillery_equipment
		}
		special_project_specialization = { specialization_land }
	}
	antitank2_h = {

		enable_equipments = {
			anti_tank_equipment_h_2
		}
	
		enable_equipment_modules = {
			tank_medium_cannon_2
			tank_heavy_cannon
			#tank_high_velocity_cannon_3
		}

		enable_subunits = {
			anti_tank_brigade_h
			mot_anti_tank_brigade_h
		}

		research_cost = 0.5 #Artillery Variant
		start_year = 1941
		
		categories = {
			artillery
			cat_anti_tank
			mio_cat_all_artillery_equipment
		}
		special_project_specialization = { specialization_land }
		
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 2
				OR = {
					is_major = yes
					num_of_military_factories > 10
				}
			}
			modifier = {
				num_of_factories < 75
				factor = 0.1
			}
		}
	}

	antitank3 = {
		enable_equipment_modules = {
			tank_medium_cannon
		}

		category_anti_tank = {
			hard_attack = 0.1
			ap_attack = 0.1
		}

		path = {
			leads_to_tech = antitank4
			research_cost_coeff = 1
		}

		research_cost = 1

		start_year = 1941

		folder = {
			name = artillery_folder
			position = { x = @anti_tank y = 8 }
		}

		ai_will_do = {
			factor = 1

			modifier = {
				factor = 2
				date > "1941.1.6"
			}
			modifier = {
				tag = JAP
				not = {
					OR = {
						has_War_with = SOV
						has_war_with = USA
					}
				}
				factor = 0.5
			}
			modifier = {
				factor = 2
				date > "1942.1.1"
			}

			modifier = {
				factor = 5
				date > "1943.1.1"
			}
			modifier = {
				factor = 10
				any_enemy_country = {
					ROOT = {
						estimated_intel_max_armor = {
							tag = PREV
							value > 32
						}
					}
				}
			}
		}

		categories = {
			artillery
			cat_anti_tank
			mio_cat_all_artillery_equipment
		}
		special_project_specialization = { specialization_land }
	}

	antitank4 = {

		enable_equipment_modules = {
			tank_medium_cannon_2
		}

		category_anti_tank = {
			hard_attack = 0.1
			ap_attack = 0.1
		}

		path = {
			leads_to_tech = antitank5
			research_cost_coeff = 1
		}

		research_cost = 1

		start_year = 1942

		folder = {
			name = artillery_folder
			position = { x = @anti_tank y = 10 }
		}

		ai_will_do = {
			factor = 1

			modifier = {
				factor = 2
				date > "1942.1.6"
			}
			modifier = {
				tag = JAP
				not = {
					OR = {
						has_War_with = SOV
						has_war_with = USA
					}
				}
				factor = 0.5
			}
			modifier = {
				factor = 5
				date > "1943.1.1"
			}
			modifier = {
				factor = 10
				any_enemy_country = {
					ROOT = {
						estimated_intel_max_armor = {
							tag = PREV
							value > 35
						}
					}
				}
			}
		}

		categories = {
			artillery
			cat_anti_tank
			mio_cat_all_artillery_equipment
		}
		special_project_specialization = { specialization_land }
	}

	antitank5 = {

		enable_equipments = {
			anti_tank_equipment_3
		}
		enable_equipment_modules = {
			#tank_medium_cannon
			tank_high_velocity_cannon_2
			auto_loader
		}
		
		sub_technologies = {
			antitank5_h
		}

		research_cost = 1

		start_year = 1943

		folder = {
			name = artillery_folder
			position = { x = @anti_tank y = 12 }
		}

		ai_will_do = {
			factor = 1

			modifier = {
				factor = 2
				date > "1942.1.9"
			}
			modifier = {
				tag = JAP
				not = {
					OR = {
						has_War_with = SOV
						has_war_with = USA
					}
				}
				factor = 0.5
			}
			modifier = {
				factor = 2
				date > "1943.1.1"
			}

			modifier = {
				factor = 5
				date > "1943.1.6"
			}
			modifier = {
				factor = 10
				any_enemy_country = {
					ROOT = {
						estimated_intel_max_armor = {
							tag = PREV
							value > 35
						}
					}
				}
			}
		}

		categories = {
			artillery
			cat_anti_tank
			mio_cat_all_artillery_equipment
		}
		special_project_specialization = { specialization_land }
	}
	antitank5_h = {

		enable_equipments = {
			anti_tank_equipment_h_3
		}
	
		enable_equipment_modules = {
			tank_heavy_cannon_2
			#tank_heavy_cannon_3
			#tank_high_velocity_cannon_4
			lc_heavy_high_velocity_cannons #Module for Land Cruiser
		}

		enable_subunits = {
			anti_tank_brigade_h
			mot_anti_tank_brigade_h
		}

		research_cost = 0.5 #Artillery Variant
		start_year = 1943
		
		categories = {
			artillery
			cat_anti_tank
			mio_cat_all_artillery_equipment
		}
		special_project_specialization = { specialization_land }
		
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 2
				OR = {
					is_major = yes
					num_of_military_factories > 10
				}
			}
			modifier = {
				num_of_factories < 75
				factor = 0.1
			}
		}
	}

}