#######################################################################################
###		Navy technologies
#######################################################################################

@PR_ship_hull_light = 950
@PR_ship_hull_cruiser = 850
@PR_ship_hull_heavy = 950
@PR_ship_hull_carrier = 950
@PR_ship_hull_submarine = 850
@PR_sonar_module = 800
@PR_snorkel_module = 400
@PR_depth_charges = 800
@PR_smoke_generator = 800
@PR_airplane_launcher = 800
@PR_ship_armor = 800
@PR_light_battery = 800
@PR_dp_light_battery = 800
@PR_medium_battery = 800
@PR_dp_medium_battery = 800
@PR_heavy_battery = 800
@PR_navy_torpedo = 400
@PR_damage_control = 800
@PR_fire_control_methods = 800
@PR_naval_mines = 800
@PR_landing_craft = 1100

EAI_PR_STRATEGIES_navy_technologies = {

	EAI_PR_STRATEGIES_ship_hull_light = yes
	EAI_PR_STRATEGIES_ship_hull_cruiser = yes
	EAI_PR_STRATEGIES_ship_hull_heavy = yes
	EAI_PR_STRATEGIES_ship_hull_carrier = yes
	EAI_PR_STRATEGIES_ship_hull_submarine = yes
	EAI_PR_STRATEGIES_sonar_module = yes
	EAI_PR_STRATEGIES_snorkel_module = yes
	EAI_PR_STRATEGIES_depth_charges = yes
	EAI_PR_STRATEGIES_smoke_generator = yes
	EAI_PR_STRATEGIES_airplane_launcher = yes
	EAI_PR_STRATEGIES_ship_armor = yes
	EAI_PR_STRATEGIES_light_battery = yes
	EAI_PR_STRATEGIES_dp_light_battery = yes
	EAI_PR_STRATEGIES_light_medium_battery = yes
	EAI_PR_STRATEGIES_dp_medium_battery = yes
	EAI_PR_STRATEGIES_heavy_battery = yes
	EAI_PR_STRATEGIES_navy_torpedo = yes
	EAI_PR_STRATEGIES_damage_control = yes
	EAI_PR_STRATEGIES_fire_control_methods = yes
	EAI_PR_STRATEGIES_naval_mines = yes
	EAI_PR_STRATEGIES_landing_craft = yes
}

###

EAI_PR_STRATEGIES_ship_hull_light = {

	if = { 
		limit = { 
			OR = {
				EAI_DD_tech_focus = yes
				EAI_ASW_DD_tech_focus = yes
			}
		}

		set_temp_variable = { prio_cat = @PR_ship_hull_light }

		############################
		# Strategies
		############################

			# if = { limit = { tag = SOV }
			# 	if = {
			# 		limit = {
			# 			always = yes
			# 		}
				
			# 		multiply_temp_variable = { prio_cat = 1 }
			# 	}
			# }

			set_temp_variable = { prio_factor = EAI_RESEARCH_naval_research_factor }
			add_to_temp_variable = { prio_factor = 0.5 }
			multiply_temp_variable = { prio_cat = prio_factor }

		############################

		### early_ship_hull_light

		if = { limit = { set_temp_variable = { _prio_tech = token:early_ship_hull_light } set_temp_variable = { _prio_val = prio_cat }

			date > 1936.6.1
			set_temp_variable = { _prio_val = @PR_ship_hull_light }
				
		} EAI_PR_add_to_priority_research_queue = yes }

		### basic_ship_hull_light

		if = { limit = { set_temp_variable = { _prio_tech = token:basic_ship_hull_light } set_temp_variable = { _prio_val = prio_cat }

			date > 1936.6.1
			set_temp_variable = { _prio_val = @PR_ship_hull_light }
				
		} EAI_PR_add_to_priority_research_queue = yes }

		### improved_ship_hull_light

		if = { limit = { set_temp_variable = { _prio_tech = token:improved_ship_hull_light } set_temp_variable = { _prio_val = prio_cat }

			date > 1939.1.1
				
		} EAI_PR_add_to_priority_research_queue = yes }

		### advanced_ship_hull_light

		if = { limit = { set_temp_variable = { _prio_tech = token:advanced_ship_hull_light } set_temp_variable = { _prio_val = prio_cat }

			date > 1943.1.1
				
		} EAI_PR_add_to_priority_research_queue = yes }
	}
}

EAI_PR_STRATEGIES_ship_hull_cruiser = {

	if = { 
		limit = { 
			OR = {
				EAI_CL_tech_focus = yes
				EAI_ASW_CL_tech_focus = yes
				EAI_CA_tech_focus = yes
			}
		}

		set_temp_variable = { prio_cat = @PR_ship_hull_cruiser }

		############################
		# Strategies
		############################

			# if = { limit = { tag = SOV }
			# 	if = {
			# 		limit = {
			# 			always = yes
			# 		}
				
			# 		multiply_temp_variable = { prio_cat = 1 }
			# 	}
			# }

			set_temp_variable = { prio_factor = EAI_RESEARCH_naval_research_factor }
			add_to_temp_variable = { prio_factor = 0.5 }
			multiply_temp_variable = { prio_cat = prio_factor }

		############################

		### early_ship_hull_cruiser

		if = { limit = { set_temp_variable = { _prio_tech = token:early_ship_hull_cruiser } set_temp_variable = { _prio_val = prio_cat }

			date > 1936.6.1
				
		} EAI_PR_add_to_priority_research_queue = yes }

		### basic_ship_hull_cruiser

		if = { limit = { set_temp_variable = { _prio_tech = token:basic_ship_hull_cruiser } set_temp_variable = { _prio_val = prio_cat }

			date > 1936.6.1
				
		} EAI_PR_add_to_priority_research_queue = yes }

		### improved_ship_hull_cruiser

		if = { limit = { set_temp_variable = { _prio_tech = token:improved_ship_hull_cruiser } set_temp_variable = { _prio_val = prio_cat }

			date > 1939.1.1
				
		} EAI_PR_add_to_priority_research_queue = yes }

		### advanced_ship_hull_cruiser

		if = { limit = { set_temp_variable = { _prio_tech = token:advanced_ship_hull_cruiser } set_temp_variable = { _prio_val = prio_cat }

			date > 1943.1.1
				
		} EAI_PR_add_to_priority_research_queue = yes }
	}
}

