technologies = {
	@anti_air = -7
	@anti_tank = 7
	@rocket_artillery = 3

	gw_artillery = {
		
		enable_subunits = {
			artillery
		}

		enable_equipments = {
			artillery_equipment_1

		}

		enable_subunits = {
			field_guns
		}

		armored_car = {
			soft_attack = 0.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
		}

		on_research_complete = {
			if = {
				limit = {
					has_dlc = "Gotterdammerung"
				}
				custom_effect_tooltip = {
					localization_key = SP_UNLOCK_PROJECT
					PROJECT = sp_land_super_heavy_howitzer
				}
			}
		}

		research_cost = 1.5

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

		categories = {
			artillery
			mio_cat_all_artillery_equipment
			mio_cat_artillery #Only Artillery
		}
		special_project_specialization = { specialization_land }

		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"
			}
			modifier = {
				factor = 0
				has_tech_bonus = {
				    	category = artillery
				}
				date < 1939.1.1
			}
		}
	}

	interwar_artillery = {

		artillery = {
			soft_attack = 0.05
		}
		artillery_brigade = {
			soft_attack = 0.1
		}
		mot_artillery_brigade = {
			soft_attack = 0.1
		}
		category_self_propelled_artillery = {
			soft_attack = 0.15
		}

		enable_equipment_modules = {
			tank_small_cannon_2
			tank_close_support_gun
			#secondary_turret_close_support_gun #MM: Has art and loc but no module definition
		}

		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
			mio_cat_artillery #Only Artillery
		}
		special_project_specialization = { specialization_land }

		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 = 500
				date > 1939.1.1
				OR = {
					has_country_flag = spacemarine
					has_country_flag = mass_infantry_flag
				}
			}
			
			modifier = {
				factor = 0
				tag = SOV
				has_war = no
				OR = {
					has_country_flag = pure_infantry
					has_country_flag = mech_brick
					has_country_flag = mass_infantry_flag
				}
			}
			
			modifier = {
				factor = 0
				date < 1939.1.1
				is_historical_focus_on = yes
				OR = {
					is_literally_china = yes
					has_focus_tree = generic_focus
				}
			}

			modifier = {
				factor = 10
				OR = {
					has_doctrine = superior_firepower
					is_historical_focus_on = no
				}
				date > 1937.1.1
				NOT = { tag = SOV }
			}

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

			modifier = {
				factor = 500
				is_spg_country = yes
			}
			modifier = {
				factor = 0.1
				has_tech_bonus = {
				    	category = artillery
				}
				date < 1939.1.1
			}
		}
	}

	artillery1 = {

		enable_equipments = {
			artillery_equipment_2
		}

		armored_car = {
			soft_attack = 0.1
		}

		enable_equipment_modules = {
			tank_medium_howitzer
			tank_medium_cannon
			lc_medium_cannon_turret #Module for Land Cruiser
			lc_assault_gun #Module for Land Cruiser
		}

		path = {
			leads_to_tech = artillery2
			research_cost_coeff = 1
		}

		path = {
			leads_to_tech = sp_artillery_rocket_assisted_projectiles_tech
			research_cost_coeff = 1
		}

		path = {
			leads_to_tech = sp_artillery_purpose_built_gun_motor_carriages_tech
			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
			mio_cat_artillery #Only Artillery
		}
		special_project_specialization = { specialization_land }

		on_research_complete = {
			IF = {
				limit = {
					original_tag = HUN
				}
				give_the_proper_spg_tech = yes
			}
		}
		ai_will_do = {
			factor = 2

			modifier = {
				factor = 0
				OR = {
					is_allied_ai = no
					tag = SOV
					tag = FRA
				}
				amount_research_slots < 5
				is_spg_country = no
				has_dlc = "No Step Back"
				date < 1939.1.1
				NOT = { has_doctrine = superior_firepower }
				is_historical_focus_on = yes
			}

			modifier = {
				factor = 0
				is_historical_focus_on = yes
				NOT = { has_doctrine = superior_firepower }
				is_spg_country = no
				has_dlc = "No Step Back"
				date < 1939.1.1
			}

			modifier = {
				factor = 500
				date > 1939.1.1
				OR = {
					has_country_flag = spacemarine
					has_country_flag = mass_infantry_flag
				}
			}

			modifier = {
				factor = 10
				OR = {
					has_doctrine = superior_firepower
					is_historical_focus_on = no
				}
				date > 1938.1.1
				NOT = { tag = SOV }
			}

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

			modifier = {
				factor = 500
				is_spg_country = yes
				date > 1937.1.1
			}
			modifier = {
				factor = 0.1
				has_tech_bonus = {
				    	category = artillery
				}
				date < 1939.1.1
			}
		}
	}

	artillery2 = {

		artillery = {
			soft_attack = 0.05
		}
		artillery_brigade = {
			soft_attack = 0.1
		}
		mot_artillery_brigade = {
			soft_attack = 0.1
		}
		category_self_propelled_artillery = {
			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
			mio_cat_artillery #Only Artillery
		}
		special_project_specialization = { specialization_land }

		ai_will_do = {
			factor = 2

			modifier = {
				factor = 10
				OR = {
					has_doctrine = superior_firepower
					is_historical_focus_on = no
				}
				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 }
			}

			modifier = {
				factor = 500
				is_spg_country = yes
				date > 1939.1.1
			}

			modifier = {
				factor = 500
				date > 1939.1.1
				OR = {
					has_country_flag = spacemarine
					has_country_flag = mass_infantry_flag
					is_historical_focus_on = no
				}
			}
		}
	}

	artillery3 = {

		artillery = {
			soft_attack = 0.05
		}
		artillery_brigade = {
			soft_attack = 0.1
		}
		mot_artillery_brigade = {
			soft_attack = 0.1
		}
		category_self_propelled_artillery = {
			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 }
		}
		on_research_complete = {
			IF = {
				limit = {
					original_tag = HUN
				}
				give_the_proper_spg_tech = yes
			}
		}

		categories = {
			artillery
			mio_cat_all_artillery_equipment
			mio_cat_artillery #Only Artillery
		}
		special_project_specialization = { specialization_land }

		ai_will_do = {
			factor = 2

			modifier = {
				factor = 10
				OR = {
					has_doctrine = superior_firepower
					is_historical_focus_on = no
				}
				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 }
			}

			modifier = {
				factor = 500
				is_spg_country = yes
				date > 1937.1.1
			}

			modifier = {
				factor = 500
				date > 1940.5.1
				OR = {
					has_country_flag = spacemarine
					has_country_flag = mass_infantry_flag
					is_historical_focus_on = no
				}
			}
		}
	}

	artillery4 = {

		enable_equipments = {
			artillery_equipment_3
		}

		armored_car = {
			soft_attack = 0.1
		}

		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
			mio_cat_artillery #Only Artillery
		}
		special_project_specialization = { specialization_land }
		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
				OR = {
					has_doctrine = superior_firepower
					is_historical_focus_on = no
				}
				date > 1941.1.1
				NOT = { tag = SOV }
			}

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

			modifier = {
				factor = 5
				is_spg_country = yes
				date > 1940.1.1
			}

			modifier = {
				factor = 500
				date > 1941.4.1
				OR = {
					has_country_flag = spacemarine
					has_country_flag = mass_infantry_flag
					is_historical_focus_on = no
				}
			}
		}
	}

	artillery5 = {

		artillery = {
			soft_attack = 0.05
		}
		artillery_brigade = {
			soft_attack = 0.1
		}
		mot_artillery_brigade = {
			soft_attack = 0.1
		}
		category_self_propelled_artillery = {
			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
			mio_cat_artillery #Only Artillery
		}
		special_project_specialization = { specialization_land }

		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
				OR = {
					has_doctrine = superior_firepower
					is_historical_focus_on = no
				}
				date > 1942.1.1
				NOT = { tag = SOV }
			}

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

			modifier = {
				factor = 5
				is_spg_country = yes
				date > 1941.1.1
			}

			modifier = {
				factor = 500
				date > 1942.1.1
				OR = {
					has_country_flag = spacemarine
					has_country_flag = mass_infantry_flag
					is_historical_focus_on = no
				}
			}
		}
	}

	mountain_gun = {

		research_cost = 1

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

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

		anti_tank_brigade = {
			mountain = {
				attack = 0.08
				movement = 0.15 #If you change this - Change the custom tooltip too: mountain_guns_tt 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
			lc_rocket_launcher #Module for Land Cruiser
		}

		path = {
			leads_to_tech = rocket_artillery2
			research_cost_coeff = 1
		}

		research_cost = 2

		start_year = 1940

		folder = {
			name = artillery_folder
			position = { x = @rocket_artillery 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
		}
		special_project_specialization = { specialization_air }
	}

	rocket_artillery2 = {

		category_rocket_artillery = {
			soft_attack = 0.15
		}

		rocket_battery = {
			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 = @rocket_artillery 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
		}
		special_project_specialization = { specialization_air }
	}

	rocket_artillery3 = {

		category_rocket_artillery = {
			soft_attack = 0.15
		}
		rocket_battery = {
			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 = @rocket_artillery 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
		}
		special_project_specialization = { specialization_air }
	}

	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 = @rocket_artillery 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
		}
		special_project_specialization = { specialization_air }
	}

	interwar_antiair = {

		enable_equipments = {
			anti_air_equipment_1
		}

		armored_car = {
			hard_attack = 0.1
		}

		enable_equipment_modules = {
			ship_anti_air_2
			tank_auto_cannon
			tank_anti_air_cannon
			tank_heavy_cannon
			lc_light_anti_air_battery #Module for Land Cruiser
		}

		enable_building = {
			building = anti_air_building
			level = 5
		}

		enable_subunits = {
			anti_air_battery
		}

		path = {
			leads_to_tech = antiair1
			research_cost_coeff = 1
		}

		research_cost = 1.5

		start_year = 1936

		folder = {
			name = artillery_folder
			position = { x = @anti_air 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
		}
		special_project_specialization = { specialization_land specialization_air }
	}

	antiair1 = {

		anti_air = {
			air_attack = 0.1
		}
		anti_air_brigade = {
			air_attack = 0.1
		}
		anti_air_battery = {
			air_attack = 0.1
		}
		mot_anti_air_brigade = {
			air_attack = 0.1
		}
		category_self_propelled_anti_air = {
			air_attack = 0.15
		}
		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 = @anti_air 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
		}
		special_project_specialization = { specialization_land specialization_air }
	}

	antiair2 = {

		enable_equipments = {
			anti_air_equipment_2
		}
		armored_car = {
			hard_attack = 0.1
		}
		static_anti_air_damage_factor = 0.1

		enable_equipment_modules = {
			ship_anti_air_3
			tank_auto_cannon_2
			tank_anti_air_cannon_2
			lc_heavy_anti_air_battery #Module for Land Cruiser
		}

		path = {
			leads_to_tech = antiair3
			research_cost_coeff = 1
		}

		path = {
			leads_to_tech = sp_shock_hardening_techniques
			research_cost_coeff = 1
		}

		research_cost = 1

		start_year = 1940

		folder = {
			name = artillery_folder
			position = { x = @anti_air 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
		}
		special_project_specialization = { specialization_land specialization_air }
	}

	antiair3 = {

		anti_air = {
			air_attack = 0.1
		}
		anti_air_brigade = {
			air_attack = 0.1
		}
		anti_air_battery = {
			air_attack = 0.1
		}
		mot_anti_air_brigade = {
			air_attack = 0.1
		}
		category_self_propelled_anti_air = {
			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 = @anti_air 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
		}
		special_project_specialization = { specialization_land specialization_air }
	}

	antiair4 = {

		anti_air = {
			air_attack = 0.1
		}
		anti_air_brigade = {
			air_attack = 0.1
		}
		anti_air_battery = {
			air_attack = 0.1
		}
		mot_anti_air_brigade = {
			air_attack = 0.1
		}
		category_self_propelled_anti_air = {
			air_attack = 0.05
		}

		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 = @anti_air 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
		}
		special_project_specialization = { specialization_land specialization_air }
	}

	antiair5 = {

		enable_equipments = {
			anti_air_equipment_3
		}
		armored_car = {
			hard_attack = 0.1
		}
		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
			lc_heavy_anti_air_platform #Module for Land Cruiser
		}

		research_cost = 1

		start_year = 1943

		folder = {
			name = artillery_folder
			position = { x = @anti_air 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
			}
		}
		on_research_complete = {
			add_ideas = anti_air_equipment_production_3
		}

		categories = {
			artillery
			cat_anti_air
			mio_cat_all_artillery_equipment
		}
		special_project_specialization = { specialization_land specialization_air }
	}

	interwar_antitank = {

		enable_equipments = {
			anti_tank_equipment_1
		}
		armored_car = {
			ap_attack = 0.1
		}		
		enable_equipment_modules = {
			tank_high_velocity_cannon
			tank_heavy_cannon
			tank_buster_1
			lc_high_velocity_cannon_turret #Module for Land Cruiser
		}

		enable_subunits = {
			anti_tank_battery
		}

		#Pfot
		on_research_complete = {
			if = {
				limit = {
					has_dlc = "Peace For Our Time"
				}
				custom_effect_tooltip = {
					localization_key = SP_UNLOCK_PROJECT
					PROJECT = sp_land_large_caliber_kinetic_energy_sabot
				}
			}
		}
		#End Pfot

		path = {
			leads_to_tech = antitank1
			research_cost_coeff = 1
		}

		research_cost = 1.5

		start_year = 1936

		folder = {
			name = artillery_folder
			position = { x = @anti_tank 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 = {
				tag = USA
				date < 1937.1.1
				factor = 0.1
			}
			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
		}
		special_project_specialization = { specialization_land }
	}

	antitank1 = {

		category_anti_tank = {
			hard_attack = 0.1
			ap_attack = 0.2
		}

		category_tank_destroyers = {
			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 = @anti_tank 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
				OR = {
					tag = SOV
					is_ai_mech_mob = yes
				}
				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 > 1936.4.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
		}
		special_project_specialization = { specialization_land }
	}

	antitank2 = {

		mot_anti_tank_brigade = {
			hard_attack = 0.1
			ap_attack = 0.1
		}
		armored_car = {
			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 = @anti_tank 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
				OR = {
					tag = GER
					tag = USA
				}
				date > 1937.5.1
			}
			modifier = { #This is needed for a lot of tank designs
				factor = 25.0
				OR = {
					tag = GER
					tag = USA
				}
				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 = {
				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
					is_ai_mech_mob = yes
				}
				date > 1938.5.1
			}
		}

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

	antitank3 = {
		enable_equipment_modules = {
			tank_medium_cannon_2
		}
		
		category_anti_tank = {
			hard_attack = 0.1
			ap_attack = 0.1
		}

		category_tank_destroyers = {
			hard_attack = 0.1
			ap_attack = 0.05
		}

		path = {
			leads_to_tech = antitank4
			research_cost_coeff = 1
		}

		path = { #Pfot
			leads_to_tech = sp_advance_sabot_shells
			research_cost_coeff = 1
		}

		research_cost = 1

		start_year = 1941

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

		categories = {
			artillery
			cat_anti_tank
			mio_cat_all_artillery_equipment
		}

		special_project_specialization = { specialization_land }

		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
					is_ai_mech_mob = yes
				}
				date > 1940.1.1
			}
			modifier = { 
				factor = 500.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
						}
					}
				}
			}
		}
	}

	antitank4 = {
		enable_equipment_modules = {
			tank_high_velocity_cannon_2
		}
		
		category_anti_tank = {
			hard_attack = 0.1
			ap_attack = 0.1
		}

		category_tank_destroyers = {
			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 = @anti_tank y = 10 }
		}

		ai_will_do = {
			factor = 1

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

			modifier = {
				factor = 100
				date > 1940.1.1
				OR = {
					is_ai_tank_minor = yes
					is_ai_mech_mob = yes
					tag = USA
				}
			}
			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
		}
		special_project_specialization = { specialization_land }
	}

	antitank5 = {

		enable_equipments = {
			anti_tank_equipment_3
		}
		armored_car = {
			ap_attack = 0.1
		}	
		enable_equipment_modules = {
			tank_high_velocity_cannon_3
			tank_heavy_cannon_3
			auto_loader
			lc_heavy_high_velocity_cannons #Module for Land Cruiser
		}

		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 = 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
				OR = {
					is_ai_tank_minor = yes
					is_ai_mech_mob = 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
				}
			}
		}

		on_research_complete = {
			add_ideas = anti_tank_equipment_production_3
		}
		categories = {
			artillery
			cat_anti_tank
			mio_cat_all_artillery_equipment
		}
		special_project_specialization = { specialization_land }
	}

	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
		}
	}


	### SPECIAL PROJECTS ###

	sp_artillery_rocket_assisted_projectiles_tech = {

		allow_branch = {
			 has_dlc = "Gotterdammerung"
		}

		allow = {
	 		ROOT = {
				is_special_project_completed = sp:sp_land_super_heavy_howitzer
				has_tech = experimental_rockets
			}
		}

		is_special_project_tech = yes

		super_heavy_artillery = {
			soft_attack = 0.1
		}

		self_propelled_super_heavy_artillery = {
			soft_attack = 0.1
		}

		research_cost = 1.5

		start_year = 1940

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

		categories = {
			artillery
			mio_cat_all_artillery_equipment
			mio_cat_artillery #Only Artillery
		}
		special_project_specialization = { specialization_land }

		ai_will_do = {
			base = 5
			modifier = {
				factor = 2
				is_major = yes
			}
			modifier = {
				factor = 2
				date > "1942.1.1"
			}
		}
	}


	sp_artillery_purpose_built_gun_motor_carriages_tech = {
		
		allow_branch = {
			 has_dlc = "Gotterdammerung"
		}

		allow = {
	 		ROOT = {
				is_special_project_completed = sp:sp_land_self_propelled_super_heavy_howitzer
			}
		}

		is_special_project_tech = yes

		super_heavy_artillery = {
			reliability = 0.07
			supply_consumption = -0.1
		}

		self_propelled_super_heavy_artillery = {
			reliability = 0.07
			supply_consumption = -0.1
		}

		research_cost = 1.5

		start_year = 1940

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

		categories = {
			artillery
			mio_cat_all_artillery_equipment
			mio_cat_artillery #Only Artillery
		}
		special_project_specialization = { specialization_land }

		ai_will_do = {
			base = 5
			modifier = {
				factor = 2
				is_major = yes
			}
			modifier = {
				factor = 2
				date > "1942.1.1"
			}
		}
	}

	sp_shock_hardening_techniques = {
		
		allow_branch = {
			 has_dlc = "Gotterdammerung"
		}

		allow = {
	 		ROOT = {
				is_special_project_completed = sp:sp_naval_proximity_fuze
			}
		}

		static_anti_air_damage_factor = 0.15
		static_anti_air_hit_chance_factor = 0.3 

		path = {
			leads_to_tech = sp_variable_time_fuze_shells
			research_cost_coeff = 1
		}
        
        force_use_small_tech_layout = yes		
		is_special_project_tech = yes	
		research_cost = 1.5
		start_year = 1941
		folder = {
			name = artillery_folder
			position = { x = -9 y = 8 }
		}

		categories = {
			artillery
			mio_cat_all_artillery_equipment
			mio_cat_artillery
		}

		special_project_specialization = { specialization_land specialization_air }
	}

	sp_variable_time_fuze_shells = {
		allow_branch = {
			 has_dlc = "Gotterdammerung"
		}

		allow = {
	 		ROOT = {
				is_special_project_completed = sp:sp_naval_proximity_fuze
			}
		}
		
		artillery = {
			soft_attack = 0.1
		}
		artillery_brigade = {
			soft_attack = 0.2
		}
		mot_artillery_brigade = {
			soft_attack = 0.2
		}
		category_self_propelled_artillery = {
			soft_attack = 0.1
		}

		force_use_small_tech_layout = yes
		research_cost = 1.5
		start_year = 1942
		is_special_project_tech = yes
			
		folder = {
			name = artillery_folder
			position = { x = -9 y = 10 }
		}

		categories = {
			artillery
			mio_cat_all_artillery_equipment
			mio_cat_artillery
		}

		special_project_specialization = { specialization_land specialization_air }
	}

	#TAOG
	the_thunder_at_our_gates_artillery = {

		artillery_brigade = {
			combat_width = -0.1
		}

	}
	#End TAOG


	#Project Wolfdog
	#Pfot
	sp_land_large_caliber_kinetic_energy_sabot_gd_tech = {
		#HIDDEN EFFECT FOR THE LARGE CALIBER KINETIC ENERGY PENETRATOR 
		
		research_cost = 1
		start_year = 1936

		#fortification_damage = 0.15 #Doesn't work in this context
		sp_land_multi_charge_large_caliber_gun_speed_factor = 0.10
		experience_gain_artillery_combat_factor = 0.10

		artillery_brigade = {
			ap_attack = 0.15
			fort = {
				attack = 0.15
			}
		}
		artillery = {
			ap_attack = 0.15
			fort = {
				attack = 0.15
			}
		}
		mot_artillery_brigade = {
			ap_attack = 0.15
			fort = {
				attack = 0.15
			}
		}
		category_self_propelled_artillery = {
			ap_attack = 0.15
			fort = {
				attack = 0.15
			}
		}
		super_heavy_artillery = {
			ap_attack = 0.15
			fort = {
				attack = 0.15
			}
		}
		self_propelled_super_heavy_artillery = {
			ap_attack = 0.15
			fort = {
				attack = 0.15
			}
		}
		field_guns = {
			ap_attack = 0.1
		}
		
		allow = {
			always = no
		}
	}

	sp_land_large_caliber_kinetic_energy_sabot_no_gd_tech = {
		#HIDDEN EFFECT FOR THE LARGE CALIBER KINETIC ENERGY PENETRATOR
		
		research_cost = 1
		start_year = 1936

		#fortification_damage = 0.15 #Doesn't work in this context
		experience_gain_artillery_combat_factor = 0.10

		artillery_brigade = {
			ap_attack = 0.15
			fort = {
				attack = 0.15
			}
		}
		artillery = {
			ap_attack = 0.15
			fort = {
				attack = 0.15
			}
		}
		mot_artillery_brigade = {
			ap_attack = 0.15
			fort = {
				attack = 0.15
			}
		}
		category_self_propelled_artillery = {
			ap_attack = 0.15
			fort = {
				attack = 0.15
			}
		}
		field_guns = {
			ap_attack = 0.1
		}
		
		allow = {
			always = no
		}
	}

	sp_advance_sabot_shells = { 
		allow_branch = {
			has_dlc = "Peace For Our Time"
		}

		allow = {
	 		ROOT = {
				is_special_project_completed = sp:sp_land_large_caliber_kinetic_energy_sabot
			}
		}

		static_anti_air_hit_chance_factor = 0.15

		anti_tank = {
			ap_attack = 0.15
		}
		anti_tank_brigade = {
			ap_attack = 0.15
		}
		mot_anti_tank_brigade = {
			ap_attack = 0.15
		}
		anti_tank_battery = {
			ap_attack = 0.15
		}
		category_tank_destroyers = {
			ap_attack = 0.05
		}

		force_use_small_tech_layout = yes
		research_cost = 1.5
		start_year = 1942
		is_special_project_tech = yes
			
		folder = {
			name = artillery_folder
			position = { x = 5 y = 10 }
		}

		categories = {
			artillery
			cat_anti_tank
			mio_cat_all_artillery_equipment
		}

		special_project_specialization = { specialization_land }
		ai_will_do = {
			base = 1
			modifier = {
				factor = 2
				is_major = yes
			}
		}
	}
	#End Pfot
}
