technologies = {

	gw_artillery = {

		enable_equipments = {
			artillery_equipment_1
		}

		path = {
			leads_to_tech = interwar_artillery
			research_cost_coeff = 1
		}

		path = {
			leads_to_tech = interwar_antitank
			research_cost_coeff = 1
		}

		path = {
			leads_to_tech = interwar_antiair
			research_cost_coeff = 1
		}
		enable_equipment_modules = {
			ship_anti_air_1
			tank_small_cannon
			secondary_turret_small_cannon
		}

		research_cost = 1.5

		folder = {
			name = artillery_folder
			position = { x = 0 y = 0 }
		}

		categories = {
			artillery
			mio_cat_all_artillery_equipment
		}

		ai_will_do = {
			factor = 500 #if you do not have it, have it

			modifier = {
				factor = 2
				date > "1937.1.1"
			}

			modifier = {
				factor = 0
				is_literally_china = yes
				has_global_flag = china_giga
				date < 1940.1.1
			}

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

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

	interwar_artillery = {

		artillery = {
			soft_attack = 0.1
		}
		artillery_brigade = {
			soft_attack = 0.1
		}
		mot_artillery_brigade = {
			soft_attack = 0.1
		}
		light_sp_artillery_brigade = {
			soft_attack = 0.15
		}
		medium_sp_artillery_brigade = {
			soft_attack = 0.15
		}
		heavy_sp_artillery_brigade = {
			soft_attack = 0.15
		}
		super_heavy_sp_artillery_brigade = {
			soft_attack = 0.15
		}
		modern_sp_artillery_brigade= {
			soft_attack = 0.15
		}

		enable_equipment_modules = {
			tank_small_cannon_2
			tank_close_support_gun
			secondary_turret_close_support_gun
		}

		path = {
			leads_to_tech = artillery1
			research_cost_coeff = 1
		}

		research_cost = 1.5

		start_year = 1936

		folder = {
			name = artillery_folder
			position = { x = 0 y = 2 }
		}

		categories = {
			artillery
			mio_cat_all_artillery_equipment
		}

		ai_will_do = {
			factor = 1

			modifier = {
				factor = 0.5
				date < "1939.1.1"
				has_war = no
			}

			modifier = {
				factor = 5
				date > "1939.1.1"
			}
			
			modifier = {
				factor = 0
				tag = SOV
				OR = {
					has_country_flag = pure_infantry
					has_country_flag = mech_brick
				}
			}
			
			modifier = {
				factor = 0
				date < 1939.1.1
				OR = {
					is_literally_china = yes
					has_focus_tree = generic_focus
				}
			}

			modifier = {
				factor = 10
				has_tech = superior_firepower
				date > 1937.1.1
				NOT = { tag = SOV }
			}

			modifier = {
				factor = 5
				amount_research_slots > 4
				date > 1938.1.1
				NOT = { tag = SOV }
			}
		}
	}

	artillery1 = {

		enable_equipments = {
			artillery_equipment_2
		}

		enable_equipment_modules = {
			tank_medium_howitzer
			tank_medium_cannon
		}

		path = {
			leads_to_tech = artillery2
			research_cost_coeff = 1
		}

		research_cost = 1

		start_year = 1939

		folder = {
			name = artillery_folder
			position = { x = 0 y = 4 }
		}

		categories = {
			artillery
			mio_cat_all_artillery_equipment
		}

		ai_will_do = {
			factor = 2

			modifier = {
				factor = 0
				OR = {
					is_allied_ai = no
					tag = SOV
					tag = FRA
				}
				amount_research_slots < 5
				has_dlc = "No Step Back"
				NOT = { has_tech = superior_firepower }
			}

			modifier = {
				factor = 0
				NOT = { has_tech = superior_firepower }
				has_dlc = "No Step Back"
				date < "1939.8.1"
			}

			modifier = {
				factor = 10
				has_tech = superior_firepower
				date > 1938.1.1
				NOT = { tag = SOV }
			}

			modifier = {
				factor = 5
				amount_research_slots > 4
				date > 1938.1.1
				NOT = { tag = SOV }
			}
		}
	}

	artillery2 = {

		artillery = {
			soft_attack = 0.1
		}
		artillery_brigade = {
			soft_attack = 0.1
		}
		mot_artillery_brigade = {
			soft_attack = 0.1
		}
		light_sp_artillery_brigade = {
			soft_attack = 0.1
		}
		medium_sp_artillery_brigade = {
			soft_attack = 0.1
		}
		heavy_sp_artillery_brigade = {
			soft_attack = 0.1
		}
		super_heavy_sp_artillery_brigade = {
			soft_attack = 0.1
		}
		modern_sp_artillery_brigade= {
			soft_attack = 0.1
		}

		path = {
			leads_to_tech = artillery3
			research_cost_coeff = 1
		}

		path = {
			leads_to_tech = rocket_artillery
			research_cost_coeff = 1
		}

		research_cost = 1

		start_year = 1940

		folder = {
			name = artillery_folder
			position = { x = 0 y = 6 }
		}

		categories = {
			artillery
			mio_cat_all_artillery_equipment
		}

		ai_will_do = {
			factor = 2

			modifier = {
				factor = 10
				has_tech = superior_firepower
				date > 1939.1.1
				NOT = { tag = SOV }
			}

			modifier = {
				factor = 2
				date > "1940.1.6"
			}

			modifier = {
				factor = 2
				date > "1941.1.1"
			}

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

			modifier = {
				factor = 5
				amount_research_slots > 4
				date > 1939.1.1
				NOT = { tag = SOV }
			}
		}
	}

	artillery3 = {

		artillery = {
			soft_attack = 0.1
		}
		artillery_brigade = {
			soft_attack = 0.1
		}
		mot_artillery_brigade = {
			soft_attack = 0.1
		}
		light_sp_artillery_brigade = {
			soft_attack = 0.05
		}
		medium_sp_artillery_brigade = {
			soft_attack = 0.05
		}
		heavy_sp_artillery_brigade = {
			soft_attack = 0.05
		}
		super_heavy_sp_artillery_brigade = {
			soft_attack = 0.05
		}
		modern_sp_artillery_brigade= {
			soft_attack = 0.05
		}

		enable_equipment_modules = {
			tank_medium_howitzer_2
		}
		path = {
			leads_to_tech = artillery4
			research_cost_coeff = 1
		}

		research_cost = 1

		start_year = 1941

		folder = {
			name = artillery_folder
			position = { x = 0 y = 8 }
		}

		categories = {
			artillery
			mio_cat_all_artillery_equipment
		}

		ai_will_do = {
			factor = 2

			modifier = {
				factor = 10
				has_tech = superior_firepower
				date > 1940.1.1
				NOT = { tag = SOV }
			}

			modifier = {
				factor = 2
				date > "1941.1.6"
			}

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

			modifier = {
				factor = 5
				amount_research_slots > 4
				date > 1940.1.1
				NOT = { tag = SOV }
			}
		}
	}

	artillery4 = {

		enable_equipments = {
			artillery_equipment_3
		}
		enable_equipment_modules = {
			tank_medium_cannon_2
		}

		path = {
			leads_to_tech = artillery5
			research_cost_coeff = 1
		}

		research_cost = 2

		start_year = 1942

		folder = {
			name = artillery_folder
			position = { x = 0 y = 10 }
		}

		categories = {
			artillery
			mio_cat_all_artillery_equipment
		}
		on_research_complete = {
			add_ideas = artillery_equipment_production_3
		}

		ai_will_do = {
			factor = 2

			modifier = {
				factor = 2
				date > "1941.1.9"
			}

			modifier = {
				factor = 2
				date > "1942.1.1"
			}

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

			modifier = {
				factor = 10
				has_tech = superior_firepower
				date > 1941.1.1
				NOT = { tag = SOV }
			}

			modifier = {
				factor = 5
				amount_research_slots > 4
				date > 1941.1.1
				NOT = { tag = SOV }
			}
		}
	}

	artillery5 = {

		artillery = {
			soft_attack = 0.1
		}
		artillery_brigade = {
			soft_attack = 0.1
		}
		mot_artillery_brigade = {
			soft_attack = 0.1
		}
		light_sp_artillery_brigade = {
			soft_attack = 0.05
		}
		medium_sp_artillery_brigade = {
			soft_attack = 0.05
		}
		heavy_sp_artillery_brigade = {
			soft_attack = 0.05
		}
		super_heavy_sp_artillery_brigade = {
			soft_attack = 0.05
		}
		modern_sp_artillery_brigade= {
			soft_attack = 0.05
		}

		enable_equipment_modules = {
			auto_loader
			tank_heavy_howitzer
		}

		research_cost = 1

		start_year = 1943

		folder = {
			name = artillery_folder
			position = { x = 0 y = 12 }
		}

		categories = {
			artillery
			mio_cat_all_artillery_equipment
		}

		ai_will_do = {
			factor = 2

			modifier = {
				factor = 2
				date > "1943.1.6"
			}

			modifier = {
				factor = 2
				date > "1944.1.1"
			}

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

			modifier = {
				factor = 10
				has_tech = superior_firepower
				date > 1942.1.1
				NOT = { tag = SOV }
			}

			modifier = {
				factor = 5
				amount_research_slots > 4
				date > 1942.1.1
				NOT = { tag = SOV }
			}
		}
	}

	mountain_gun = {

		research_cost = 1

		# only from focus!!! #####
		allow = {
			always = no
		}

		artillery_brigade = {
			mountain = {
				movement = 0.15 #If you change this - Change the custom tooltip too: RAJ_revive_the_screw_guns_effect ROM_modern_at_guns_tech_tt
			}
		}

		anti_tank_brigade = {
			mountain = {
				movement = 0.15 #If you change this - Change the custom tooltip too: RAJ_revive_the_screw_guns_effect ROM_modern_at_guns_tech_tt
			}
		}
	}

	rocket_artillery = {

		enable_equipments = {
			rocket_artillery_equipment_1
		}
#		enable_subunits = {
#			rocket_artillery_brigade
#		}

		enable_equipment_modules = {
			tank_rocket_launcher
			rocket_rails
		}

		path = {
			leads_to_tech = rocket_artillery2
			research_cost_coeff = 1
		}

		research_cost = 2

		start_year = 1940

		folder = {
			name = artillery_folder
			position = { x = 3 y = 6 }
		}

		ai_will_do = {
			factor = 1

			modifier = {
				factor = 2
				tag = SOV
			}

			modifier = {
				factor = 200
				has_country_flag = era_of_transition
			}
		}

		categories = {
			rocketry
			mio_cat_all_artillery_equipment
		}
	}

	rocket_artillery2 = {

		rocket_artillery = {
			soft_attack = 0.15
		}
		rocket_artillery_brigade = {
			soft_attack = 0.15
		}
		mot_rocket_artillery_brigade = {
			soft_attack = 0.15
		}
		motorized_rocket_brigade = {
			soft_attack = 0.15
		}

		path = {
			leads_to_tech = rocket_artillery3
			research_cost_coeff = 1
		}

		research_cost = 1

		start_year = 1941

		folder = {
			name = artillery_folder
			position = { x = 3 y = 8 }
		}

		ai_will_do = {
			factor = 1

			modifier = {
				factor = 2
				tag = SOV
			}

			modifier = {
				factor = 200
				has_country_flag = era_of_transition
			}
		}

		categories = {
			rocketry
			mio_cat_all_artillery_equipment
		}
	}

	rocket_artillery3 = {

		rocket_artillery = {
			soft_attack = 0.15
		}
		rocket_artillery_brigade = {
			soft_attack = 0.15
		}
		mot_rocket_artillery_brigade = {
			soft_attack = 0.15
		}
		motorized_rocket_brigade = {
			soft_attack = 0.15
		}

		path = {
			leads_to_tech = rocket_artillery4
			research_cost_coeff = 1
		}

		research_cost = 1

		start_year = 1942

		folder = {
			name = artillery_folder
			position = { x = 3 y = 10 }
		}

		ai_will_do = {
			factor = 1

			modifier = {
				factor = 2
				tag = SOV
			}

			modifier = {
				factor = 200
				has_country_flag = era_of_transition
			}
		}

		categories = {
			rocketry
			mio_cat_all_artillery_equipment
		}
	}

	rocket_artillery4 = {

		enable_equipments = {
			rocket_artillery_equipment_2
		}
		motorized_rocket_brigade = {
			soft_attack = 0.3
		}
		enable_equipment_modules = {
			tank_rocket_launcher_2
		}
		research_cost = 1

		start_year = 1943

		folder = {
			name = artillery_folder
			position = { x = 3 y = 12 }
		}

		ai_will_do = {
			factor = 1

			modifier = {
				factor = 2
				tag = SOV
			}

			modifier = {
				factor = 200
				has_country_flag = era_of_transition
			}
		}

		categories = {
			rocketry
			mio_cat_all_artillery_equipment
		}
	}

	interwar_antiair = {

		enable_equipments = {
			anti_air_equipment_1
		}

		enable_equipment_modules = {
			ship_anti_air_2
			tank_auto_cannon
			tank_anti_air_cannon
			tank_heavy_cannon
		}

		enable_building = {
			building = anti_air_building
			level = 5
		}

		path = {
			leads_to_tech = antiair1
			research_cost_coeff = 1
		}

		research_cost = 1.5

		start_year = 1936

		folder = {
			name = artillery_folder
			position = { x = -3 y = 2 }
		}

		ai_will_do = {
			factor = 15

			modifier = {
				factor = 0.1
				date < 1937.8.1
				OR = {
					tag = JAP
					tag = MAN
					tag = MEN
				}
			}
			modifier = {
				factor = 2
				date > "1937.1.1"
			}

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

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

			modifier = {
				factor = 0
				has_focus_tree = generic_focus
				has_tech = improved_infantry_weapons
				NOT = { is_researching_technology = advanced_infantry_weapons }
				NOT = { has_tech = advanced_infantry_weapons }
			}
		}

		categories = {
			artillery
			cat_anti_air
			mio_cat_all_artillery_equipment
		}
	}

	antiair1 = {

		anti_air = {
			air_attack = 0.1
		}
		anti_air_brigade = {
			air_attack = 0.1
		}
		mot_anti_air_brigade = {
			air_attack = 0.1
		}

		tech_air_damage_factor = -0.02

		path = {
			leads_to_tech = antiair2
			research_cost_coeff = 1
		}

		research_cost = 1

		start_year = 1939

		folder = {
			name = artillery_folder
			position = { x = -3 y = 4 }
		}

		ai_will_do = {
			factor = 1
			modifier = {
				OR = {
					tag = JAP
					tag = ENG
					tag = USA
				}
				OR = {
					has_war_with = JAP
					has_war_with = USA
					has_war_with = ENG
				}
				factor = 5
			}

			modifier = {
				factor = 0
				has_focus_tree = generic_focus
				NOT = { is_researching_technology = advanced_infantry_weapons }
				NOT = { has_tech = advanced_infantry_weapons }
			}
			modifier = {
				NOT = { has_tech = antitank2 }
				has_completed_focus = equipment_effort_3
				factor = 0
			}
			modifier = { 
				factor = 25.0
				tag = SOV
				date > 1938.6.1
			}
			modifier = { 
				factor = 25.0
				is_ai_mass_mob = yes
				date > 1938.1.1
			}
			modifier = { 
				factor = 0
				is_literally_china = yes
				has_global_flag = china_giga
				date < 1939.1.1
			}
		}

		categories = {
			artillery
			cat_anti_air
			mio_cat_all_artillery_equipment
		}
	}

	antiair2 = {

		enable_equipments = {
			anti_air_equipment_2
		}

		static_anti_air_damage_factor = 0.1

		enable_equipment_modules = {
			ship_anti_air_3
			tank_auto_cannon_2
			tank_anti_air_cannon_2
		}

		path = {
			leads_to_tech = antiair3
			research_cost_coeff = 1
		}

		research_cost = 1

		start_year = 1940

		folder = {
			name = artillery_folder
			position = { x = -3 y = 6 }
		}

		ai_will_do = {
			factor = 5
			modifier = {
				OR = {
					tag = JAP
					tag = ENG
					tag = USA
				}
				OR = {
					has_war_with = JAP
					has_war_with = USA
					has_war_with = ENG
				}
				factor = 50
			}
			modifier = { 
				factor = 25.0
				tag = SOV
				date > 1938.6.1
			}
			modifier = { 
				factor = 25.0
				is_ai_mass_mob = yes
				date > 1939.1.1
			}
		}

		categories = {
			artillery
			cat_anti_air
			mio_cat_all_artillery_equipment
		}
	}

	antiair3 = {

		anti_air = {
			air_attack = 0.1
		}
		anti_air_brigade = {
			air_attack = 0.1
		}
		mot_anti_air_brigade = {
			air_attack = 0.1
		}

		enable_equipment_modules = {
			tank_heavy_cannon_2
		}

		tech_air_damage_factor = -0.02

		path = {
			leads_to_tech = antiair4
			research_cost_coeff = 1
		}

		research_cost = 1

		start_year = 1941

		folder = {
			name = artillery_folder
			position = { x = -3 y = 8 }
		}

		ai_will_do = {
			factor = 1
			modifier = {
				OR = {
					tag = JAP
					tag = ENG
					tag = USA
				}
				OR = {
					has_war_with = JAP
					has_war_with = USA
					has_war_with = ENG
				}
				factor = 5
			}
		}

		categories = {
			artillery
			cat_anti_air
			mio_cat_all_artillery_equipment
		}
	}

	antiair4 = {

		anti_air = {
			air_attack = 0.1
		}
		anti_air_brigade = {
			air_attack = 0.1
		}
		mot_anti_air_brigade = {
			air_attack = 0.1
		}

		tech_air_damage_factor = -0.02

		path = {
			leads_to_tech = antiair5
			research_cost_coeff = 1
		}

		research_cost = 1

		start_year = 1942

		folder = {
			name = artillery_folder
			position = { x = -3 y = 10 }
		}

		ai_will_do = {
			factor = 1
			modifier = {
				OR = {
					tag = JAP
					tag = ENG
					tag = USA
				}
				OR = {
					has_war_with = JAP
					has_war_with = USA
					has_war_with = ENG
				}
				factor = 5
			}
		}

		categories = {
			artillery
			cat_anti_air
			mio_cat_all_artillery_equipment
		}
	}

	antiair5 = {

		enable_equipments = {
			anti_air_equipment_3
		}

		static_anti_air_damage_factor = 0.1

		enable_equipment_modules = {
			ship_anti_air_4
			tank_heavy_cannon_3
			tank_anti_air_cannon_3
			auto_loader
		}
		on_research_complete = {
			add_ideas = anti_air_equipment_production_3
		}

		research_cost = 1

		start_year = 1943

		folder = {
			name = artillery_folder
			position = { x = -3 y = 12 }
		}

		ai_will_do = {
			factor = 1
			modifier = {
				OR = {
					tag = JAP
					tag = ENG
					tag = USA
				}
				OR = {
					has_war_with = JAP
					has_war_with = USA
					has_war_with = ENG
				}
				factor = 5
			}
		}

		categories = {
			artillery
			cat_anti_air
			mio_cat_all_artillery_equipment
		}
	}

	interwar_antitank = {

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

		research_cost = 1.5

		start_year = 1936

		folder = {
			name = artillery_folder
			position = { x = 7 y = 2 }
		}

		ai_will_do = {
			factor = 25
			modifier = { 
				factor = 0
				is_literally_china = yes
				date < 1939.1.1
			}

			modifier = {
				factor = 0
				date < 1939.1.1
				tag = JAP
			}

			modifier = {
				NOT = { 
					OR = {
						has_tech = engines_3
						is_researching_technology = engines_3
					}
				}
				is_historical_focus_on = yes
				tag = ITA
				factor = 0
			}
		
			modifier = {
				factor = 0.1
				is_literally_china = yes
				date < 1941.1.1
			}

			modifier = {
				factor = 100
				is_ai_tank_minor = yes
			}
			modifier = {
				tag = JAP
				not = {
					OR = {
						has_war_with = SOV
						has_war_with = USA
					}
				}
				factor = 0.5
			}
			modifier = { #This is needed for a lot of tank designs
				factor = 4.0
				is_major = yes
			}
			modifier = { #This is needed for a lot of tank designs
				factor = 100.0
				tag = FRA
				date > 1937.1.1
			}
			modifier = { #This is needed for a lot of tank designs
				factor = 50.0
				OR = {
					amount_research_slots > 3
					tag = FRA
				}
				OR = {
					tag = GER
					tag = FRA
					tag = USA
					tag = ENG
				}
			}
			modifier = {
				factor = 2
				date > "1937.1.1"
			}

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

			modifier = {
				factor = 5
				date > "1939.1.1"
			}
			modifier = { 
				factor = 10.0
				tag = SOV
				date > 1939.1.1
			}
			modifier = {
				factor = 10
				any_enemy_country = {
					ROOT = {
						estimated_intel_max_armor = {
							tag = PREV
							value > 30
						}
					}
				}
			}
			
			modifier = {
				factor = 500
				has_focus_tree = generic_focus
			}
			
			modifier = {
				factor = 100
				is_ai_mass_mob = yes
			}
		}

		categories = {
			artillery
			cat_anti_tank
			mio_cat_all_artillery_equipment
		}
	}

	antitank1 = {

		anti_tank = {
			hard_attack = 0.1
			ap_attack = 0.2
		}
		anti_tank_brigade = {
			hard_attack = 0.1
			ap_attack = 0.2
		}
		mot_anti_tank_brigade = {
			hard_attack = 0.1
			ap_attack = 0.2
		}
		light_tank_destroyer_brigade = {
			hard_attack = 0.15
			ap_attack = 0.2
		}
		medium_tank_destroyer_brigade = {
			hard_attack = 0.15
			ap_attack = 0.2
		}
		heavy_tank_destroyer_brigade = {
			hard_attack = 0.15
			ap_attack = 0.2
		}
		super_heavy_tank_destroyer_brigade = {
			hard_attack = 0.15
			ap_attack = 0.2
		}
		modern_tank_destroyer_brigade = {
			hard_attack = 0.15
			ap_attack = 0.2
		}

		enable_equipment_modules = {
			tank_medium_cannon
			squeezebore_adaptor
		}
		path = {
			leads_to_tech = antitank2
			research_cost_coeff = 1
		}

		research_cost = 1

		start_year = 1939

		folder = {
			name = artillery_folder
			position = { x = 7 y = 4 }
		}

		ai_will_do = {
			factor = 1.5
			modifier = {
				factor = 10
				any_enemy_country = {
					ROOT = {
						estimated_intel_max_armor = {
							tag = PREV
							value > 30
						}
					}
				}
			}
			modifier = { #This is needed for a lot of tank designs
				factor = 50.0
				OR = {
					tag = GER
					tag = FRA
					tag = USA
					tag = ENG
				}
				date > 1937.5.1
			}

			modifier = {
				NOT = { 
					OR = {
						has_tech = engines_3
						is_researching_technology = engines_3
					}
				}
				is_historical_focus_on = yes
				tag = ITA
				factor = 0
			}
			modifier = {
				factor = 100.0
				OR = {
					has_tech = basic_medium_tank_chassis
					is_researching_technology = basic_medium_tank_chassis
				}
			}
			modifier = { 
				factor = 25.0
				tag = SOV
				date > 1938.6.1
			}

			modifier = {
				factor = 100
				is_ai_tank_minor = yes
			}
			modifier = { #This is needed for a lot of tank designs
				factor = 25.0
				tag = GER
				date > 1937.5.1
			}
			modifier = { #This is needed for a lot of tank designs
				factor = 50.0
				tag = FRA
				date > 1937.1.1
			}
			modifier = { #This is needed for a lot of tank designs
				factor = 50.0
				tag = FRA
				date > 1937.6.1
			}
			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"
			}

			modifier = {
				factor = 5
				tag = GER
				date > "1939.1.1"
			}
			
			modifier = {
				factor = 100
				has_focus_tree = generic_focus
				has_completed_focus = equipment_effort
			}
			
			modifier = {
				factor = 100
				has_focus_tree = generic_focus
				has_completed_focus = equipment_effort_2
			}
			
			modifier = {
				factor = 1000
				has_focus_tree = generic_focus
				is_ai_tech_slave = yes
				has_completed_focus = equipment_effort
			}
			
			modifier = {
				factor = 50
				has_focus_tree = generic_focus
				is_ai_mass_mob = yes
			}
		}

		categories = {
			artillery
			cat_anti_tank
			mio_cat_all_artillery_equipment
		}
	}

	antitank2 = {

		mot_anti_tank_brigade = {
			hard_attack = 0.1
			ap_attack = 0.1
		}

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

		research_cost = 1

		start_year = 1940

		folder = {
			name = artillery_folder
			position = { x = 7 y = 6 }
		}

		ai_will_do = {
			factor = 200

			modifier = {
				factor = 2
				date > "1939.1.9"
			}
			modifier = { 
				factor = 25.0
				tag = SOV
				date > 1939.1.1
			}
			modifier = { #This is needed for a lot of tank designs
				factor = 25.0
				tag = GER
				date > 1937.5.1
			}
			modifier = { #This is needed for a lot of tank designs
				factor = 25.0
				tag = GER
				has_tech = basic_medium_tank_chassis
			}
			modifier = { 
				factor = 25.0
				tag = SOV
				date > 1938.6.1
			}

			modifier = {
				factor = 100
				is_ai_tank_minor = yes
			}
			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
						}
					}
				}
			}

			modifier = {
				factor = 5
				tag = GER
				date > "1939.1.1"
			}
			
			modifier = {
				OR = {
					is_ai_mass_mob = yes
					has_focus_tree = generic_focus
				}
				factor = 50
			}
			
			modifier = {
				factor = 100
				has_focus_tree = generic_focus
				has_completed_focus = equipment_effort_2
			}
			
			modifier = {
				factor = 100
				has_focus_tree = generic_focus
				has_completed_focus = equipment_effort_3
			}
			modifier = { #This is needed for a lot of tank designs
				factor = 20.0
				OR = {
					tag = GER
					tag = FRA
					tag = USA
					tag = ENG
				}
				date > 1938.5.1
			}
		}

		categories = {
			artillery
			cat_anti_tank
			mio_cat_all_artillery_equipment
		}
	}

	antitank3 = {
		enable_equipment_modules = {
			tank_medium_cannon_2
		}
		anti_tank = {
			hard_attack = 0.1
			ap_attack = 0.1
		}
		anti_tank_brigade = {
			hard_attack = 0.1
			ap_attack = 0.1
		}
		mot_anti_tank_brigade = {
			hard_attack = 0.1
			ap_attack = 0.1
		}
		light_tank_destroyer_brigade = {
			hard_attack = 0.1
			ap_attack = 0.05
		}
		medium_tank_destroyer_brigade = {
			hard_attack = 0.1
			ap_attack = 0.05
		}
		heavy_tank_destroyer_brigade = {
			hard_attack = 0.1
			ap_attack = 0.05
		}
		super_heavy_tank_destroyer_brigade = {
			hard_attack = 0.1
			ap_attack = 0.05
		}
		modern_tank_destroyer_brigade = {
			hard_attack = 0.1
			ap_attack = 0.05
		}

		path = {
			leads_to_tech = antitank4
			research_cost_coeff = 1
		}

		research_cost = 1

		start_year = 1941

		folder = {
			name = artillery_folder
			position = { x = 7 y = 8 }
		}

		ai_will_do = {
			factor = 1
			
			modifier = {
				factor = 0
				has_war = no
				is_major = no
				date < 1941.1.1
			}

			modifier = {
				factor = 2
				date > "1941.1.6"
			}
			modifier = { 
				factor = 500.0
				OR = {
					tag = SOV
					tag = GER
					tag = ENG
					tag = USA
				}
				date > 1940.1.1
			}
			modifier = { 
				factor = 10000.0
				OR = {
					tag = GER
					tag = USA
				}
				date > 1939.1.1
			}
			modifier = {
				tag = JAP
				not = {
					OR = {
						has_War_with = SOV
						has_war_with = USA
					}
				}
				factor = 0.5
			}
			modifier = { 
				factor = 25.0
				tag = SOV
				date > 1940.1.1
			}
			modifier = {
				factor = 2
				date > "1942.1.1"
			}

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

			modifier = {
				factor = 100
				is_ai_tank_minor = yes
			}

			modifier = {
				factor = 100
				OR = {
					has_completed_focus = SOV_pc_of_mortar_armament
					has_completed_focus = SOV_soviet_artillery
				}
			}
			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
		}
	}

	antitank4 = {
		enable_equipment_modules = {
			tank_high_velocity_cannon_2
		}
		anti_tank = {
			hard_attack = 0.1
			ap_attack = 0.1
		}
		anti_tank_brigade = {
			hard_attack = 0.1
			ap_attack = 0.1
		}
		mot_anti_tank_brigade = {
			hard_attack = 0.05
			ap_attack = 0.1
		}
		light_tank_destroyer_brigade = {
			hard_attack = 0.05
			ap_attack = 0.05
		}
		medium_tank_destroyer_brigade = {
			hard_attack = 0.05
			ap_attack = 0.05
		}
		heavy_tank_destroyer_brigade = {
			hard_attack = 0.05
			ap_attack = 0.05
		}
		super_heavy_tank_destroyer_brigade = {
			hard_attack = 0.05
			ap_attack = 0.05
		}
		modern_tank_destroyer_brigade = {
			hard_attack = 0.05
			ap_attack = 0.05
		}

		path = {
			leads_to_tech = antitank5
			research_cost_coeff = 1
		}

		research_cost = 1

		start_year = 1942

		folder = {
			name = artillery_folder
			position = { x = 7 y = 10 }
		}

		ai_will_do = {
			factor = 1

			modifier = {
				factor = 2
				date > "1942.1.6"
			}
			modifier = { 
				factor = 25.0
				tag = SOV
				date > 1940.6.1
			}
			modifier = {
				tag = JAP
				not = {
					OR = {
						has_War_with = SOV
						has_war_with = USA
					}
				}
				factor = 0.5
			}

			modifier = {
				factor = 100
				is_ai_tank_minor = yes
			}
			modifier = {
				factor = 5
				date > "1943.1.1"
			}
			modifier = {
				factor = 10
				any_enemy_country = {
					ROOT = {
						estimated_intel_max_armor = {
							tag = PREV
							value > 35
						}
					}
				}
			}

			modifier = {
				factor = 100
				OR = {
					has_completed_focus = SOV_pc_of_mortar_armament
					has_completed_focus = SOV_soviet_artillery
				}
			}
		}
		
		on_research_complete_limit = {
			tag = SOV
			NOT = { has_country_flag = light_tank_destroyer_4 }
			is_ai = yes
			has_dlc = "No Step Back"
		}
		on_research_complete = {
			hidden_effect = {
				create_equipment_variant = { 
					name = "SU-41"
					type = light_tank_destroyer_chassis_2
					parent_version = 0
					allow_without_tech = yes # Tooltip purposes, tech is required anyways
					modules = {
						main_armament_slot = tank_high_velocity_cannon_2
						turret_type_slot = tank_light_fixed_superstructure_turret
						suspension_type_slot = tank_wheeled_suspension
						armor_type_slot = tank_riveted_armor
						engine_type_slot = tank_diesel_engine
						special_type_slot_1 = easy_maintenance
						special_type_slot_2 = extra_ammo_storage
						special_type_slot_3 = secondary_turret_small_cannon
						special_type_slot_4 = dozer_blade
					}
					upgrades = {
						tank_nsb_engine_upgrade = 0
						tank_nsb_armor_upgrade = 0
					}
					design_team = mio:SOV_mytishchy_machine_building_plant_organization
				}
			}
		}

		categories = {
			artillery
			cat_anti_tank
			mio_cat_all_artillery_equipment
		}
	}

	antitank5 = {

		enable_equipments = {
			anti_tank_equipment_3
		}
		enable_equipment_modules = {
			tank_high_velocity_cannon_3
			tank_heavy_cannon_3
			auto_loader
		}
		research_cost = 1

		on_research_complete = {
			add_ideas = anti_tank_equipment_production_3
		}

		start_year = 1943

		folder = {
			name = artillery_folder
			position = { x = 7 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 = 50
				date > 1941.8.1
				tag = USA
			}
			modifier = {
				factor = 2
				date > "1943.1.1"
			}

			modifier = {
				factor = 5
				date > "1943.1.6"
			}
			modifier = { 
				factor = 25.0
				tag = SOV
				date > 1941.1.1
			}

			modifier = {
				factor = 100
				is_ai_tank_minor = yes
			}
			modifier = {
				factor = 10
				any_enemy_country = {
					ROOT = {
						estimated_intel_max_armor = {
							tag = PREV
							value > 35
						}
					}
				}
			}

			modifier = {
				factor = 100
				OR = {
					has_completed_focus = SOV_pc_of_mortar_armament
					has_completed_focus = SOV_soviet_artillery
				}
			}
		}

		categories = {
			artillery
			cat_anti_tank
			mio_cat_all_artillery_equipment
		}
	}

	SWE_bofors_antitank_gun = {

		research_cost = 1

		# only from focus!!! Bofors anti tank gun ##### 
		allow = {
			always = no
		}

		anti_tank = {
			hard_attack = 0.1
			ap_attack = 0.1
		}
		anti_tank_brigade = {
			hard_attack = 0.1
			ap_attack = 0.1
		}
		mot_anti_tank_brigade = {
			hard_attack = 0.1
			ap_attack = 0.1
		}
		light_tank_destroyer_brigade = {
			hard_attack = 0.1
			ap_attack = 0.1
		}
		medium_tank_destroyer_brigade = {
			hard_attack = 0.1
			ap_attack = 0.1
		}
		heavy_tank_destroyer_brigade = {
			hard_attack = 0.1
			ap_attack = 0.1
		}
		super_heavy_tank_destroyer_brigade = {
			hard_attack = 0.1
			ap_attack = 0.1
		}
		modern_tank_destroyer_brigade = {
			hard_attack = 0.1
			ap_attack = 0.1
		}

		categories = {
			cat_anti_tank
			artillery
			mio_cat_all_artillery_equipment
		}
	}

}