EAI_PR_STRATEGIES_ship_hull_heavy = {

	if = { 
		limit = { 
			OR = {
				EAI_BC_tech_focus = yes
				EAI_BB_tech_focus = yes
				EAI_SHBB_tech_focus = yes
			}
		}

		set_temp_variable = { prio_cat = @PR_ship_hull_heavy }

		############################
		# Strategies
		############################

			# if = { limit = { tag = SOV }
			# 	if = {
			# 		limit = {
			# 			always = yes
			# 		}
				
			# 		multiply_temp_variable = { prio_cat = 1 }
			# 	}
			# }

			set_temp_variable = { prio_factor = EAI_RESEARCH_naval_research_factor }
			add_to_temp_variable = { prio_factor = 0.5 }
			multiply_temp_variable = { prio_cat = prio_factor }

		############################

		### early_ship_hull_heavy

		if = { limit = { set_temp_variable = { _prio_tech = token:early_ship_hull_heavy } set_temp_variable = { _prio_val = prio_cat }

			date > 1936.6.1
			OR = {
				EAI_BC_tech_focus = yes
				EAI_BB_tech_focus = yes
				EAI_SHBB_tech_focus = yes
			}
				
		} EAI_PR_add_to_priority_research_queue = yes }

		### basic_ship_hull_heavy

		if = { limit = { set_temp_variable = { _prio_tech = token:basic_ship_hull_heavy } set_temp_variable = { _prio_val = prio_cat }

			date > 1936.6.1
			OR = {
				EAI_BC_tech_focus = yes
				EAI_BB_tech_focus = yes
				EAI_SHBB_tech_focus = yes
			}
				
		} EAI_PR_add_to_priority_research_queue = yes }

		### improved_ship_hull_heavy

		if = { limit = { set_temp_variable = { _prio_tech = token:improved_ship_hull_heavy } set_temp_variable = { _prio_val = prio_cat }

			date > 1939.1.1
			OR = {
				EAI_BC_tech_focus = yes
				EAI_BB_tech_focus = yes
			}
				
		} EAI_PR_add_to_priority_research_queue = yes }

		### advanced_ship_hull_heavy

		if = { limit = { set_temp_variable = { _prio_tech = token:advanced_ship_hull_heavy } set_temp_variable = { _prio_val = prio_cat }

			date > 1943.1.1
			OR = {
				EAI_BC_tech_focus = yes
				EAI_BB_tech_focus = yes
			}
				
		} EAI_PR_add_to_priority_research_queue = yes }
	}
}

EAI_PR_STRATEGIES_ship_hull_carrier = {

	if = { 
		limit = { 
			EAI_CV_tech_focus = yes
		}

		set_temp_variable = { prio_cat = @PR_ship_hull_carrier }

		############################
		# Strategies
		############################

			# if = { limit = { tag = SOV }
			# 	if = {
			# 		limit = {
			# 			always = yes
			# 		}
				
			# 		multiply_temp_variable = { prio_cat = 1 }
			# 	}
			# }

			set_temp_variable = { prio_factor = EAI_RESEARCH_naval_research_factor }
			add_to_temp_variable = { prio_factor = 0.5 }
			multiply_temp_variable = { prio_cat = prio_factor }

		############################

		### early_ship_hull_carrier

		if = { limit = { set_temp_variable = { _prio_tech = token:early_ship_hull_carrier } set_temp_variable = { _prio_val = prio_cat }

			date > 1936.6.1
				
		} EAI_PR_add_to_priority_research_queue = yes }

		### basic_ship_hull_carrier

		if = { limit = { set_temp_variable = { _prio_tech = token:basic_ship_hull_carrier } set_temp_variable = { _prio_val = prio_cat }

			date > 1936.6.1
				
		} EAI_PR_add_to_priority_research_queue = yes }

		### improved_ship_hull_carrier

		if = { limit = { set_temp_variable = { _prio_tech = token:improved_ship_hull_carrier } set_temp_variable = { _prio_val = prio_cat }

			date > 1939.1.1
				
		} EAI_PR_add_to_priority_research_queue = yes }

		### advanced_ship_hull_carrier

		if = { limit = { set_temp_variable = { _prio_tech = token:advanced_ship_hull_carrier } set_temp_variable = { _prio_val = prio_cat }

			date > 1943.1.1
				
		} EAI_PR_add_to_priority_research_queue = yes }
	}
}

EAI_PR_STRATEGIES_ship_hull_submarine = {

	if = { 
		limit = { 
			EAI_SS_tech_focus = yes
			check_variable = { EAI_FOCUS/NAVY/naval_doctrine = global.EAI_TI_DOCTRINE }
		}

		set_temp_variable = { prio_cat = @PR_ship_hull_submarine }

		############################
		# Strategies
		############################

			# if = { limit = { tag = SOV }
			# 	if = {
			# 		limit = {
			# 			always = yes
			# 		}
				
			# 		multiply_temp_variable = { prio_cat = 1 }
			# 	}
			# }

		############################

		### early_ship_hull_submarine

		if = { limit = { set_temp_variable = { _prio_tech = token:early_ship_hull_submarine } set_temp_variable = { _prio_val = prio_cat }

			date > 1936.6.1
				
		} EAI_PR_add_to_priority_research_queue = yes }

		### basic_ship_hull_submarine

		if = { limit = { set_temp_variable = { _prio_tech = token:basic_ship_hull_submarine } set_temp_variable = { _prio_val = prio_cat }

			date > 1936.6.1
				
		} EAI_PR_add_to_priority_research_queue = yes }

		### improved_ship_hull_submarine

		if = { limit = { set_temp_variable = { _prio_tech = token:improved_ship_hull_submarine } set_temp_variable = { _prio_val = prio_cat }

			date > 1939.1.1
				
		} EAI_PR_add_to_priority_research_queue = yes }

		### advanced_ship_hull_submarine

		if = { limit = { set_temp_variable = { _prio_tech = token:advanced_ship_hull_submarine } set_temp_variable = { _prio_val = prio_cat }

			date > 1943.1.1
				
		} EAI_PR_add_to_priority_research_queue = yes }
	}
}

EAI_PR_STRATEGIES_sonar_module = {

	if = { 
		limit = { 
			OR = {
				EAI_ASW_DD_tech_focus = yes
				EAI_ASW_CL_tech_focus = yes
			}
		}

		set_temp_variable = { prio_cat = @PR_sonar_module }

		############################
		# Strategies
		############################

			# if = { limit = { tag = SOV }
			# 	if = {
			# 		limit = {
			# 			always = yes
			# 		}
				
			# 		multiply_temp_variable = { prio_cat = 1 }
			# 	}
			# }

			set_temp_variable = { prio_factor = EAI_RESEARCH_naval_research_factor }
			add_to_temp_variable = { prio_factor = 0.5 }
			multiply_temp_variable = { prio_cat = prio_factor }

		############################

		### sonar

		if = { limit = { set_temp_variable = { _prio_tech = token:sonar } set_temp_variable = { _prio_val = prio_cat }

			date > 1936.6.1
				
		} EAI_PR_add_to_priority_research_queue = yes }

		### improved_sonar

		if = { limit = { set_temp_variable = { _prio_tech = token:improved_sonar } set_temp_variable = { _prio_val = prio_cat }

			date > 1936.6.1
				
		} EAI_PR_add_to_priority_research_queue = yes }

		### advanced_sonar

		if = { limit = { set_temp_variable = { _prio_tech = token:advanced_sonar } set_temp_variable = { _prio_val = prio_cat }

			date > 1939.1.1
				
		} EAI_PR_add_to_priority_research_queue = yes }

		### modern_sonar

		if = { limit = { set_temp_variable = { _prio_tech = token:advanced_sonar } set_temp_variable = { _prio_val = prio_cat }

			date > 1943.1.1
				
		} EAI_PR_add_to_priority_research_queue = yes }
	}
}

EAI_PR_STRATEGIES_snorkel_module = {

	if = { 
		limit = { 
			EAI_SS_tech_focus = yes
		}

		set_temp_variable = { prio_cat = @PR_snorkel_module }

		############################
		# Strategies
		############################

			# if = { limit = { tag = SOV }
			# 	if = {
			# 		limit = {
			# 			always = yes
			# 		}
				
			# 		multiply_temp_variable = { prio_cat = 1 }
			# 	}
			# }

			if = { limit = { check_variable = { EAI_FOCUS/NAVY/naval_doctrine = global.EAI_TI_DOCTRINE } }

				multiply_temp_variable = { prio_cat = 2.1 }
			}

		############################

		### basic_submarine_snorkel

		if = { limit = { set_temp_variable = { _prio_tech = token:basic_submarine_snorkel } set_temp_variable = { _prio_val = prio_cat }

			date > 1940.1.1 
				
		} EAI_PR_add_to_priority_research_queue = yes }

		### improved_submarine_snorkel

		if = { limit = { set_temp_variable = { _prio_tech = token:improved_submarine_snorkel } set_temp_variable = { _prio_val = prio_cat }

			date > 1944.1.1 
				
		} EAI_PR_add_to_priority_research_queue = yes }
	}
}

EAI_PR_STRATEGIES_depth_charges = {

	if = { 
		limit = { 
			OR = {
				EAI_ASW_DD_tech_focus = yes
				EAI_ASW_CL_tech_focus = yes
			}
		}

		set_temp_variable = { prio_cat = @PR_depth_charges }

		############################
		# Strategies
		############################

			# if = { limit = { tag = SOV }
			# 	if = {
			# 		limit = {
			# 			always = yes
			# 		}
				
			# 		multiply_temp_variable = { prio_cat = 1 }
			# 	}
			# }

			set_temp_variable = { prio_factor = EAI_RESEARCH_naval_research_factor }
			add_to_temp_variable = { prio_factor = 0.5 }
			multiply_temp_variable = { prio_cat = prio_factor }

		############################

		### basic_depth_charges

		if = { limit = { set_temp_variable = { _prio_tech = token:basic_depth_charges } set_temp_variable = { _prio_val = prio_cat }

			date > 1936.6.1
				
		} EAI_PR_add_to_priority_research_queue = yes }

		### improved_depth_charges

		if = { limit = { set_temp_variable = { _prio_tech = token:improved_depth_charges } set_temp_variable = { _prio_val = prio_cat }

			date > 1936.6.1
				
		} EAI_PR_add_to_priority_research_queue = yes }

		### advanced_depth_charges

		if = { limit = { set_temp_variable = { _prio_tech = token:advanced_depth_charges } set_temp_variable = { _prio_val = prio_cat }

			date > 1939.1.1
			always = no
				
		} EAI_PR_add_to_priority_research_queue = yes }

		### modern_depth_charges

		if = { limit = { set_temp_variable = { _prio_tech = token:modern_depth_charges } set_temp_variable = { _prio_val = prio_cat }

			date > 1943.1.1
			always = no
				
		} EAI_PR_add_to_priority_research_queue = yes }
	}
}

EAI_PR_STRATEGIES_smoke_generator = {

	if = { 
		limit = { 
			always = no
		}

		set_temp_variable = { prio_cat = @PR_smoke_generator }

		############################
		# Strategies
		############################

			# if = { limit = { tag = SOV }
			# 	if = {
			# 		limit = {
			# 			always = yes
			# 		}
				
			# 		multiply_temp_variable = { prio_cat = 1 }
			# 	}
			# }

		############################

		### smoke_generator

		if = { limit = { set_temp_variable = { _prio_tech = token:smoke_generator } set_temp_variable = { _prio_val = prio_cat }

			date > 1936.6.1
				
		} EAI_PR_add_to_priority_research_queue = yes }
	}
}

EAI_PR_STRATEGIES_airplane_launcher = {

	if = { 
		limit = { 
			OR = {
				EAI_BC_tech_focus = yes
				EAI_ASW_CL_tech_focus = yes
			}
		}

		set_temp_variable = { prio_cat = @PR_airplane_launcher }

		############################
		# Strategies
		############################

			# if = { limit = { tag = SOV }
			# 	if = {
			# 		limit = {
			# 			always = yes
			# 		}
				
			# 		multiply_temp_variable = { prio_cat = 1 }
			# 	}
			# }

			set_temp_variable = { prio_factor = EAI_RESEARCH_naval_research_factor }
			add_to_temp_variable = { prio_factor = 0.5 }
			multiply_temp_variable = { prio_cat = prio_factor }

		############################

		### early_ship_hull_cruiser

		if = { limit = { set_temp_variable = { _prio_tech = token:early_ship_hull_cruiser } set_temp_variable = { _prio_val = prio_cat }

			OR = {
				AND = {
					date > 1936.6.1
					EAI_ASW_CL_tech_focus = yes
				}
				AND = {
					date > 1940.1.1
					EAI_BC_tech_focus = yes
				}
			}
				
		} EAI_PR_add_to_priority_research_queue = yes }

		### basic_ship_hull_cruiser

		if = { limit = { set_temp_variable = { _prio_tech = token:basic_ship_hull_cruiser } set_temp_variable = { _prio_val = prio_cat }

			OR = {
				AND = {
					date > 1936.6.1
					EAI_ASW_CL_tech_focus = yes
				}
				AND = {
					date > 1940.1.1
					EAI_BC_tech_focus = yes
				}
			}
				
		} EAI_PR_add_to_priority_research_queue = yes }
	}
}

EAI_PR_STRATEGIES_ship_armor = {

	if = { 
		limit = { 
			OR = {
				EAI_BB_tech_focus = yes
				EAI_BC_tech_focus = yes
			}
		}

		set_temp_variable = { prio_cat = @PR_ship_armor }

		############################
		# Strategies
		############################

			# if = { limit = { tag = SOV }
			# 	if = {
			# 		limit = {
			# 			always = yes
			# 		}
				
			# 		multiply_temp_variable = { prio_cat = 1 }
			# 	}
			# }

			set_temp_variable = { prio_factor = EAI_RESEARCH_naval_research_factor }
			add_to_temp_variable = { prio_factor = 0.5 }
			multiply_temp_variable = { prio_cat = prio_factor }

		############################

		### basic_cruiser_armor_scheme

		if = { limit = { set_temp_variable = { _prio_tech = token:basic_cruiser_armor_scheme } set_temp_variable = { _prio_val = prio_cat }

			date > 1936.6.1
			OR = { is_researching_technology = basic_ship_hull_heavy has_tech = basic_ship_hull_heavy }
				
		} EAI_PR_add_to_priority_research_queue = yes }

		### basic_heavy_armor_scheme

		if = { limit = { set_temp_variable = { _prio_tech = token:basic_heavy_armor_scheme } set_temp_variable = { _prio_val = prio_cat }

			date > 1936.6.1
			OR = { is_researching_technology = basic_ship_hull_heavy has_tech = basic_ship_hull_heavy }
				
		} EAI_PR_add_to_priority_research_queue = yes }

		### improved_heavy_armor_scheme

		if = { limit = { set_temp_variable = { _prio_tech = token:improved_heavy_armor_scheme } set_temp_variable = { _prio_val = prio_cat }

			date > 1940.1.1
			OR = { is_researching_technology = advanced_ship_hull_heavy has_tech = advanced_ship_hull_heavy }
				
		} EAI_PR_add_to_priority_research_queue = yes }
	}
}

EAI_PR_STRATEGIES_light_battery = {

	if = { 
		limit = { 
			EAI_light_battery_MODULE_FOCUS = yes
		}

		set_temp_variable = { prio_cat = @PR_light_battery }

		############################
		# Strategies
		############################

			# if = { limit = { tag = SOV }
			# 	if = {
			# 		limit = {
			# 			always = yes
			# 		}
				
			# 		multiply_temp_variable = { prio_cat = 1 }
			# 	}
			# }

			set_temp_variable = { prio_factor = EAI_RESEARCH_naval_research_factor }
			add_to_temp_variable = { prio_factor = 0.5 }
			multiply_temp_variable = { prio_cat = prio_factor }

		############################

		### basic_battery

		if = { limit = { set_temp_variable = { _prio_tech = token:basic_battery } set_temp_variable = { _prio_val = prio_cat }

			date > 1936.6.1
			OR = { is_researching_technology = basic_ship_hull_light has_tech = basic_ship_hull_light }
			set_temp_variable = { _prio_val = @PR_light_battery }
				
		} EAI_PR_add_to_priority_research_queue = yes }

		### basic_light_battery

		if = { limit = { set_temp_variable = { _prio_tech = token:basic_light_battery } set_temp_variable = { _prio_val = prio_cat }

			date > 1936.6.1
			OR = { is_researching_technology = basic_ship_hull_light has_tech = basic_ship_hull_light }
			set_temp_variable = { _prio_val = @PR_light_battery }
				
		} EAI_PR_add_to_priority_research_queue = yes }

		### basic_light_shell

		if = { limit = { set_temp_variable = { _prio_tech = token:basic_light_shell } set_temp_variable = { _prio_val = prio_cat }

			date > 1937.1.1
			OR = { is_researching_technology = improved_ship_hull_light has_tech = improved_ship_hull_light }
				
		} EAI_PR_add_to_priority_research_queue = yes }

		### improved_light_battery

		if = { limit = { set_temp_variable = { _prio_tech = token:improved_light_battery } set_temp_variable = { _prio_val = prio_cat }

			date > 1940.1.1
			OR = { is_researching_technology = improved_ship_hull_light has_tech = improved_ship_hull_light }
				
		} EAI_PR_add_to_priority_research_queue = yes }

		### improved_light_shell

		if = { limit = { set_temp_variable = { _prio_tech = token:improved_light_shell } set_temp_variable = { _prio_val = prio_cat }

			date > 1942.1.1
			always = no
				
		} EAI_PR_add_to_priority_research_queue = yes }

		### advanced_light_battery

		if = { limit = { set_temp_variable = { _prio_tech = token:advanced_light_battery } set_temp_variable = { _prio_val = prio_cat }

			date > 1944.1.1
			always = no
				
		} EAI_PR_add_to_priority_research_queue = yes }
	}
}

EAI_PR_STRATEGIES_dp_light_battery = {

	if = { 
		limit = { 
			EAI_dp_ship_secondaries_MODULE_FOCUS = yes
		}

		set_temp_variable = { prio_cat = @PR_dp_light_battery }

		############################
		# Strategies
		############################

			# if = { limit = { tag = SOV }
			# 	if = {
			# 		limit = {
			# 			always = yes
			# 		}
				
			# 		multiply_temp_variable = { prio_cat = 1 }
			# 	}
			# }

			set_temp_variable = { prio_factor = EAI_RESEARCH_naval_research_factor }
			add_to_temp_variable = { prio_factor = 0.5 }
			multiply_temp_variable = { prio_cat = prio_factor }

		############################

		### basic_battery

		if = { limit = { set_temp_variable = { _prio_tech = token:basic_battery } set_temp_variable = { _prio_val = prio_cat }

			date > 1943.1.1
			OR = { 
				is_researching_technology = advanced_ship_hull_light has_tech = advanced_ship_hull_light
				is_researching_technology = advanced_ship_hull_heavy has_tech = advanced_ship_hull_heavy
				is_special_project_completed = sp:sp_naval_super_heavy_battleship
				is_researching_technology = advanced_ship_hull_carrier has_tech = advanced_ship_hull_carrier
				is_researching_technology = advanced_ship_hull_cruiser has_tech = advanced_ship_hull_cruiser
			}
				
		} EAI_PR_add_to_priority_research_queue = yes }

		### basic_light_battery

		if = { limit = { set_temp_variable = { _prio_tech = token:basic_light_battery } set_temp_variable = { _prio_val = prio_cat }

			date > 1943.1.1
			OR = { 
				is_researching_technology = advanced_ship_hull_light has_tech = advanced_ship_hull_light
				is_researching_technology = advanced_ship_hull_heavy has_tech = advanced_ship_hull_heavy
				is_special_project_completed = sp:sp_naval_super_heavy_battleship
				is_researching_technology = advanced_ship_hull_carrier has_tech = advanced_ship_hull_carrier
				is_researching_technology = advanced_ship_hull_cruiser has_tech = advanced_ship_hull_cruiser
			}
				
		} EAI_PR_add_to_priority_research_queue = yes }

		### basic_light_shell

		if = { limit = { set_temp_variable = { _prio_tech = token:basic_light_shell } set_temp_variable = { _prio_val = prio_cat }

			date > 1943.1.1
			OR = { 
				is_researching_technology = advanced_ship_hull_light has_tech = advanced_ship_hull_light
				is_researching_technology = advanced_ship_hull_heavy has_tech = advanced_ship_hull_heavy
				is_special_project_completed = sp:sp_naval_super_heavy_battleship
				is_researching_technology = advanced_ship_hull_carrier has_tech = advanced_ship_hull_carrier
				is_researching_technology = advanced_ship_hull_cruiser has_tech = advanced_ship_hull_cruiser
			}
				
		} EAI_PR_add_to_priority_research_queue = yes }

		### improved_light_battery

		if = { limit = { set_temp_variable = { _prio_tech = token:improved_light_battery } set_temp_variable = { _prio_val = prio_cat }

			date > 1943.1.1
			OR = { 
				is_researching_technology = advanced_ship_hull_light has_tech = advanced_ship_hull_light
				is_researching_technology = advanced_ship_hull_heavy has_tech = advanced_ship_hull_heavy
				is_special_project_completed = sp:sp_naval_super_heavy_battleship
				is_researching_technology = advanced_ship_hull_carrier has_tech = advanced_ship_hull_carrier
				is_researching_technology = advanced_ship_hull_cruiser has_tech = advanced_ship_hull_cruiser
			}
				
		} EAI_PR_add_to_priority_research_queue = yes }

		### basic_dp_light_battery

		if = { limit = { set_temp_variable = { _prio_tech = token:basic_dp_light_battery } set_temp_variable = { _prio_val = prio_cat }

			date > 1943.1.1
			OR = { 
				is_researching_technology = advanced_ship_hull_light has_tech = advanced_ship_hull_light
				is_researching_technology = advanced_ship_hull_heavy has_tech = advanced_ship_hull_heavy
				is_special_project_completed = sp:sp_naval_super_heavy_battleship
				is_researching_technology = advanced_ship_hull_carrier has_tech = advanced_ship_hull_carrier
				is_researching_technology = advanced_ship_hull_cruiser has_tech = advanced_ship_hull_cruiser
			}
				
		} EAI_PR_add_to_priority_research_queue = yes }

		### improved_dp_light_battery

		if = { limit = { set_temp_variable = { _prio_tech = token:improved_dp_light_battery } set_temp_variable = { _prio_val = prio_cat }

			date > 1943.1.1
			OR = { 
				is_researching_technology = advanced_ship_hull_light has_tech = advanced_ship_hull_light
				is_researching_technology = advanced_ship_hull_heavy has_tech = advanced_ship_hull_heavy
				is_special_project_completed = sp:sp_naval_super_heavy_battleship
				is_researching_technology = advanced_ship_hull_carrier has_tech = advanced_ship_hull_carrier
				is_researching_technology = advanced_ship_hull_cruiser has_tech = advanced_ship_hull_cruiser
			}
				
		} EAI_PR_add_to_priority_research_queue = yes }

		### advanced_dp_light_battery

		if = { limit = { set_temp_variable = { _prio_tech = token:advanced_dp_light_battery } set_temp_variable = { _prio_val = prio_cat }

			date > 1943.1.1
			OR = { 
				is_researching_technology = advanced_ship_hull_light has_tech = advanced_ship_hull_light
				is_researching_technology = advanced_ship_hull_heavy has_tech = advanced_ship_hull_heavy
				is_special_project_completed = sp:sp_naval_super_heavy_battleship
				is_researching_technology = advanced_ship_hull_carrier has_tech = advanced_ship_hull_carrier
				is_researching_technology = advanced_ship_hull_cruiser has_tech = advanced_ship_hull_cruiser
			}
				
		} EAI_PR_add_to_priority_research_queue = yes }
	}
}

EAI_PR_STRATEGIES_light_medium_battery = {

	if = { 
		limit = { 
			OR = {
				EAI_light_medium_battery_MODULE_FOCUS = yes
				EAI_ship_secondaries_MODULE_FOCUS = yes
			}
		}

		set_temp_variable = { prio_cat = @PR_medium_battery }

		############################
		# Strategies
		############################

			# if = { limit = { tag = SOV }
			# 	if = {
			# 		limit = {
			# 			always = yes
			# 		}
				
			# 		multiply_temp_variable = { prio_cat = 1 }
			# 	}
			# }
		
			set_temp_variable = { prio_factor = EAI_RESEARCH_naval_research_factor }
			add_to_temp_variable = { prio_factor = 0.5 }
			multiply_temp_variable = { prio_cat = prio_factor }

		############################

		### basic_battery

		if = { limit = { set_temp_variable = { _prio_tech = token:basic_battery } set_temp_variable = { _prio_val = prio_cat }

			date > 1936.6.1
			OR = {
				is_researching_technology = basic_ship_hull_heavy has_tech = basic_ship_hull_heavy
				is_special_project_completed = sp:sp_naval_super_heavy_battleship
				is_researching_technology = improved_ship_hull_carrier has_tech = improved_ship_hull_carrier
				is_researching_technology = improved_ship_hull_cruiser has_tech = improved_ship_hull_cruiser
			}
			OR = {
				EAI_light_medium_battery_MODULE_FOCUS = yes
				EAI_ship_secondaries_MODULE_FOCUS = yes
			}
				
		} EAI_PR_add_to_priority_research_queue = yes }

		### basic_light_battery

		if = { limit = { set_temp_variable = { _prio_tech = token:basic_light_battery } set_temp_variable = { _prio_val = prio_cat }

			date > 1936.6.1
			OR = {
				is_researching_technology = basic_ship_hull_cruiser has_tech = basic_ship_hull_cruiser
				is_researching_technology = basic_ship_hull_heavy has_tech = basic_ship_hull_heavy
				is_special_project_completed = sp:sp_naval_super_heavy_battleship
				is_researching_technology = improved_ship_hull_carrier has_tech = improved_ship_hull_carrier
				is_researching_technology = improved_ship_hull_cruiser has_tech = improved_ship_hull_cruiser
			}
			OR = {
				EAI_light_medium_battery_MODULE_FOCUS = yes
				EAI_ship_secondaries_MODULE_FOCUS = yes
			}
				
		} EAI_PR_add_to_priority_research_queue = yes }

		### basic_light_battery

		if = { limit = { set_temp_variable = { _prio_tech = token:basic_light_battery } set_temp_variable = { _prio_val = prio_cat }

			date > 1936.6.1
			always = no
				
		} EAI_PR_add_to_priority_research_queue = yes }

		### improved_light_battery

		if = { limit = { set_temp_variable = { _prio_tech = token:improved_light_battery } set_temp_variable = { _prio_val = prio_cat }

			date > 1939.1.1
			always = no
				
		} EAI_PR_add_to_priority_research_queue = yes }

		### improved_light_shell

		if = { limit = { set_temp_variable = { _prio_tech = token:improved_light_shell } set_temp_variable = { _prio_val = prio_cat }

			date > 1942.1.1
			always = no
				
		} EAI_PR_add_to_priority_research_queue = yes }

		### advanced_light_battery

		if = { limit = { set_temp_variable = { _prio_tech = token:advanced_light_battery } set_temp_variable = { _prio_val = prio_cat }

			date > 1944.1.1
			always = no
				
		} EAI_PR_add_to_priority_research_queue = yes }
	}
}

EAI_PR_STRATEGIES_dp_medium_battery = {

	if = { 
		limit = { 
			always = no
		}

		set_temp_variable = { prio_cat = @PR_dp_medium_battery }

		############################
		# Strategies
		############################

			# if = { limit = { tag = SOV }
			# 	if = {
			# 		limit = {
			# 			always = yes
			# 		}
				
			# 		multiply_temp_variable = { prio_cat = 1 }
			# 	}
			# }

		############################

		### advanced_dp_light_battery

		if = { limit = { set_temp_variable = { _prio_tech = token:advanced_dp_light_battery } set_temp_variable = { _prio_val = prio_cat }

			date > 1944.1.1
				
		} EAI_PR_add_to_priority_research_queue = yes }
	}
}

EAI_PR_STRATEGIES_heavy_battery = {

	if = { 
		limit = { 
			EAI_heavy_battery_MODULE_FOCUS = yes
		}

		set_temp_variable = { prio_cat = @PR_heavy_battery }

		############################
		# Strategies
		############################

			# if = { limit = { tag = SOV }
			# 	if = {
			# 		limit = {
			# 			always = yes
			# 		}
				
			# 		multiply_temp_variable = { prio_cat = 1 }
			# 	}
			# }

			set_temp_variable = { prio_factor = EAI_RESEARCH_naval_research_factor }
			add_to_temp_variable = { prio_factor = 0.5 }
			multiply_temp_variable = { prio_cat = prio_factor }

		############################

		### basic_battery

		if = { limit = { set_temp_variable = { _prio_tech = token:basic_battery } set_temp_variable = { _prio_val = prio_cat }

			date > 1936.6.1
			OR = {
				is_researching_technology = basic_ship_hull_heavy has_tech = basic_ship_hull_heavy
				is_special_project_completed = sp:sp_naval_super_heavy_battleship
			}
				
		} EAI_PR_add_to_priority_research_queue = yes }

		### basic_heavy_battery

		if = { limit = { set_temp_variable = { _prio_tech = token:basic_heavy_battery } set_temp_variable = { _prio_val = prio_cat }

			date > 1936.6.1
			OR = {
				is_researching_technology = basic_ship_hull_heavy has_tech = basic_ship_hull_heavy
				is_special_project_completed = sp:sp_naval_super_heavy_battleship
			}
				
		} EAI_PR_add_to_priority_research_queue = yes }

		### basic_heavy_shell

		if = { limit = { set_temp_variable = { _prio_tech = token:basic_heavy_shell } set_temp_variable = { _prio_val = prio_cat }

			date > 1940.1.1
			OR = {
				is_researching_technology = advanced_ship_hull_heavy has_tech = advanced_ship_hull_heavy
			}
				
		} EAI_PR_add_to_priority_research_queue = yes }

		### improved_heavy_battery

		if = { limit = { set_temp_variable = { _prio_tech = token:improved_heavy_battery } set_temp_variable = { _prio_val = prio_cat }

			date > 1940.1.1
			OR = {
				is_researching_technology = advanced_ship_hull_heavy has_tech = advanced_ship_hull_heavy
			}
				
		} EAI_PR_add_to_priority_research_queue = yes }

		### improved_heavy_shell

		if = { limit = { set_temp_variable = { _prio_tech = token:improved_heavy_shell } set_temp_variable = { _prio_val = prio_cat }

			date > 1942.1.1
			EAI_BB_tech_focus = yes
			OR = {
				is_researching_technology = advanced_ship_hull_heavy has_tech = advanced_ship_hull_heavy
			}
				
		} EAI_PR_add_to_priority_research_queue = yes }

		### advanced_heavy_battery

		if = { limit = { set_temp_variable = { _prio_tech = token:advanced_heavy_battery } set_temp_variable = { _prio_val = prio_cat }

			date > 1944.1.1
			EAI_BB_tech_focus = yes
			OR = {
				is_researching_technology = advanced_ship_hull_heavy has_tech = advanced_ship_hull_heavy
			}
				
		} EAI_PR_add_to_priority_research_queue = yes }
	}
}

EAI_PR_STRATEGIES_navy_torpedo = {

	if = { 
		limit = { 
			EAI_SS_tech_focus = yes
		}

		set_temp_variable = { prio_cat = @PR_navy_torpedo }

		############################
		# Strategies
		############################

			# if = { limit = { tag = SOV }
			# 	if = {
			# 		limit = {
			# 			always = yes
			# 		}
				
			# 		multiply_temp_variable = { prio_cat = 1 }
			# 	}
			# }

			if = { limit = { check_variable = { EAI_FOCUS/NAVY/naval_doctrine = global.EAI_TI_DOCTRINE } }

				multiply_temp_variable = { prio_cat = 2.1 }
			}

		############################

		### basic_torpedo

		if = { limit = { set_temp_variable = { _prio_tech = token:basic_torpedo } set_temp_variable = { _prio_val = prio_cat }

			date > 1936.6.1
			has_war = yes
				
		} EAI_PR_add_to_priority_research_queue = yes }

		### magnetic_detonator

		if = { limit = { set_temp_variable = { _prio_tech = token:magnetic_detonator } set_temp_variable = { _prio_val = prio_cat }

			date > 1936.6.1
			has_war = yes
				
		} EAI_PR_add_to_priority_research_queue = yes }

		### homing_torpedo

		if = { limit = { set_temp_variable = { _prio_tech = token:homing_torpedo } set_temp_variable = { _prio_val = prio_cat }

			date > 1942.1.1
			has_war = yes
				
		} EAI_PR_add_to_priority_research_queue = yes }

		# ### electric_torpedo

		# if = { limit = { set_temp_variable = { _prio_tech = token:electric_torpedo } set_temp_variable = { _prio_val = prio_cat }

		# 	date > 1940.1.1
		# 	has_war = yes
				
		# } EAI_PR_add_to_priority_research_queue = yes }

		### improved_ship_torpedo_launcher

		if = { limit = { set_temp_variable = { _prio_tech = token:improved_ship_torpedo_launcher } set_temp_variable = { _prio_val = prio_cat }

			date > 1936.6.1
			always = no
				
		} EAI_PR_add_to_priority_research_queue = yes }

		### advanced_ship_torpedo_launcher

		if = { limit = { set_temp_variable = { _prio_tech = token:advanced_ship_torpedo_launcher } set_temp_variable = { _prio_val = prio_cat }

			date > 1940.1.1
			always = no
				
		} EAI_PR_add_to_priority_research_queue = yes }

		### modern_ship_torpedo_launcher

		if = { limit = { set_temp_variable = { _prio_tech = token:modern_ship_torpedo_launcher } set_temp_variable = { _prio_val = prio_cat }

			date > 1944.1.1
			always = no
				
		} EAI_PR_add_to_priority_research_queue = yes }
	}
}

EAI_PR_STRATEGIES_damage_control = {

	if = { 
		limit = { 
			always = no
		}

		set_temp_variable = { prio_cat = @PR_damage_control }

		############################
		# Strategies
		############################

			# if = { limit = { tag = SOV }
			# 	if = {
			# 		limit = {
			# 			always = yes
			# 		}
				
			# 		multiply_temp_variable = { prio_cat = 1 }
			# 	}
			# }

		############################

		### damage_control_1

		if = { limit = { set_temp_variable = { _prio_tech = token:damage_control_1 } set_temp_variable = { _prio_val = prio_cat }

			date > 1936.6.1
				
		} EAI_PR_add_to_priority_research_queue = yes }

		### damage_control_2

		if = { limit = { set_temp_variable = { _prio_tech = token:damage_control_2 } set_temp_variable = { _prio_val = prio_cat }

			date > 1936.6.1
				
		} EAI_PR_add_to_priority_research_queue = yes }

		### damage_control_3

		if = { limit = { set_temp_variable = { _prio_tech = token:damage_control_3 } set_temp_variable = { _prio_val = prio_cat }

			date > 1936.6.1
				
		} EAI_PR_add_to_priority_research_queue = yes }
	}
}

EAI_PR_STRATEGIES_fire_control_methods = {

	if = { 
		limit = { 
			always = no
		}

		set_temp_variable = { prio_cat = @PR_fire_control_methods }

		############################
		# Strategies
		############################

			# if = { limit = { tag = SOV }
			# 	if = {
			# 		limit = {
			# 			always = yes
			# 		}
				
			# 		multiply_temp_variable = { prio_cat = 1 }
			# 	}
			# }

		############################

		### fire_control_methods_1

		if = { limit = { set_temp_variable = { _prio_tech = token:fire_control_methods_1 } set_temp_variable = { _prio_val = prio_cat }

			date > 1936.6.1
				
		} EAI_PR_add_to_priority_research_queue = yes }

		### fire_control_methods_2

		if = { limit = { set_temp_variable = { _prio_tech = token:fire_control_methods_2 } set_temp_variable = { _prio_val = prio_cat }

			date > 1936.6.1
				
		} EAI_PR_add_to_priority_research_queue = yes }

		### fire_control_methods_3

		if = { limit = { set_temp_variable = { _prio_tech = token:fire_control_methods_3 } set_temp_variable = { _prio_val = prio_cat }

			date > 1936.6.1
				
		} EAI_PR_add_to_priority_research_queue = yes }
	}
}

EAI_PR_STRATEGIES_naval_mines = {

	if = { 
		limit = { 
			OR = {
				EAI_ML_DD_tech_focus = yes
				EAI_MS_DD_tech_focus = yes
				has_country_flag = EAI_enemy_mines_on_our_coasts
			}
		}

		set_temp_variable = { prio_cat = @PR_naval_mines }

		############################
		# Strategies
		############################

			# if = { limit = { tag = SOV }
			# 	if = {
			# 		limit = {
			# 			always = yes
			# 		}
				
			# 		multiply_temp_variable = { prio_cat = 1 }
			# 	}
			# }

		############################

		### basic_naval_mines

		if = { limit = { set_temp_variable = { _prio_tech = token:basic_naval_mines } set_temp_variable = { _prio_val = prio_cat }

			date > 1936.6.1
			OR = {
				EAI_ML_DD_tech_focus = yes
				EAI_MS_DD_tech_focus = yes
				has_country_flag = EAI_enemy_mines_on_our_coasts
			}
				
		} EAI_PR_add_to_priority_research_queue = yes }

		### submarine_mine_laying

		if = { limit = { set_temp_variable = { _prio_tech = token:submarine_mine_laying } set_temp_variable = { _prio_val = prio_cat }

			date > 1936.6.1
			always = no
				
		} EAI_PR_add_to_priority_research_queue = yes }

		### improved_submarine_mine_laying

		if = { limit = { set_temp_variable = { _prio_tech = token:improved_submarine_mine_laying } set_temp_variable = { _prio_val = prio_cat }

			date > 1940.6.1
			always = no
				
		} EAI_PR_add_to_priority_research_queue = yes }

		### improved_naval_mines

		if = { limit = { set_temp_variable = { _prio_tech = token:improved_naval_mines } set_temp_variable = { _prio_val = prio_cat }

			date > 1936.6.1
			has_country_flag = EAI_enemy_mines_on_our_coasts
				
		} EAI_PR_add_to_priority_research_queue = yes }

		### degaussing

		if = { limit = { set_temp_variable = { _prio_tech = token:degaussing } set_temp_variable = { _prio_val = prio_cat }

			date > 1938.1.1
			has_country_flag = EAI_enemy_mines_on_our_coasts
				
		} EAI_PR_add_to_priority_research_queue = yes }

		### advanced_naval_mines

		if = { limit = { set_temp_variable = { _prio_tech = token:advanced_naval_mines } set_temp_variable = { _prio_val = prio_cat }

			date > 1942.1.1
			always = no
				
		} EAI_PR_add_to_priority_research_queue = yes }

		### airdrop_mines_bba

		if = { limit = { set_temp_variable = { _prio_tech = token:airdrop_mines_bba } set_temp_variable = { _prio_val = prio_cat }

			date > 1942.1.1
			always = no
				
		} EAI_PR_add_to_priority_research_queue = yes }

		# ### modern_naval_mines

		# if = { limit = { set_temp_variable = { _prio_tech = token:modern_naval_mines } set_temp_variable = { _prio_val = prio_cat }

		# 	date > 1945.1.1
		# 	always = no
				
		# } EAI_PR_add_to_priority_research_queue = yes }

		### airsweep_mines_bba

		if = { limit = { set_temp_variable = { _prio_tech = token:airsweep_mines_bba } set_temp_variable = { _prio_val = prio_cat }

			date > 1944.1.1
			always = no
				
		} EAI_PR_add_to_priority_research_queue = yes }
	}
}

EAI_PR_STRATEGIES_landing_craft = {

	if = { 
		limit = { 
			EAI_transport_tech_focus = yes
			OR = {
				AND = {
					is_major = yes
					any_enemy_country = { is_major = yes }
					NOT = { alliance_naval_strength_ratio < 1 }
					check_variable = { EAI_RESEARCH_naval_research_factor > 0.5 }
				}
				AND = {
					OR = {
						tag = JAP
						tag = USA
					}
					date > 1941.1.1
				}
			}
		}

		set_temp_variable = { prio_cat = @PR_landing_craft }

		############################
		# Strategies
		############################

			# if = { limit = { tag = SOV }
			# 	if = {
			# 		limit = {
			# 			always = yes
			# 		}
				
			# 		multiply_temp_variable = { prio_cat = 1 }
			# 	}
			# }

		############################

		### mtg_transport

		if = { limit = { set_temp_variable = { _prio_tech = token:mtg_transport } set_temp_variable = { _prio_val = prio_cat }

			date > 1936.6.1
				
		} EAI_PR_add_to_priority_research_queue = yes }

		### mtg_landing_craft

		if = { limit = { set_temp_variable = { _prio_tech = token:mtg_landing_craft } set_temp_variable = { _prio_val = prio_cat }

			date > 1940.1.1
				
		} EAI_PR_add_to_priority_research_queue = yes }

		### mtg_tank_landing_craft

		if = { limit = { set_temp_variable = { _prio_tech = token:mtg_tank_landing_craft } set_temp_variable = { _prio_val = prio_cat }

			date > 1944.1.1
				
		} EAI_PR_add_to_priority_research_queue = yes }
	}
}