focus_tree = {
	id = yugoslavian_focus
	
	country = {
		factor = 0
		
		modifier = {
			add = 10
			tag = YUG
			has_dlc = "Death or Dishonor"
		}
	}
	
	default = no

	continuous_focus_position = { x = 50 y = 1650 }

#	focus = {
#		id = YUG_
#		icon = GFX_
#		prerequisite = { focus = }
#		mutually_exclusive = { focus =  }
#		x = -3
#		y = 0
#		relative_position_id = 
#
#		cost = 10
#
#		ai_will_do = {
#			factor = 1
#		}
#
#		available = {
#
#		}
#		
#		bypass = {
#
#		}
#
#		cancel_if_invalid = yes
#		continue_if_invalid = no
#		available_if_capitulated = no
#
#		complete_tooltip = {
#
#		}
#
#		completion_reward = {
#
#		}
#	}

	###############################
	##### Democratic/Fascist ######
	###############################

	focus = {
		id = YUG_western_focus
		icon = GFX_goal_generic_position_armies
		mutually_exclusive = { focus = YUG_recognize_the_soviet_union }
		x = 2
		y = 0

		cost = 10

		ai_will_do = {
			factor = 200
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_POLITICAL }


		completion_reward = {
			add_political_power = 120
			add_ideas = king_peter_1
		}
	}

	focus = {
		id = YUG_friendship_treaty_with_italy
		icon = GFX_goal_generic_improve_relations
		prerequisite = { focus = YUG_western_focus }
		mutually_exclusive = { focus = YUG_reinforce_old_alliances }
		x = -2
		y = 1
		relative_position_id = YUG_western_focus

		cost = 5

		ai_will_do = {
			factor = 80
			modifier = {
				factor = 0.01
				ITA = {
					OR = {
						ITA_is_communist_ai = yes
						ITA_is_socialist_ai = yes
						ITA_is_christian_democracy_ai = yes
					}
				}
			}
		}

		available = {
			ITA = {
				NOT = { has_war_with = ROOT }
				exists = yes
				has_capitulated = no
				ITA_is_kinda_fascist = yes
			}
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_POLITICAL }



		completion_reward = {
			add_political_power = 50
			ITA = {
				add_opinion_modifier = {
					target = ROOT
					modifier = large_increase
				}
			}
		}
	}

	focus = {
		id = YUG_reinforce_old_alliances
		icon = GFX_goal_generic_major_alliance
		prerequisite = { focus = YUG_western_focus }
		mutually_exclusive = { focus = YUG_friendship_treaty_with_italy }
		x = 2
		y = 1
		relative_position_id = YUG_western_focus

		cost = 10

		ai_will_do = {
			factor = 40
		}

		available = {
			ENG = {
				NOT = { has_war_with = ROOT }
				exists = yes
				has_capitulated = no
			}
			FRA = {
				NOT = { has_war_with = ROOT }
				exists = yes
				has_capitulated = no
			}
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_POLITICAL }



		completion_reward = {
			ENG = {
				add_opinion_modifier = { 
						target = ROOT
						modifier = large_increase
					}
				add_ai_strategy = {
					type = protect
					id = "YUG"
					value = 100
				}
			}
			add_relation_modifier = {
				target = ENG
				modifier = YUG_western_license
			}
			FRA = {
				add_opinion_modifier = { 
						target = ROOT
						modifier = large_increase
					}
				add_ai_strategy = {
					type = protect
					id = "YUG"
					value = 100
				}
			}
			add_relation_modifier = {
				target = FRA
				modifier = YUG_western_license
			}
		}
	}

	focus = {
		id = YUG_attract_allied_capital
		icon = GFX_goal_generic_intelligence_exchange
		prerequisite = { focus = YUG_friendship_treaty_with_italy focus = YUG_reinforce_old_alliances }
		x = 1
		y = 1
		relative_position_id = YUG_reinforce_old_alliances

		cost = 10

		ai_will_do = {
			factor = 80
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_INDUSTRY }


		completion_reward = {
			add_ideas = YUG_idea_foreign_capital
		}
	}

	focus = {
		id = YUG_attract_axis_capital
		icon = GFX_goal_generic_intelligence_exchange
		prerequisite = { focus = YUG_friendship_treaty_with_italy focus = YUG_reinforce_old_alliances }
		x = -1
		y = 1
		relative_position_id = YUG_friendship_treaty_with_italy

		cost = 10

		ai_will_do = {
			factor = 80
		}

		available = {
			OR = {
				GER = {
					NOT = { has_war_with = ROOT }
				}
				ITA = {
					NOT = { has_war_with = ROOT }
				}
			}
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_INDUSTRY }


		completion_reward = {
			add_ideas = YUG_idea_axis_capital
		}
	}
	
	focus = {
		id = YUG_brigadistas
		icon = GFX_goal_generic_military_sphere
		prerequisite = { focus = YUG_friendship_treaty_with_italy focus = YUG_reinforce_old_alliances }
		x = 2
		y = 1
		relative_position_id = YUG_friendship_treaty_with_italy

		cost = 10

		ai_will_do = {
			factor = 0
		}

		available = {
			has_war = no
			SPR_scw_in_progress = yes
		}

		bypass = {
			OR = {
				has_global_flag = scw_over
				has_war = yes
			}
		}

		cancel_if_invalid = yes
		available_if_capitulated = no

		completion_reward = {
			set_rule = { can_send_volunteers = yes }
			add_ideas = YUG_brigadistas_idea
			custom_effect_tooltip = will_be_removed_once_scw_is_over_tt
		}
	}
	
	focus = {
		id = YUG_local_militias
		icon = GFX_goal_generic_allies_build_infantry
		prerequisite = { focus = YUG_reinforce_old_alliances focus = YUG_friendship_treaty_with_italy focus = YUG_form_peasant_councils }
		x = 4
		y = 1
		relative_position_id = YUG_reinforce_old_alliances

		cost = 10

		ai_will_do = {
			factor = 80
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_MANPOWER }

		completion_reward = {
			add_ideas = YUG_idea_local_militias
		}
	}
	
	############################
	##### SELF GOVERNMENT ######
	############################

	focus = {
		id = YUG_limited_self_government
		icon = GFX_goal_anschluss
		prerequisite = { focus = YUG_attract_allied_capital focus = YUG_attract_axis_capital }
		mutually_exclusive = { focus = YUG_evolution }
		x = 0
		y = 1
		relative_position_id = YUG_attract_allied_capital

		cost = 5

		ai_will_do = {
			factor = 40
		}

		available = {
			is_subject = no
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_MANPOWER }
		
		completion_reward = {
			remove_ideas = YUG_idea_slovene_nationalism
			
			#tooltip
			effect_tooltip ={
				release_puppet = SLV
				SLV = {
					custom_effect_tooltip = create_two_units_tt
				}
			}
			
			hidden_effect = {
				if = {
					limit = { SLV = { exists = no } }
					release_puppet = SLV 
					set_autonomy = { target = SLV autonomy_state = autonomy_integrated_puppet }
					SLV = { save_event_target_as = released_nation_target }
				}
				else = {
					create_dynamic_country = {
						original_tag = SLV
						
						save_event_target_as = released_nation_target
						PREV = {
							every_owned_state = {
								limit = { is_core_of = SLV }
								PREV.PREV = { transfer_state = PREV }
							}
						}
						PREV = {
							puppet = PREV
							set_autonomy = { target = PREV autonomy_state = autonomy_integrated_puppet }
						}
					}
				}
				event_target:released_nation_target = {
					division_template = {
						name = "Yugoslavian Division"
						priority = 1
						division_names_group = YUG_INF_01
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
				
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
				
							infantry = { x = 2 y = 0 }
							infantry = { x = 2 y = 1 }
						}
						support = {
							engineer = { x = 0 y = 0 }
						}
					}
					random_owned_controlled_state = {
						limit = { PREV = { has_full_control_of_state = PREV } }
						create_unit = {
							division = "name = \"Slovene Division\" division_template = \"Yugoslavian Division\" start_experience_factor = 0.9" 
							owner = PREV
						}
					}
					random_owned_controlled_state = {
						limit = { PREV = { has_full_control_of_state = PREV } }
						create_unit = {
							division = "name = \"Slovene Division\" division_template = \"Yugoslavian Division\" start_experience_factor = 0.9" 
							owner = PREV
						}
					}
				}


				IF = {
					limit = {
						SLV = {
							capital_scope = {
								NOT = {
									is_in_array = {
										array = AUS.expansion_targets
										value = THIS
									}
								}
							} 
						}
						AUS = {
							has_completed_focus = AUS_reclaiming_yugoslavian_territories
						}
					}

					SLV = {
						capital_scope = {
							add_to_array = {
								array = AUS.expansion_targets
								value = THIS
							}

							log = "[THIS.GetName] Added to AUS expansion Array"
						}
					}
					

					IF = {
						limit = {
							CRO = {
								capital_scope = {
									is_in_array = {
										array = AUS.expansion_targets
										value = THIS
									}
								}
							}
							AUS = {
								has_completed_focus = AUS_reclaiming_yugoslavian_territories
							}
						}

						YUG = {
							capital_scope = {
								remove_from_array = {
									array = AUS.expansion_targets
									value = THIS
								}

								log = "[THIS.GetName] was removed from the array"
							}
						}

						
					}
				}
			}
		}
	}
	
	focus = {
		id = YUG_united_autonomous_croatia
		icon = GFX_focus_YUG_banovina_of_croatia
		prerequisite = { focus = YUG_limited_self_government }
		mutually_exclusive = { focus = YUG_devolved_croatia }
		x = -2
		y = 1
		relative_position_id = YUG_limited_self_government

		cost = 10

		ai_will_do = {
			factor = 40
		}

		available = {
			OR = {
				controls_state = 109
				controls_state = 103
				controls_state = 736
				controls_state = 852
				controls_state = 163
			}
			is_subject = no
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_MANPOWER }
		
		completion_reward = {
			remove_ideas = YUG_idea_croatian_opposition
			
			#tooltip
			effect_tooltip ={
				release_puppet = CRO
				CRO = {
					custom_effect_tooltip = create_four_units_tt
				}
			}
			
			#actual effect
			hidden_effect = {
				if = {
					limit = { CRO = { exists = no } }
					release_puppet = CRO
					set_autonomy = { target = CRO autonomy_state = autonomy_integrated_puppet }
					CRO = { save_event_target_as = released_nation_target }
				}
				else = {
					create_dynamic_country = {
						original_tag = CRO
						
						save_event_target_as = released_nation_target
						PREV = {
							every_owned_state = {
								limit = { is_core_of = CRO }
								PREV.PREV = { transfer_state = PREV }
							}
						}
						PREV = {
							puppet = PREV
							set_autonomy = { target = PREV autonomy_state = autonomy_integrated_puppet }
						}
					}
				}
				event_target:released_nation_target = {
					division_template = {
						name = "Yugoslavian Division"
						priority = 1
						division_names_group = YUG_INF_01
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
				
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
				
							infantry = { x = 2 y = 0 }
							infantry = { x = 2 y = 1 }
						}
						support = {
							engineer = { x = 0 y = 0 }
						}
					}
					random_owned_controlled_state = {
						limit = { PREV = { has_full_control_of_state = PREV } }
						create_unit = {
							division = "name = \"Croatian Division\" division_template = \"Yugoslavian Division\" start_experience_factor = 0.9" 
							owner = PREV
						}
					}
					random_owned_controlled_state = {
						limit = { PREV = { has_full_control_of_state = PREV } }
						create_unit = {
							division = "name = \"Croatian Division\" division_template = \"Yugoslavian Division\" start_experience_factor = 0.9" 
							owner = PREV
						}
					}
					random_owned_controlled_state = {
						limit = { PREV = { has_full_control_of_state = PREV } }
						create_unit = {
							division = "name = \"Croatian Division\" division_template = \"Yugoslavian Division\" start_experience_factor = 0.9" 
							owner = PREV
						}
					}
					random_owned_controlled_state = {
						limit = { PREV = { has_full_control_of_state = PREV } }
						create_unit = {
							division = "name = \"Croatian Division\" division_template = \"Yugoslavian Division\" start_experience_factor = 0.9" 
							owner = PREV
						}
					}
				}

				IF = {
					limit = {
						CRO = {
							capital_scope = {
								NOT = {
									is_in_array = {
										array = AUS.expansion_targets
										value = THIS
									}
								}
							}
						}
						AUS = {
							has_completed_focus = AUS_reclaiming_yugoslavian_territories
						}
					}

					CRO = {
						capital_scope = {
							add_to_array = {
								array = AUS.expansion_targets
								value = THIS
							}

							log = "[THIS.GetName] Added to AUS expansion Array"
						}
					}
					

					IF = {
						limit = {
							SLV = {
								capital_scope = {
									is_in_array = {
										array = AUS.expansion_targets
										value = THIS
									}
								}
							}
							AUS = {
								has_completed_focus = AUS_reclaiming_yugoslavian_territories
							}
						}

						YUG = {
							capital_scope = {
								remove_from_array = {
									array = AUS.expansion_targets
									value = THIS
								}

								set_state_flag = AUS_no_longer_expansion_target
							}
						}
						
					}
				}
			}
		}
	}
	
	focus = {
		id = YUG_devolved_croatia
		icon = GFX_focus_YUG_devolved_croatia
		prerequisite = { focus = YUG_limited_self_government }
		mutually_exclusive = { focus = YUG_united_autonomous_croatia }
		x = 0
		y = 1
		relative_position_id = YUG_limited_self_government
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_MANPOWER }

		cost = 10

		ai_will_do = {
			factor = 40
		}

		available = {
			controls_state = 109
			controls_state = 103
			is_subject = no
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		completion_reward = {
			remove_ideas = YUG_idea_croatian_opposition
			
			#tooltip
			effect_tooltip ={
				release_puppet = CRO
				CRO = {
					custom_effect_tooltip = create_two_units_tt
				}
			}
			custom_effect_tooltip = release_dalmatia_tt
			custom_effect_tooltip = release_dalmatia_units_tt
			
			hidden_effect = {
				if = {
					limit = { CRO = { exists = no } }
					release_puppet = CRO 
					set_autonomy = { target = CRO autonomy_state = autonomy_integrated_puppet }
					CRO = { save_event_target_as = released_nation_target }
				}
				else = {
					create_dynamic_country = {
						original_tag = CRO
						
						save_event_target_as = released_nation_target
						PREV = {
							every_owned_state = {
								limit = { is_core_of = CRO }
								PREV.PREV = { transfer_state = PREV }
							}
						}
						PREV = {
							puppet = PREV
							set_autonomy = { target = PREV autonomy_state = autonomy_integrated_puppet }

						}
						set_country_flag = yug_croatia_flag
					}
				}
				event_target:released_nation_target = {
					division_template = {
						name = "Yugoslavian Division"
						priority = 1
						division_names_group = YUG_INF_01
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
				
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
				
							infantry = { x = 2 y = 0 }
							infantry = { x = 2 y = 1 }
						}
						support = {
							engineer = { x = 0 y = 0 }
						}
					}
					random_owned_controlled_state = {
						limit = { PREV = { has_full_control_of_state = PREV } }
						create_unit = {
							division = "name = \"Croatian Division\" division_template = \"Yugoslavian Division\" start_experience_factor = 0.9" 
							owner = PREV
						}
					}
					random_owned_controlled_state = {
						limit = { PREV = { has_full_control_of_state = PREV } }
						create_unit = {
							division = "name = \"Croatian Division\" division_template = \"Yugoslavian Division\" start_experience_factor = 0.9" 
							owner = PREV
						}
					}
				}
			}
			
			hidden_effect = {
				create_dynamic_country = {
					original_tag = CRO
					
					set_cosmetic_tag = dalmatia
					transfer_state = 103
					PREV = {
						puppet = PREV
						set_autonomy = { target = PREV autonomy_state = autonomy_integrated_puppet }
					}
					division_template = {
						name = "Yugoslavian Division"
						priority = 1
						division_names_group = YUG_INF_01
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
				
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
				
							infantry = { x = 2 y = 0 }
							infantry = { x = 2 y = 1 }
						}
						support = {
							engineer = { x = 0 y = 0 }
						}
					}
					random_owned_controlled_state = {
						limit = { PREV = { has_full_control_of_state = PREV } }
						create_unit = {
							division = "name = \"Dalmatian Division\" division_template = \"Yugoslavian Division\" start_experience_factor = 0.9" 
							owner = PREV
						}
					}
				}

				IF = {
					limit = {
						CRO = {
							capital_scope = {
								NOT = {
									is_in_array = {
										array = AUS.expansion_targets
										value = THIS
									}
								}
							}
						}
						AUS = {
							has_completed_focus = AUS_reclaiming_yugoslavian_territories
						}
					}

					CRO = {
						capital_scope = {
							add_to_array = {
								array = AUS.expansion_targets
								value = THIS
							}

							log = "[THIS.GetName] Added to AUS expansion Array"
						}
					}
					

					IF = {
						limit = {
							SLV = {
								capital_scope = {
									is_in_array = {
										array = AUS.expansion_targets
										value = THIS
									}
								}
							}
							AUS = {
								has_completed_focus = AUS_reclaiming_yugoslavian_territories
							}
						}

						YUG = {
							capital_scope = {
								remove_from_array = {
									array = AUS.expansion_targets
									value = THIS
								}

								set_state_flag = AUS_no_longer_expansion_target
							}
						}
					}
				}
			}
		}
	}
	
	focus = {
		id = YUG_safeguard_bosnia
		icon = GFX_focus_YUG_safeguard_bosnia
		prerequisite = { focus = YUG_united_autonomous_croatia focus = YUG_devolved_croatia }
		mutually_exclusive = { focus = YUG_divide_bosnia }
		x = 0
		y = 1
		relative_position_id = YUG_devolved_croatia

		cost = 10

		ai_will_do = {
			factor = 40
		}

		available = {
			controls_state = 104
			is_subject = no
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_MANPOWER FOCUS_FILTER_STABILITY }
		completion_reward = {
		
			#tooltip
			effect_tooltip ={
				release_puppet = BOS
				BOS = {
					custom_effect_tooltip = create_three_units_tt
				}
			}
			
			hidden_effect = {
				if = {
					limit = { BOS = { exists = no } }
					release_puppet = BOS 
					set_autonomy = { target = BOS autonomy_state = autonomy_integrated_puppet }
					BOS = { save_event_target_as = released_nation_target }
				}
				else = {
					create_dynamic_country = {
						original_tag = BOS
						
						save_event_target_as = released_nation_target
						PREV = {
							every_owned_state = {
								limit = { is_core_of = BOS }
								PREV.PREV = { transfer_state = PREV }
							}
						}
						PREV = {
							puppet = PREV
							set_autonomy = { target = PREV autonomy_state = autonomy_integrated_puppet }
						}
						set_country_flag = yug_bosnia_flag
					}
				}
				event_target:released_nation_target = {
					division_template = {
						name = "Bosnian Division"
						priority = 1
						division_names_group = YUG_INF_01
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
				
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
				
							infantry = { x = 2 y = 0 }
							infantry = { x = 2 y = 1 }
						}
						support = {
							engineer = { x = 0 y = 0 }
						}
					}
					random_owned_controlled_state = {
						limit = { PREV = { has_full_control_of_state = PREV } }
						create_unit = {
							division = "name = \"Bosnian Division\" division_template = \"Bosnian Division\" start_experience_factor = 0.9" 
							owner = PREV
						}
					}
					random_owned_controlled_state = {
						limit = { PREV = { has_full_control_of_state = PREV } }
						create_unit = {
							division = "name = \"Bosnian Division\" division_template = \"Bosnian Division\" start_experience_factor = 0.9" 
							owner = PREV
						}
					}
					random_owned_controlled_state = {
						limit = { PREV = { has_full_control_of_state = PREV } }
						create_unit = {
							division = "name = \"Bosnian Division\" division_template = \"Bosnian Division\" start_experience_factor = 0.9" 
							owner = PREV
						}
					}
				}
			}
		}
	}
	
	focus = {
		id = YUG_divide_bosnia
		icon = GFX_focus_YUG_divide_bosnia
		prerequisite = { focus = YUG_united_autonomous_croatia focus = YUG_devolved_croatia }
		mutually_exclusive = { focus = YUG_safeguard_bosnia }
		x = 0
		y = 1
		relative_position_id = YUG_united_autonomous_croatia

		cost = 10

		ai_will_do = {
			factor = 40
		}

		available = {
			controls_state = 104
			controls_state = 804
			is_subject = no
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_MANPOWER FOCUS_FILTER_STABILITY }
		completion_reward = {
			release_puppet = HRZ 
			set_autonomy = { target = HRZ autonomy_state = autonomy_integrated_puppet }
			HRZ = { custom_effect_tooltip = create_one_units_tt }
			
			effect_tooltip ={
				release_puppet = BOS
				BOS = {
					set_cosmetic_tag = BOS_without_HRZ
					custom_effect_tooltip = create_one_units_tt
				}
			}
			
			hidden_effect = {
				HRZ = { save_event_target_as = released_nation_target }
				event_target:released_nation_target = {
					division_template = {
						name = "Yugoslavian Division"
						priority = 1
						division_names_group = YUG_INF_01
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
				
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
				
							infantry = { x = 2 y = 0 }
							infantry = { x = 2 y = 1 }
						}
						support = {
							engineer = { x = 0 y = 0 }
						}
					}
					random_owned_controlled_state = {
						limit = { PREV = { has_full_control_of_state = PREV } }
						create_unit = {
							division = "name = \"Herzegovinan Division\" division_template = \"Yugoslavian Division\" start_experience_factor = 0.9" 
							owner = PREV
						}
					}
				}
				if = {
					limit = { BOS = { exists = no } }
					release_puppet = BOS 
					set_autonomy = { target = BOS autonomy_state = autonomy_integrated_puppet }
					BOS = { save_event_target_as = released_nation_target }
				}
				else = {
					create_dynamic_country = {
						original_tag = BOS
						
						save_event_target_as = released_nation_target
						PREV = {
							every_owned_state = {
								limit = { is_core_of = BOS }
								PREV.PREV = { transfer_state = PREV }
							}
						}
						PREV = {
							puppet = PREV
							set_autonomy = { target = PREV autonomy_state = autonomy_integrated_puppet }
						}
					}
				}
				event_target:released_nation_target = {
					set_cosmetic_tag = BOS_without_HRZ
					division_template = {
						name = "Yugoslavian Division"
						priority = 1
						division_names_group = YUG_INF_01
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
				
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
				
							infantry = { x = 2 y = 0 }
							infantry = { x = 2 y = 1 }
						}
						support = {
							engineer = { x = 0 y = 0 }
						}
					}
					random_owned_controlled_state = {
						limit = { PREV = { has_full_control_of_state = PREV } }
						create_unit = {
							division = "name = \"Bosnian Division\" division_template = \"Yugoslavian Division\" start_experience_factor = 0.9" 
							owner = PREV
						}
					}
				}
			}
		}
	}
	
	focus = {
		id = YUG_dissolve_serbia
		icon = GFX_focus_YUG_dissolve_serbia
		prerequisite = { focus = YUG_limited_self_government }
		x = 2
		y = 2
		relative_position_id = YUG_limited_self_government

		cost = 10

		ai_will_do = {
			factor = 40
		}

		available = {
			OR = {
				controls_state = 108
				controls_state = 106
				controls_state = 970
			}
			is_subject = no
		}

		bypass = {
			NOT = { controls_state = 108 }
			NOT = { controls_state = 106 }
			NOT = { controls_state = 970 }
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_MANPOWER }
		completion_reward = {
			remove_ideas = YUG_idea_macedonian_opposition
			remove_ideas = YUG_idea_serbian_general_staff
			release_puppet = MAC
			MAC = {
				custom_effect_tooltip = create_two_units_tt
			}
			hidden_effect = {
				MAC = { save_event_target_as = released_nation_target }
				event_target:released_nation_target = {
					division_template = {
						name = "Yugoslavian Division"
						priority = 1
						division_names_group = YUG_INF_01
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
				
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
				
							infantry = { x = 2 y = 0 }
							infantry = { x = 2 y = 1 }
						}
						support = {
							engineer = { x = 0 y = 0 }
						}
					}
					random_owned_controlled_state = {
						limit = { PREV = { has_full_control_of_state = PREV } }
						create_unit = {
							division = "name = \"Macedonian Division\" division_template = \"Yugoslavian Division\" start_experience_factor = 0.9" 
							owner = PREV
						}
					}
					random_owned_controlled_state = {
						limit = { PREV = { has_full_control_of_state = PREV } }
						create_unit = {
							division = "name = \"Macedonian Division\" division_template = \"Yugoslavian Division\" start_experience_factor = 0.9" 
							owner = PREV
						}
					}
				}
			}
			release_puppet = KOS 
			KOS = {
				custom_effect_tooltip = create_one_units_tt
			}
			hidden_effect = {
				KOS = { save_event_target_as = released_nation_target }
				event_target:released_nation_target = {
					division_template = {
						name = "Yugoslavian Division"
						priority = 1
						division_names_group = YUG_INF_01
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
				
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
				
							infantry = { x = 2 y = 0 }
							infantry = { x = 2 y = 1 }
						}
						support = {
							engineer = { x = 0 y = 0 }
						}
					}
					random_owned_controlled_state = {
						limit = { PREV = { has_full_control_of_state = PREV } }
						create_unit = {
							division = "name = \"Kosovan Division\" division_template = \"Yugoslavian Division\" start_experience_factor = 0.9" 
							owner = PREV
						}
					}
				}
			}
			release_puppet = MNT
			MNT = {
				custom_effect_tooltip = create_one_units_tt
			}
			hidden_effect = {
				MNT = { save_event_target_as = released_nation_target }
				event_target:released_nation_target = {
					division_template = {
						name = "Yugoslavian Division"
						priority = 1
						division_names_group = YUG_INF_01
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
				
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
				
							infantry = { x = 2 y = 0 }
							infantry = { x = 2 y = 1 }
						}
						support = {
							engineer = { x = 0 y = 0 }
						}
					}
					random_owned_controlled_state = {
						limit = { PREV = { has_full_control_of_state = PREV } }
						create_unit = {
							division = "name = \"Montenegrin Division\" division_template = \"Yugoslavian Division\" start_experience_factor = 0.9" 
							owner = PREV
						}
					}
				}
			}
			set_autonomy = { target = MAC autonomy_state = autonomy_integrated_puppet }
			set_autonomy = { target = KOS autonomy_state = autonomy_integrated_puppet }
			set_autonomy = { target = MNT autonomy_state = autonomy_integrated_puppet }
			
		}
	}
	
	focus = {
		id = YUG_banat_for_support
		icon = GFX_focus_generic_concessions
		prerequisite = { focus = YUG_dissolve_serbia }
		prerequisite = { focus = YUG_safeguard_bosnia focus = YUG_divide_bosnia }
		mutually_exclusive = { focus = YUG_autonomous_transylvania focus = YUG_fortify_banat }
		x = 0
		y = 1
		relative_position_id = YUG_safeguard_bosnia

		cost = 5

		ai_will_do = {
			factor = 20
		}

		available = {
			OR = {
				controls_state = 764
				controls_state = 45
			}
			is_subject = no
		}

		bypass = {
			NOT = { controls_state = 764 }
			NOT = { controls_state = 45 }
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			if = {
				limit = {
					controls_state = 764
				}
				ROM = {
					transfer_state = 764

					add_opinion_modifier = { 
						target = ROOT
						modifier = huge_increase
					}
				
					diplomatic_relation = {
						country = YUG
						relation = non_aggression_pact
						active = yes
					}
				}
				764 = {
					remove_core_of = ROOT
					add_core_of = ROM
				}
			}
			if = {
				limit = {
					controls_state = 45
				}
				HUN = {
					transfer_state = 45
					
					add_opinion_modifier = { 
						target = ROOT
						modifier = huge_increase
					}
					diplomatic_relation = {
						country = YUG
						relation = non_aggression_pact
						active = yes
					}
				}
				45 = {
					remove_core_of = ROOT
					add_core_of = HUN
				}
			}
			hidden_effect = { 
				set_cosmetic_tag = SER
				every_state = {
					limit = {
						is_core_of = YUG
						NOT = { is_core_of = SER }
					}
					remove_core_of = YUG
				}
				every_state = {
					limit = {
						is_core_of = SER
					}
					remove_core_of = SER
				}
			}
		}
	}
	
	focus = {
		id = YUG_autonomous_transylvania
		icon = GFX_focus_YUG_autonomous_transylvania
		prerequisite = { focus = YUG_dissolve_serbia }
		prerequisite = { focus = YUG_safeguard_bosnia focus = YUG_divide_bosnia }
		mutually_exclusive = { focus = YUG_banat_for_support focus = YUG_fortify_banat }
		x = 2
		y = 1
		relative_position_id = YUG_safeguard_bosnia

		cost = 5

		ai_will_do = {
			factor = 40
		}

		available = {
			OR = {
				controls_state = 764
				controls_state = 45
			}
			is_subject = no
		}

		bypass = {
			NOT = { controls_state = 764 }
			NOT = { controls_state = 45 }
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_MANPOWER }
		completion_reward = {
			if = {
				limit = {
					controls_state = 764
				}
				custom_effect_tooltip = release_transylvania_tt
				custom_effect_tooltip = transylvania_create_one_units_tt
			}
			if = {
				limit = {
					controls_state = 45
				}
				custom_effect_tooltip = release_vojvodina_tt
				custom_effect_tooltip = vojvodina_create_one_units_tt
			}
			
			hidden_effect = {
				if = {
					limit = {
						controls_state = 764
					}
					hidden_effect = {
					764 = { add_core_of = TRA }
					if = {
						limit = { TRA = { exists = no } }
						release_puppet = TRA 
						set_autonomy = { target = TRA autonomy_state = autonomy_integrated_puppet }
						TRA = { save_event_target_as = released_nation_target }
					}
					else = {
						create_dynamic_country = {
							original_tag = TRA
							save_event_target_as = released_nation_target
							PREV = {
								every_owned_state = {
									limit = { is_core_of = TRA }
									PREV.PREV = { transfer_state = PREV }
								}
							}
							PREV = {
								puppet = PREV
								set_autonomy = { target = PREV autonomy_state = autonomy_integrated_puppet }
							}
							set_country_flag = yug_transylvania_flag
						}
					}
					event_target:released_nation_target = {
							82 = {
								add_core_of = PREV
							}
							83 = {
								add_core_of = PREV
							}
							84 = {
								add_core_of = PREV
							}
							76 = {
								add_core_of = PREV
							}
							division_template = {
								name = "Yugoslavian Division"
								priority = 1
								division_names_group = ROM_INF_01
								regiments = {
									infantry = { x = 0 y = 0 }
									infantry = { x = 0 y = 1 }
									infantry = { x = 0 y = 2 }
						
									infantry = { x = 1 y = 0 }
									infantry = { x = 1 y = 1 }
									infantry = { x = 1 y = 2 }
						
									infantry = { x = 2 y = 0 }
									infantry = { x = 2 y = 1 }
								}
								support = {
									engineer = { x = 0 y = 0 }
								}
							}
							random_owned_controlled_state = {
								limit = { PREV = { has_full_control_of_state = PREV } }
								create_unit = {
									division = "name = \"Transylvanian Division\" division_template = \"Yugoslavian Division\" start_experience_factor = 0.9" 
									owner = PREV
								}
							}
							set_party_name = { 
								ideology = neutrality 
								long_name = neutrality 
								name = neutrality 
							}
							set_party_name = { 
								ideology = fascism 
								long_name = transylvania_fascism_party_long 
								name = transylvania_fascism_party 
							}
							set_party_name = { 
								ideology = democratic 
								long_name = democratic 
								name = democratic 
							}
							set_party_name = { 
								ideology = communism 
								long_name = communism 
								name = communism 
							}
						}
					}
				}
				if = {
					limit = {
						controls_state = 45
					}
					create_dynamic_country = {
						original_tag = HUN
						
						45 = {
							add_core_of = PREV
						}
						every_state = {
							limit = {
								is_core_of = HUN
								NOT = { is_controlled_by = YUG }
							}
							remove_core_of = PREV
						}
						transfer_state = 45
						set_cosmetic_tag = vojvodina
						PREV = {
							puppet = PREV
							set_autonomy = { target = PREV autonomy_state = autonomy_integrated_puppet }
						}
						division_template = {
							name = "Yugoslavian Division"
							priority = 1
							division_names_group = HUN_INF_01
							regiments = {
								infantry = { x = 0 y = 0 }
								infantry = { x = 0 y = 1 }
								infantry = { x = 0 y = 2 }
					
								infantry = { x = 1 y = 0 }
								infantry = { x = 1 y = 1 }
								infantry = { x = 1 y = 2 }
					
								infantry = { x = 2 y = 0 }
								infantry = { x = 2 y = 1 }
							}
							support = {
								engineer = { x = 0 y = 0 }
							}
						}
						random_owned_controlled_state = {
							limit = { PREV = { has_full_control_of_state = PREV } }
							create_unit = {
								division = "name = \"Vojvodinian Division\" division_template = \"Yugoslavian Division\" start_experience_factor = 0.9" 
								owner = PREV
							}
						}
						set_party_name = { 
							ideology = neutrality 
							long_name = neutrality 
							name = neutrality 
						}
						set_party_name = { 
							ideology = fascism 
							long_name = fascism 
							name = fascism 
						}
						set_party_name = { 
							ideology = democratic 
							long_name = democratic 
							name = democratic 
						}
						set_party_name = { 
							ideology = communism 
							long_name = communism 
							name = communism 
						}
					}
				}
				set_cosmetic_tag = SER
				every_state = {
					limit = {
						is_core_of = YUG
						NOT = { is_core_of = SER }
					}
					remove_core_of = YUG
				}
				45 = {
					remove_core_of = YUG
				}
				every_state = {
					limit = {
						is_core_of = SER
					}
					remove_core_of = SER
				}
			}
		}
	}
	
	focus = {
		id = YUG_fortify_banat
		icon = GFX_goal_generic_fortify_city
		prerequisite = { focus = YUG_dissolve_serbia }
		prerequisite = { focus = YUG_safeguard_bosnia focus = YUG_divide_bosnia }
		mutually_exclusive = { focus = YUG_autonomous_transylvania focus = YUG_banat_for_support }
		x = -2
		y = 1
		relative_position_id = YUG_safeguard_bosnia

		cost = 5

		ai_will_do = {
			factor = 10
		}

		available = {
			OR = {
				controls_state = 764
				controls_state = 45
			}
		}

		bypass = {
			NOT = { controls_state = 764 }
			NOT = { controls_state = 45 }
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			if = {
				limit = {
					controls_state = 764
				}
				764 = {
					add_building_construction = {
						type = bunker
						level = 3
						instant_build = yes
						province = {
							all_provinces = yes
							limit_to_border = yes
						}
					}
				}
			}
			if = {
				limit = {
					controls_state = 45
				}
				45 = {
					add_building_construction = {
						type = bunker
						level = 3
						instant_build = yes
						province = {
							all_provinces = yes
							limit_to_border = yes
						}
					}
				}
			}
			hidden_effect = { 
				set_cosmetic_tag = SER
				every_state = {
					limit = {
						is_core_of = YUG
						NOT = { is_core_of = SER }
					}
					remove_core_of = YUG
				}
				every_state = {
					limit = {
						is_core_of = SER
					}
					remove_core_of = SER
				}
			}
		}
	}
	
	##############################
	##### CRUSH NATIONALISM ######
	##############################
	
	focus = {
		id = YUG_evolution
		icon = GFX_goal_anschluss
		prerequisite = { focus = YUG_attract_allied_capital focus = YUG_attract_axis_capital }
		mutually_exclusive = { focus = YUG_limited_self_government }
		x = 0
		y = 1
		relative_position_id = YUG_attract_axis_capital

		cost = 10

		ai_will_do = {
			factor = 40
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_POLITICAL }

		completion_reward = {
			add_stability = -0.10
			every_owned_state = {
				limit = {
					is_core_of = SER
				}
				add_extra_state_shared_building_slots = 1
			}
		}
	}

	focus = {
		id = YUG_crush_the_ustasa
		icon = GFX_goal_generic_political_pressure
		prerequisite = { focus = YUG_evolution }
		mutually_exclusive = { focus = YUG_establish_the_banovina_of_croatia }
		x = -1
		y = 1
		relative_position_id = YUG_evolution

		cost = 5

		ai_will_do = {
			factor = 60
		}

		available = {
			ITA = {
				NOT = { has_war_with = ROOT }
				exists = yes
				has_capitulated = no
			}
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_POLITICAL }

		complete_tooltip = {

		}

		completion_reward = {
			activate_mission = YUG_ustasa_uprising
			activate_mission = YUG_ustasa_crushed_mission
		}
	}

	focus = {
		id = YUG_establish_the_banovina_of_croatia
		icon = GFX_focus_YUG_banovina_of_croatia
		prerequisite = { focus = YUG_evolution }
		mutually_exclusive = { focus = YUG_crush_the_ustasa }
		x = 1
		y = 1
		relative_position_id = YUG_evolution

		cost = 10

		ai_will_do = {
			factor = 40
		}

		available = {
			controls_state = 109
			controls_state = 103
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY }

		completion_reward = {
			remove_ideas = YUG_idea_croatian_opposition
			add_timed_idea = {
				idea = YUG_idea_croats_suppressed
				days = 1250
			}
		}
	}

	focus = {
		id = YUG_ban_slovene_nationalist_parties
		icon = GFX_focus_generic_support_the_left_right
		prerequisite = { focus = YUG_crush_the_ustasa focus = YUG_establish_the_banovina_of_croatia }
		mutually_exclusive = { focus = YUG_slovenia_for_support }
		x = 0
		y = 1
		relative_position_id = YUG_establish_the_banovina_of_croatia

		cost = 10

		ai_will_do = {
			factor = 40
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_INDUSTRY }

		complete_tooltip = {

		}

		completion_reward = {
			remove_ideas = YUG_idea_slovene_nationalism
			add_timed_idea = {
				idea = YUG_idea_slovene_nationalism_2
				days = 1060
			}
			ITA = {
				add_opinion_modifier = { 
						target = ROOT
						modifier = small_increase
				}
			}
		}
	}

	focus = {
		id = YUG_slovenia_for_support
		icon = GFX_focus_chi_mission_to_germany
		prerequisite = { focus = YUG_crush_the_ustasa focus = YUG_establish_the_banovina_of_croatia }
		mutually_exclusive = { focus = YUG_ban_slovene_nationalist_parties }
		x = -2
		y = 1
		relative_position_id = YUG_establish_the_banovina_of_croatia

		cost = 10

		ai_will_do = {
			factor = 40
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_INDUSTRY }

		complete_tooltip = {

		}

		completion_reward = {
			remove_ideas = YUG_idea_slovene_nationalism
			if = { #if Italy has made a puppet of Slovenia, it should go to them instead
				limit = {
					any_other_country = {
						is_subject_of = ITA
						102 = {
							is_core_of = PREV
						}
					}
				}
				random_other_country = {
					limit = {
						is_subject_of = ITA
						102 = {
							is_core_of = PREV
						}
					}
					transfer_state = 102
				}
			}
			else = {
				ITA = {
					transfer_state = 102
				}
			}

			if = { #Same stuff but for the new state of Ljubljana (BBA)
				limit = {
					any_other_country = {
						is_subject_of = ITA
						853 = {
							is_core_of = PREV
						}
					}
				}
				random_other_country = {
					limit = {
						is_subject_of = ITA
						853 = {
							is_core_of = PREV
						}
					}
					transfer_state = 853
				}
			}
			else = {
				ITA = {
					transfer_state = 853
				}
			}
			ITA = {
				add_opinion_modifier = { 
					target = ROOT
					modifier = YUG_gave_away_slovenia
				}
			}
			hidden_effect = {
				add_opinion_modifier = { 
					target = ITA
					modifier = YUG_gave_away_slovenia
				}
			}
			102 = {
				remove_core_of = ROOT
			}
			853 = {
				remove_core_of = ROOT
			}
		}
	}
	
	focus = {
		id = YUG_concessions_for_macedonians
		icon = GFX_focus_generic_concessions
		prerequisite = { focus = YUG_slovenia_for_support focus = YUG_ban_slovene_nationalist_parties }
		mutually_exclusive = { focus = YUG_surrender_macedonia }
		x = 0
		y = 1
		relative_position_id = YUG_ban_slovene_nationalist_parties

		cost = 10

		ai_will_do = {
			factor = 40
		}

		available = {
			BUL = {
				NOT = { has_war_with = ROOT }
				exists = yes
				has_capitulated = no
			}
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_POLITICAL }

		completion_reward = {
			remove_ideas = YUG_idea_macedonian_opposition
			add_timed_idea = {
				idea = YUG_idea_macedonian_opposition_1
				days = 1060
			}
		}
	}
	
	focus = {
		id = YUG_surrender_macedonia
		icon = GFX_focus_CZE_german_puppet
		prerequisite = { focus = YUG_slovenia_for_support focus = YUG_ban_slovene_nationalist_parties }
		mutually_exclusive = { focus = YUG_concessions_for_macedonians }
		x = -2
		y = 1
		relative_position_id = YUG_ban_slovene_nationalist_parties

		cost = 10

		ai_will_do = {
			factor = 40
			modifier = { #If Bulgaria is really so much committed into getting Macedonian support, then we might just surrender Macedonia
				factor = 5
				controls_state = 106
				106 = {
					has_dynamic_modifier = { modifier = widespread_bulgarian_sentiment_01 }
				}
			}
		}

		available = {
			BUL = {
				NOT = { has_war_with = ROOT }
				exists = yes
				has_capitulated = no
			}
			owns_state = 106
			owns_state = 803
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_POLITICAL }

		completion_reward = {
			remove_ideas = YUG_idea_macedonian_opposition
			BUL = {
				add_opinion_modifier = { 
					target = ROOT
					modifier = huge_increase
				}
				transfer_state = 106
				transfer_state = 803
			}
			106 = {
				remove_core_of = ROOT
			}
		}
	}

	focus = {
		id = YUG_invite_german_military_mission
		icon = GFX_focus_generic_military_mission
		prerequisite = { focus = YUG_concessions_for_macedonians focus = YUG_surrender_macedonia focus = YUG_banat_for_support focus = YUG_autonomous_transylvania focus = YUG_fortify_banat }
		x = 0
		y = 1
		relative_position_id = YUG_surrender_macedonia

		cost = 5

		ai_will_do = {
			factor = 50
		}

		available = {
			GER = {
				NOT = { has_war_with = ROOT }
				exists = yes
				has_capitulated = no
			}
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_POLITICAL }

		complete_tooltip = {

		}

		completion_reward = {
			IF = {
				limit = {
					has_idea = anti_german_military
				}
				remove_ideas = anti_german_military
				custom_effect_tooltip = generic_skip_one_line_tt
			}
			add_tech_bonus = {
				name = YUG_german_military_mission
				bonus = 1.0
				uses = 1
				technology = basic_medium_tank
				technology = improved_medium_tank
				technology = advanced_medium_tank
				technology = mechanised_infantry
			}
		}
	}

	focus = {
		id = YUG_join_axis
		icon = GFX_goal_support_fascism
		prerequisite = { focus = YUG_concessions_for_macedonians focus = YUG_surrender_macedonia focus = YUG_banat_for_support focus = YUG_autonomous_transylvania focus = YUG_fortify_banat }
		mutually_exclusive = { focus = YUG_end_the_regency }
		x = 0
		y = 1
		relative_position_id = YUG_concessions_for_macedonians

		cost = 10

		ai_will_do = {
			factor = 100
		}

		available = {
			OR = {
				GER = {
					NOT = { has_war_with = ROOT }
					has_government = fascism
					has_capitulated = no
					is_faction_leader = yes
				}
				ITA = {
					NOT = { has_war_with = ROOT }
					has_capitulated = no
					has_government = fascism
				}
			}
			NOT = {
				any_other_country = {
					is_in_faction_with = GER
					has_war_with = YUG
				}
			}
		}

		bypass = {
			OR = {
				is_in_faction_with = GER
				is_in_faction_with = ITA
			}
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_POLITICAL }

		completion_reward = {
			hidden_effect = {
				if = {
					limit = {
						GER = {
							exists = yes
							has_capitulated = no
							has_government = fascism
							is_faction_leader = yes
						}
					}
					GER = { 
						country_event = {
							id = DOD_yugoslavia.70 
							hours = 6
						}	
					}
				}
				else_if = {
					limit = {
						ITA = {
							exists = yes
							has_capitulated = no
							has_government = fascism
						}
					}
					ITA = {
						country_event = {
							id = DOD_yugoslavia.70 
							hours = 6
						}	
					}	
				}
				#else = {
				#	get_best_alliance_match_fascism_effect = yes
				#	var:best_leader = {
				#		country_event = DOD_yugoslavia.70
				#	}
				#}
			}
			effect_tooltip = {
				if = {
					limit = {
						GER = {
							exists = yes
							has_capitulated = no
							has_government = fascism
							is_faction_leader = yes
						}
					}
					GER = {
						add_opinion_modifier = { target = YUG modifier = tripartite_pact_opinion }
						reverse_add_opinion_modifier = { target = YUG modifier = tripartite_pact_opinion }
					}
				}
				else = {
					ITA = {
						add_opinion_modifier = { target = YUG modifier = tripartite_pact_opinion }
						reverse_add_opinion_modifier = { target = YUG modifier = tripartite_pact_opinion }
					}
				}
			}
			YUG_prince_paul = {
				add_country_leader_role = {
					country_leader = {
						expire = "1965.1.1"
						ideology = fascism_ideology
						traits = { collaborator_king }
					}
					promote_leader = yes
				}
			}
		}
	}

	focus = {
		id = YUG_zara_for_axis
		icon = GFX_goal_generic_attack_allies
		prerequisite = { focus = YUG_join_axis }
		mutually_exclusive = { focus = YUG_surrender_italian_claims }
		x = 0
		y = 1
		relative_position_id = YUG_join_axis

		cost = 10

		ai_will_do = {
			factor = 100
		}

		available = {
			ITA = {
				NOT = { has_war_with = ROOT }
				if = {
					limit = {
						has_dlc = "By Blood Alone"
					}
					ITA_is_kinda_fascist = yes
				}
				else = { 
					has_government = fascism
				}
				has_capitulated = no
				controls_state = 163
				is_in_faction = yes
			}
			NOT = { has_completed_focus = YUG_end_the_regency }
		}

		bypass = {
			OR = {
				is_in_faction_with = ITA
				is_subject_of = ITA
				controls_state = 163
			}
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_POLITICAL }

		completion_reward = {
			ITA = { country_event = { id = DOD_yugoslavia.80 days = 5 } }
		}
	}

	focus = {
		id = YUG_surrender_italian_claims
		icon = GFX_goal_support_fascism
		prerequisite = { focus = YUG_join_axis }
		mutually_exclusive = { focus = YUG_zara_for_axis }
		x = -2
		y = 1
		relative_position_id = YUG_join_axis

		cost = 10

		ai_will_do = {
			factor = 100
		}

		available = {
			OR = {
				GER = {
					NOT = { has_war_with = ROOT }
					has_government = fascism
					has_capitulated = no
					is_faction_leader = yes
				}
				any_other_country = {
					is_major = yes
					has_government = fascism
					is_faction_leader = yes
				}
			}
			NOT = {
				any_other_country = {
					is_in_faction_with = GER
					has_war_with = YUG
				}
			}
			NOT = { has_completed_focus = YUG_end_the_regency }
		}

		bypass = {
			is_in_faction_with = GER
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_POLITICAL }

		completion_reward = {
			163 = { remove_core_of = ROOT }
			736 = { remove_core_of = ROOT }
			852 = { remove_core_of = ROOT }
			if = {
				limit = {
					GER = {
						exists = yes
						has_capitulated = no
						has_government = fascism
						is_faction_leader = yes
					}
				}
				GER = { country_event = generic.2 }
			}
			else = {
				get_best_alliance_match_fascism_effect = yes
				var:best_leader = {
					country_event = generic.2
				}
			}
		}
	}

	focus = {
		id = YUG_claim_macedonia
		icon = GFX_goal_generic_territory_or_war
		prerequisite = { focus = YUG_zara_for_axis focus = YUG_surrender_italian_claims }
		x = -2
		y = 1
		relative_position_id = YUG_zara_for_axis

		cost = 10

		ai_will_do = {
			factor = 50
		}

		available = {
			OR = {
				owns_state = 106
				any_country = {
					is_subject_of = ROOT
					owns_state = 106
				}
				MAC = {
					is_in_faction_with = ROOT
				}
			}
			NOT = { has_completed_focus = YUG_end_the_regency }
		}

		bypass = {
			NOT = {
				owns_state = 106
				any_country = {
					is_subject_of = ROOT
					owns_state = 106
				}
				MAC = {
					is_in_faction_with = ROOT
				}
			}
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_ANNEXATION }

		completion_reward = {
			if = {
				limit = {
					owns_state = 106
				}
				add_state_core = 731
			}
			else_if = {
				limit = {
					any_country = {
						is_subject_of = ROOT
						owns_state = 106
					}
				}
				random_country = {
					limit = {
						is_subject_of = ROOT
						owns_state = 106
					}
					add_state_core = 731
				}
			}
			else = {
				MAC = {
					add_state_core = 731
				}
			}
			news_event = { id = news.327 }
		}
	}

	
	focus = {
		id = YUG_greater_yugoslavia
		icon = GFX_goal_generic_occupy_states_ongoing_war
		prerequisite = { focus = YUG_claim_macedonia }
		x = 0
		y = 1
		relative_position_id = YUG_claim_macedonia

		cost = 10

		ai_will_do = {
			factor = 60
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_ANNEXATION }

		complete_tooltip = {

		}

		completion_reward = {
			BUL = {
				every_owned_state = {
					limit = { is_core_of = BUL }
					add_claim_by = YUG
				}
			}
			news_event = { id = news.325 }
		}
	}

	focus = {
		id = YUG_invite_italian_naval_experts
		icon = GFX_goal_generic_occupy_states_coastal
		prerequisite = { focus = YUG_zara_for_axis focus = YUG_surrender_italian_claims }
		x = 0
		y = 1
		relative_position_id = YUG_zara_for_axis

		cost = 10

		ai_will_do = {
			factor = 100
		}

		available = {
			ITA = {
				is_in_faction_with = ROOT
				NOT = { has_war_with = ROOT }
				exists = yes
				has_capitulated = no
			}
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		completion_reward = {
			add_to_tech_sharing_group = YUG_naval_research_group
			ITA = {
				add_to_tech_sharing_group = YUG_naval_research_group
			}
			navy_experience = 50
		}
	}

	focus = {
		id = YUG_all_yugoslavian_regiments
		icon = GFX_goal_rhineland
		prerequisite = { focus = YUG_greater_yugoslavia }
		x = 0
		y = 1
		relative_position_id = YUG_greater_yugoslavia

		cost = 10

		ai_will_do = {
			factor = 80
		}

		available = {
		
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_MANPOWER FOCUS_FILTER_MILITARY_CHARACTER }

		complete_tooltip = {

		}

		completion_reward = {

			add_ideas = YUG_idea_all_yugoslavian_regiments

			IF = {
				limit = {
					NOT = {
						OR = {
							has_global_flag = SOV_flug_and_shteifon_went_to_germany_flag
							has_global_flag = SOV_flug_and_shteifon_went_to_russia_flag
						}
					}
				}
				custom_effect_tooltip = generic_skip_one_line_tt
				show_unit_leaders_tooltip = SOV_vasily_flug
				show_unit_leaders_tooltip = SOV_boris_shteifon

				hidden_effect = {
					set_global_flag = SOV_flug_and_shteifon_decided_to_fight_for_yugoslavia_flag
					set_country_flag = SOV_flug_and_shteifon_are_ready_to_serve_flag
				}
			}
			
		}
	}

	

	
	focus = {
		id = YUG_end_the_regency
		icon = GFX_focus_rom_royal_dictatorship
		prerequisite = { focus = YUG_concessions_for_macedonians focus = YUG_surrender_macedonia focus = YUG_banat_for_support focus = YUG_autonomous_transylvania focus = YUG_fortify_banat }
		mutually_exclusive = { focus = YUG_join_axis }
		x = 0
		y = 1
		relative_position_id = YUG_banat_for_support

		cost = 10

		ai_will_do = {
			factor = 40
		}

		available = {
			date > 1938.09.06
		}

		bypass = {
			has_country_leader = {
				character = YUG_peter_ii
				ruling_only = yes
			}
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			retire_country_leader = yes
			YUG_peter_ii = {
				promote_character = {ideology = despotism }
				promote_character = {ideology = conservatism }
			}
			if = {
				limit = {
					date > 1941.09.06
				}
				YUG_peter_ii = {
					swap_country_leader_traits = { remove = underage_monarch add = legitimate_heir }
				}
				hidden_effect = { set_country_flag = peter_is_of_age }
			}
		}
	}
	
	focus = {
		id = YUG_coronation
		icon = GFX_goal_support_democracy
		prerequisite = { focus = YUG_end_the_regency focus = YUG_join_axis }
		x = -2
		y = 1
		relative_position_id = YUG_end_the_regency

		cost = 10

		ai_will_do = {
			factor = 40
		}

		available = {
			is_subject = no
			OR = {
				AND = {
					has_country_leader = {
						character = YUG_peter_ii
						ruling_only = yes
					}
					NOT = { has_country_leader_with_trait = underage_monarch }
				}
				AND = {
					NOT = { has_idea = king_peter_1 }
					has_country_leader = {
						character = YUG_prince_paul
						ruling_only = yes
					}
				}
			}
		}

		bypass = {
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			if = {
				limit = {
					OR = {
						has_idea = king_peter_1
						NOT = { has_completed_focus = YUG_western_focus }
					}
				}
				set_party_name = { 
					ideology = neutrality
					name = YUG_kardocevik
					long_name = YUG_kardocevik
				}
			}
			hidden_effect = {
				country_event = { id = DOD_yugoslavia.60 }
			}
			effect_tooltip = { #This is what the actual event does. It's better to give the player a tooltip that tells them what the event does than to just tell them "X event happens"
				if = {
					limit = {
						has_country_leader = {
							character = YUG_prince_paul
							ruling_only = yes
						}
						NOT = { has_idea = king_peter_1 }
						has_completed_focus = YUG_western_focus
					}
					add_country_leader_role = {
						character = YUG_prince_paul
						country_leader = {
							ideology = fascism_ideology
							traits = {
								collaborator_king
							}
						}
						promote_leader = yes
					}
					set_party_name = { 
						ideology = fascism
						name = YUG_kardocevik
						long_name = YUG_kardocevik
					}
					set_party_name = { 
						ideology = neutrality
						name = YUG_peters_loyalists
						long_name = YUG_peters_loyalists
					}
					custom_effect_tooltip = all_subjects_become_fascist_tt
					if = {
						limit = {
							has_government = neutrality
						}
						custom_effect_tooltip = neutral_to_fascist_tt
						set_politics = {
							ruling_party = fascism
						}
					}
				}
				add_stability = 0.1
				add_war_support = 0.2
			}
		}
	}
	
	focus = {
		id = YUG_royal_wedding
		icon = GFX_goal_tfv_strengthen_commonwealth_ties
		prerequisite = { focus = YUG_end_the_regency }
		x = 0
		y = 1
		relative_position_id = YUG_end_the_regency

		cost = 10

		ai_will_do = {
			factor = 40
		}

		available = {
			has_country_leader = {
				character = YUG_peter_ii
				ruling_only = yes
			}
			NOT = { has_country_leader_with_trait = underage_monarch }
		}

		bypass = {
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			country_event = { id = DOD_yugoslavia.50 }
		}
	}

	focus = { #Yugoslavia joining the faction of the country they married
		id = YUG_join_allies
		icon = GFX_goal_generic_major_alliance
		prerequisite = { focus = YUG_royal_wedding }
		prerequisite = { focus = YUG_coronation }
		mutually_exclusive = { focus = YUG_enforced_neutrality }
		x = 0
		y = 1
		relative_position_id = YUG_royal_wedding

		cost = 10 

		ai_will_do = {
			factor = 50
		}

		available = {
			hidden_trigger = {
				OR = {
					event_target:yugoslavia_wedding_partner = {
						NOT = { original_tag = YUG }
						is_in_faction = yes
					}
					AND = {
						hidden_trigger = { event_target:yugoslavia_wedding_partner = { original_tag = YUG } }
						any_other_country = {
							NOT = { has_war_with = ROOT }
							is_faction_leader = yes
							is_major = yes
							has_government = democratic
						}
						
						NOT = {
							any_other_country = {
								is_in_faction_with = ENG
								has_war_with = YUG
							}
						}
					}
				}
			}
		}

		bypass = {
			is_in_faction = yes
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_POLITICAL }

		completion_reward = {
			custom_effect_tooltip = YUG_royal_alliance_tt
			hidden_effect = {
				if = {
					limit = {
						event_target:yugoslavia_wedding_partner = {
							NOT = { original_tag = YUG }
							NOT = { has_war_with = ROOT }
							is_in_faction = yes
						}
					}
					if = {
						limit = {
							event_target:yugoslavia_wedding_partner = { is_faction_leader = yes }
						}
						event_target:yugoslavia_wedding_partner = {
							country_event = generic.2
						}
					}
					else = {
						random_other_country = {
							limit = {
								is_in_faction_with = event_target:yugoslavia_wedding_partner
								is_faction_leader = yes
							}
							country_event = generic.2
						}
					}
				}
				else = {
					if = {
						limit = { 
							ENG = {
								is_faction_leader = yes
								has_government = democratic
								not = { has_war_with = ROOT }
							}
						}
						ENG = { country_event = generic.2 }
					}
					else = {
						get_best_alliance_match_democratic_effect = yes
						var:best_leader = {
							country_event = generic.2
						}
					}
					if = {
						limit = {
							has_idea = YUG_idea_croatian_opposition
						}
						country_event = DOD_yugoslavia.10
					}
				}
			}
		}
	}

	focus = {
		id = YUG_allied_air_combat_school
		icon = GFX_goal_generic_air_doctrine
		prerequisite = { focus = YUG_join_allies }
		x = 0
		y = 1
		relative_position_id = YUG_join_allies

		cost = 10

		ai_will_do = {
			factor = 100
		}

		available = {
			is_in_faction_with = ENG
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		completion_reward = {
			add_to_tech_sharing_group = YUG_air_research_group
			ENG = {
				add_to_tech_sharing_group = YUG_air_research_group
			}
		}
	}
	
	focus = {
		id = YUG_enforced_neutrality
		icon = GFX_goal_generic_defence
		prerequisite = { focus = YUG_royal_wedding }
		prerequisite = { focus = YUG_coronation }
		mutually_exclusive = { focus = YUG_join_allies }
		x = 0
		y = 1
		relative_position_id = YUG_coronation

		cost = 10

		ai_will_do = {
			factor = 40
		}

		available = {
		}

		bypass = {
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			add_ideas = YUG_neutral_foreign_policy
			add_ideas = neutrality_idea
		}
	}
	
	focus = {
		id = YUG_fortress_yugoslavia
		icon = GFX_goal_generic_fortify_city
		prerequisite = { focus = YUG_enforced_neutrality }
		x = 0
		y = 1
		relative_position_id = YUG_enforced_neutrality

		cost = 10

		ai_will_do = {
			factor = 40
		}

		available = {
		}

		bypass = {
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_MANPOWER }
		completion_reward = {
			if = {
				limit = { #Controls both Slovenian states
					controls_state = 102
					controls_state = 853
				}
				102 = {
					add_building_construction = { type = bunker province = 3631 level = 3 instant_build = yes }
					add_building_construction = { type = bunker province = 9596 level = 3 instant_build = yes }
					add_building_construction = { type = bunker province = 596 level = 3 instant_build = yes }
					add_building_construction = { type = bunker province = 665 level = 3 instant_build = yes }
					add_building_construction = { type = bunker province = 6672 level = 3 instant_build = yes }
				}
				853 = {
					add_building_construction = { type = bunker province = 9627 level = 3 instant_build = yes }
				}
				103 = {
					add_building_construction = { type = bunker province = 11564 level = 3 instant_build = yes }
					add_building_construction = { type = bunker province = 11901 level = 3 instant_build = yes }
					add_building_construction = { type = bunker province = 984 level = 3 instant_build = yes }
					add_building_construction = { type = bunker province = 3974 level = 3 instant_build = yes }
					add_building_construction = { type = bunker province = 3924 level = 3 instant_build = yes }
				}
				109 = {
					add_building_construction = { type = bunker province = 11594 level = 3 instant_build = yes }
					add_building_construction = { type = bunker province = 9611 level = 3 instant_build = yes }
					add_building_construction = { type = bunker province = 3627 level = 3 instant_build = yes }
				}
			}
			else_if = {
				limit = {
					controls_state = 853
				}
				853 = {
					add_building_construction = { type = bunker province = 9627 level = 3 instant_build = yes }
				}
				103 = {
					add_building_construction = { type = bunker province = 11564 level = 3 instant_build = yes }
					add_building_construction = { type = bunker province = 11901 level = 3 instant_build = yes }
					add_building_construction = { type = bunker province = 984 level = 3 instant_build = yes }
					add_building_construction = { type = bunker province = 3974 level = 3 instant_build = yes }
					add_building_construction = { type = bunker province = 3924 level = 3 instant_build = yes }
					add_building_construction = { type = bunker province = 3601 level = 3 instant_build = yes }
				}
				109 = {
					add_building_construction = { type = bunker province = 11564 level = 3 instant_build = yes }
					add_building_construction = { type = bunker province = 9611 level = 3 instant_build = yes }
					add_building_construction = { type = bunker province = 3627 level = 3 instant_build = yes }
					add_building_construction = { type = bunker province = 11581 level = 3 instant_build = yes }
					add_building_construction = { type = bunker province = 3592 level = 3 instant_build = yes }
				}
			}
			else = {
				103 = {
					add_building_construction = { type = bunker province = 11564 level = 3 instant_build = yes }
					add_building_construction = { type = bunker province = 11901 level = 3 instant_build = yes }
					add_building_construction = { type = bunker province = 984 level = 3 instant_build = yes }
					add_building_construction = { type = bunker province = 3974 level = 3 instant_build = yes }
					add_building_construction = { type = bunker province = 3924 level = 3 instant_build = yes }
					add_building_construction = { type = bunker province = 3601 level = 3 instant_build = yes }
				}
				109 = {
					add_building_construction = { type = bunker province = 11564 level = 3 instant_build = yes }
					add_building_construction = { type = bunker province = 9611 level = 3 instant_build = yes }
					add_building_construction = { type = bunker province = 3627 level = 3 instant_build = yes }
					add_building_construction = { type = bunker province = 11581 level = 3 instant_build = yes }
					add_building_construction = { type = bunker province = 3592 level = 3 instant_build = yes }
				}
			}
		}
	}
	
	
	
	focus = {
		id = YUG_towards_independence
		icon = GFX_goal_tfv_sever_ties_with_uk
		prerequisite = { focus = YUG_banat_for_support focus = YUG_autonomous_transylvania focus = YUG_fortify_banat }
		mutually_exclusive = { focus = YUG_united_kingdom }
		x = 0
		y = 1
		relative_position_id = YUG_autonomous_transylvania

		cost = 10

		ai_will_do = {
			factor = 40
		}

		available = {
		}

		bypass = {
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			every_other_country = {
				limit = {
					capital_scope = {
						is_on_continent = europe
					}
					NOT = { original_tag = YUG }
					is_subject_of = ROOT
				}
				add_autonomy_score = {
					value = 25
					localization = YUG_towards_independence_mod
				}
				add_opinion_modifier = { 
					target = ROOT
					modifier = huge_increase
				}
			}
		}
	}
	
	focus = {
		id = YUG_defence_army_of_yugoslavia
		icon = GFX_goal_generic_national_unity
		prerequisite = { focus = YUG_towards_independence }
		x = 0
		y = 1
		relative_position_id = YUG_towards_independence

		cost = 10

		ai_will_do = {
			factor = 40
		}

		available = {
		}

		bypass = {
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_MANPOWER }
		completion_reward = {
			division_template = {
				name = "Yugoslavian Defence Army"
				priority = 1
				division_names_group = YUG_INF_01
				regiments = {
					infantry = { x = 0 y = 0 }
					infantry = { x = 0 y = 1 }
					infantry = { x = 0 y = 2 }
		
					infantry = { x = 1 y = 0 }
					infantry = { x = 1 y = 1 }
					infantry = { x = 1 y = 2 }
		
					artillery_brigade = { x = 2 y = 0 }
					artillery_brigade = { x = 2 y = 1 }
				}
				support = {
					engineer = { x = 0 y = 0 }
				}
			}
			set_division_template_lock = {
				division_template = "Yugoslavian Defence Army"
				is_locked = yes
			}
			random_owned_controlled_state = {
				limit = { PREV = { has_full_control_of_state = PREV } }
				create_unit = {
					division = "name = \"Yugoslavian Defence Army\" division_template = \"Yugoslavian Defence Army\" start_experience_factor = 0.9" 
					owner = PREV
				}
			}
			every_other_country = {
				limit = {
					capital_scope = {
						is_on_continent = europe
					}
					NOT = { original_tag = YUG }
					is_subject_of = ROOT
				}
				division_template = {
					name = "Yugoslavian Defence Army"
					priority = 1
					division_names_group = YUG_INF_01
					regiments = {
						infantry = { x = 0 y = 0 }
						infantry = { x = 0 y = 1 }
						infantry = { x = 0 y = 2 }
			
						infantry = { x = 1 y = 0 }
						infantry = { x = 1 y = 1 }
						infantry = { x = 1 y = 2 }
			
						artillery_brigade = { x = 2 y = 0 }
						artillery_brigade = { x = 2 y = 1 }
					}
					support = {
						engineer = { x = 0 y = 0 }
					}
				}
				set_division_template_lock = {
					division_template = "Yugoslavian Defence Army"
					is_locked = yes
				}
				random_owned_controlled_state = {
					limit = { PREV = { has_full_control_of_state = PREV } }
					create_unit = {
						division = "name = \"Yugoslavian Defence Army\" division_template = \"Yugoslavian Defence Army\" start_experience_factor = 0.9" 
						owner = PREV
					}
				}
			}
		}
	}
	
	focus = {
		id = YUG_defence_league
		icon = GFX_goal_generic_alliance
		prerequisite = { focus = YUG_defence_army_of_yugoslavia }
		x = 0
		y = 1
		relative_position_id = YUG_defence_army_of_yugoslavia
		
		cost = 10

		ai_will_do = {
			factor = 40
		}

		available = {
			is_subject = no
		}

		bypass = {
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_MANPOWER }
		completion_reward = {
			set_rule = {
				can_create_factions = yes
			}
			if = {
				limit = {
					is_in_faction = no
				}
				IF = {
					limit = {
						has_dlc = "No Compromise, No Surrender"
					}
					create_faction_from_template = faction_template_yugoslav_defense_league
					add_faction_initiative = 1
				}
				ELSE = {
					create_faction_from_template = faction_template_yugoslav_defense_league
				}
			}
			set_division_template_lock = {
				division_template = "Yugoslavian Defence Army"
				is_locked = no
			}
			random_owned_controlled_state = {
				limit = { PREV = { has_full_control_of_state = PREV } }
				create_unit = {
					division = "name = \"Yugoslavian Defence Army\" division_template = \"Yugoslavian Defence Army\" start_experience_factor = 0.9" 
					owner = PREV
				}
			}
			every_other_country = {
				limit = {
					capital_scope = {
						is_on_continent = europe
					}
					NOT = { original_tag = YUG }
					is_subject_of = ROOT
				}
				PREV = {
					set_autonomy = {
						target = PREV
						autonomy_state = autonomy_free
					}
				}
				if = {
					limit = { PREV = { is_faction_leader = no } }
					random_other_country = {
						limit = {
							is_in_faction_with = PREV.PREV
							is_faction_leader = yes
						}
						add_to_faction = PREV
					}
				}
				else = {
					PREV = { add_to_faction = PREV }
				}
				hidden_effect = {
					add_ai_strategy = {
						type = alliance
						id = ROOT
						value = 200
					}
				}
				set_division_template_lock = {
					division_template = "Yugoslavian Defence Army"
					is_locked = no
				}
				random_owned_controlled_state = {
					limit = { PREV = { has_full_control_of_state = PREV } }
					create_unit = {
						division = "name = \"Yugoslavian Defence Army\" division_template = \"Yugoslavian Defence Army\" start_experience_factor = 0.9" 
						owner = PREV
					}
				}
			}
		}
	}
	
	focus = {
		id = YUG_united_kingdom
		icon = GFX_goal_tfv_strengthen_commonwealth_ties
		prerequisite = { focus = YUG_banat_for_support focus = YUG_autonomous_transylvania focus = YUG_fortify_banat }
		mutually_exclusive = { focus = YUG_towards_independence }
		x = 2
		y = 1
		relative_position_id = YUG_autonomous_transylvania

		cost = 10

		ai_will_do = {
			factor = 40
		}

		available = {
		}

		bypass = {
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			every_other_country = {
				limit = {
					capital_scope = {
						is_on_continent = europe
					}
					NOT = { original_tag = YUG }
					is_subject_of = ROOT
				}
				add_autonomy_score = {
					value = -25
					localization = YUG_towards_independence_mod
				}
				add_opinion_modifier = { 
					target = ROOT
					modifier = medium_decrease
				}
			}
		}
	}
	
	focus = {
		id = YUG_guarantee_religious_liberties
		icon = GFX_goal_generic_neutrality_focus
		prerequisite = { focus = YUG_united_kingdom }
		mutually_exclusive = {  }
		x = 0
		y = 1
		relative_position_id = YUG_united_kingdom

		cost = 10

		ai_will_do = {
			factor = 40
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY }

		completion_reward = {
			add_ideas = YUG_idea_religious_freedoms_guaranteed
		}
	}
	
	focus = {
		id = YUG_reunite_the_kingdom
		icon = GFX_focus_generic_home_defense
		prerequisite = { focus = YUG_guarantee_religious_liberties }
		mutually_exclusive = {  }
		x = 0
		y = 1
		relative_position_id = YUG_guarantee_religious_liberties

		cost = 10

		ai_will_do = {
			factor = 40
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_POLITICAL }

		completion_reward = {
			drop_cosmetic_tag = yes
			every_other_country = {
				limit = {
					OR = {
						original_tag = SER
						original_tag = SLV
						original_tag = CRO
						original_tag = MNT
						original_tag = KOS
						original_tag = BOS
						original_tag = HRZ
						original_tag = MAC
						original_tag = TRA
						original_tag = HUN
						original_tag = BUL
					}
					is_subject_of = ROOT
				}
				every_owned_state = {
					limit = {
						is_core_of = PREV
					}
					add_core_of = PREV.PREV
				}
				PREV = {
					annex_country = {
						target = PREV
						transfer_troops = yes
					}
				}
			}
		}
	}


	############################
	#### RECOGNIZE SOVIET ######
	############################

	focus = {
		id = YUG_recognize_the_soviet_union
		icon = GFX_focus_generic_soviet_politics
		mutually_exclusive = { focus = YUG_western_focus }
		x = 11
		y = 0

		cost = 10

		ai_will_do = {
			factor = 50
		}

		available = {
			SOU = {
				NOT = { has_war_with = ROOT }
				exists = yes
				has_capitulated = no
				has_government = communism
			}
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_POLITICAL }

		completion_reward = {
			SOV = {
				add_opinion_modifier = { 
					target = ROOT
					modifier = medium_increase
				}
			}
			if = {
				limit = { 
					#has_dlc = "Battle for the Bosporus" #TODO
				}
				every_other_country = {
					limit = {
						has_opinion_modifier = BFTB_balkan_pact_ally
					}
					remove_opinion_modifier = {
						target = YUG
						modifier = BFTB_balkan_pact_ally
					}
					hidden_effect = {
						ROOT = {
							remove_opinion_modifier = {
								target = PREV
								modifier = BFTB_balkan_pact_ally
							}
						}
					}
				}
			}
			hidden_effect = { 
				news_event = { id = news.329 days = 3 random = 6 }
			}
		}
	}

	focus = {
		id = YUG_form_peasant_councils
		icon = GFX_goal_generic_demand_territory
		prerequisite = { focus = YUG_recognize_the_soviet_union }
		x = -1
		y = 1
		relative_position_id = YUG_recognize_the_soviet_union

		cost = 10

		ai_will_do = {
			factor = 200
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_POLITICAL }

		completion_reward = {
			add_timed_idea = { idea = YUG_idea_peasant_councils days = 730 }
		}
	}

	focus = {
		id = YUG_mutual_economic_aid
		icon = GFX_goal_generic_soviet_construction
		prerequisite = { focus = YUG_recognize_the_soviet_union }
		x = 1
		y = 1
		relative_position_id = YUG_recognize_the_soviet_union

		cost = 10

		ai_will_do = {
			factor = 200
		}

		available = {
			SOV = {
				NOT = { has_war_with = ROOT }
				exists = yes
				has_capitulated = no
			}
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_INDUSTRY }

		completion_reward = {
			add_timed_idea = { idea = YUG_idea_economic_aid days = 720 }
			SOV = {
				add_timed_idea = { idea = YUG_idea_economic_aid days = 365 }
				add_ai_strategy = {
					type = protect
					id = "YUG"
					value = 100
				}
				add_ai_strategy = {
					type = support
					id = "YUG"
					value = 100
				}
			}
		}
	}

	focus = {
		id = YUG_abolish_the_monarchy
		icon = GFX_goal_tfv_burn_the_royal_portraits
		prerequisite = { focus = YUG_form_peasant_councils }
		prerequisite = { focus = YUG_mutual_economic_aid }
		x = 0
		y = 2
		relative_position_id = YUG_recognize_the_soviet_union

		cost = 10

		ai_will_do = {
			factor = 150
		}

		available = {
			communism > 0.4
			is_subject = no
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_POLITICAL }

		completion_reward = {
			set_politics = {
				ruling_party = communism
				elections_allowed = no
			}
			add_popularity = {
				ideology = neutrality
				popularity = -0.2
			}
			effect_tooltip = {
				swap_ideas = { remove_idea = YUG_idea_peasant_councils add_idea = YUG_idea_empowered_peasant_councils }
			}
			hidden_effect = {
				remove_ideas = { YUG_idea_peasant_councils }
				add_ideas = { YUG_idea_empowered_peasant_councils }
			}
		}
	}

	focus = {
		id = YUG_join_comintern
		icon = GFX_focus_generic_join_comintern
		prerequisite = { focus = YUG_abolish_the_monarchy }
		mutually_exclusive = { focus = YUG_yugoslavian_path_to_communism }
		x = -1
		y = 1
		relative_position_id = YUG_abolish_the_monarchy

		cost = 10

		ai_will_do = {
			factor = 40
		}

		available = {
			is_in_faction = no
			is_subject = no
			ANY_comintern_joinable = yes 
			IF = {
				limit = {
					SOV = { has_government = communism }
				}
				NOT = {
					any_other_country = {
						is_in_faction_with = SOV
						has_war_with = YUG
					}
				}
			}
		}

		bypass = {
			is_in_faction_with = SOV
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_POLITICAL }

		completion_reward = {
			if = {
				limit = {
					SOV = {
						exists = yes
						has_government = communism
						is_faction_leader = yes
					}
				}
				SOV = {
					country_event = generic.2
				}
			}
			else = {
				get_best_alliance_match_communism_effect = yes
				var:best_leader = {
					country_event = generic.2
				}
			}
		}
	}

	focus = {
		id = YUG_yugoslavian_path_to_communism
		icon = GFX_goal_generic_war_with_comintern
		prerequisite = { focus = YUG_abolish_the_monarchy }
		mutually_exclusive = { focus = YUG_join_comintern }
		x = 1
		y = 1
		relative_position_id = YUG_abolish_the_monarchy

		cost = 10

		ai_will_do = {
			factor = 60
		}

		available = {
			is_in_faction = no
		}

		bypass = {
			is_in_faction = yes
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_POLITICAL }

		completion_reward = {
			swap_ideas = { remove_idea = YUG_idea_empowered_peasant_councils add_idea = YUG_idea_very_empowered_peasant_councils }
		}
	}

	focus = {
		id = YUG_form_the_federal_republic
		icon = GFX_goal_generic_forceful_treaty
		prerequisite = { focus = YUG_yugoslavian_path_to_communism focus = YUG_join_comintern }
		x = 0
		y = 1
		relative_position_id = YUG_yugoslavian_path_to_communism

		cost = 10

		ai_will_do = {
			factor = 100
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY FOCUS_FILTER_INDUSTRY }

		completion_reward = {
			remove_ideas = YUG_idea_croatian_opposition
			remove_ideas = YUG_idea_macedonian_opposition
			remove_ideas = YUG_idea_slovene_nationalism
		}
	}

	focus = {
		id = YUG_pan_slavic_workers_congress
		icon = GFX_focus_YUG_pan_slavic_congress
		prerequisite = { focus = YUG_yugoslavian_path_to_communism }
		x = 3
		y = 1
		relative_position_id = YUG_yugoslavian_path_to_communism

		cost = 10

		ai_will_do = {
			factor = 50
		}

		available = {
			is_subject = no
			is_in_faction = no
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_POLITICAL }

		completion_reward = {
			set_rule = { can_create_factions = yes }
			create_faction_from_template = faction_template_panslavic_workers_congress
			unlock_decision_tooltip = YUG_instigate_in_bulgaria
			unlock_decision_tooltip = YUG_instigate_in_albania
			hidden_effect = { news_event = { id = news.330 } }
		}
	}

	focus = {
		id = YUG_research_collaboration
		icon = GFX_focus_generic_socialist_science
		prerequisite = { focus = YUG_join_comintern }
		x = 0
		y = 1
		relative_position_id = YUG_join_comintern

		cost = 10

		ai_will_do = {
			factor = 100
		}

		available = {
			is_in_faction_with = SOV
			SOV = { has_government = communism }
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_RESEARCH }


		completion_reward = {
			add_to_tech_sharing_group = YUG_SOV_research_group
			SOV = {
				add_to_tech_sharing_group = YUG_SOV_research_group
			}
		}
	}

	focus = {
		id = YUG_federal_defense_council
		icon = GFX_goal_demand_sudetenland
		prerequisite = { focus = YUG_form_the_federal_republic }
		x = 0
		y = 2
		relative_position_id = YUG_yugoslavian_path_to_communism

		cost = 10

		ai_will_do = {
			factor = 50
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_POLITICAL }



		completion_reward = {
			if = {
				limit = {
					has_idea = YUG_idea_serbian_general_staff
				}
				swap_ideas = { remove_idea = YUG_idea_serbian_general_staff add_idea = YUG_idea_federal_defense_council }
			}
			if = {
				limit = {
					has_idea = YUG_idea_yugoslavian_general_staff
				}
				swap_ideas = { remove_idea = YUG_idea_yugoslavian_general_staff add_idea = YUG_idea_federal_defense_council }
			}
		}
	}

	focus = {
		id = YUG_invite_bulgaria
		icon = GFX_focus_generic_befriend_bulgaria
		prerequisite = { focus = YUG_pan_slavic_workers_congress }
		x = -1
		y = 1
		relative_position_id = YUG_pan_slavic_workers_congress

		cost = 5

		ai_will_do = {
			factor = 100
		}

		available = {
			BUL = {
				NOT = { has_war_with = ROOT }
				exists = yes
				is_puppet = no
				is_in_faction = no
				has_government = communism
			}
			is_faction_leader = yes
			is_subject = no
		}

		bypass = {
			BUL = {
				OR = {
					exists = no
					is_puppet_of = ROOT
					is_in_faction = yes
					has_country_flag = banned_communism_flag
					AND = {
						NOT = {
							has_government = communism
						}
						hidden_trigger = { has_country_flag = had_yugo_civil_war_flag }
						has_civil_war = no
					}
				}
			}
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_POLITICAL }



		completion_reward = {
			BUL = {
				country_event = generic.5
			}
		}
	}

	focus = {
		id = YUG_invite_albania
		icon = GFX_focus_generic_befriend_albania
		prerequisite = { focus = YUG_pan_slavic_workers_congress }
		x = 1
		y = 1
		relative_position_id = YUG_pan_slavic_workers_congress

		cost = 5

		ai_will_do = {
			factor = 100
		}

		available = {
			ALB = {
				NOT = { has_war_with = ROOT }
				exists = yes
				is_puppet = no
				is_in_faction = no
				has_government = communism
			}
			is_faction_leader = yes
			is_subject = no
		}

		bypass = {
			ALB = {
				OR = {
					exists = no
					is_puppet_of = ROOT
					is_in_faction = yes
					has_country_flag = banned_communism_flag
					AND = {
						NOT = {
							has_government = communism
						}
						hidden_trigger = { has_country_flag = had_yugo_civil_war_flag }
						has_civil_war = no
					}
				}
			}
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_POLITICAL }



		completion_reward = {
			ALB = {
				country_event = generic.5
			}
		}
	}

	focus = {
		id = YUG_pan_balkan_workers_congress
		icon = GFX_focus_YUG_pan_slavic_congress
		prerequisite = { focus = YUG_invite_bulgaria }
		prerequisite = { focus = YUG_invite_albania }
		prerequisite = { focus = YUG_federal_defense_council }
		x = -1
		y = 1
		relative_position_id = YUG_invite_bulgaria

		cost = 10

		ai_will_do = {
			factor = 50
		}

		available = {
			is_faction_leader = yes
			is_subject = no
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_POLITICAL }

		completion_reward = {
			set_faction_name = panbalkan_workers_congress
			unlock_decision_tooltip = YUG_instigate_in_greece
			unlock_decision_tooltip = YUG_instigate_in_romania
			unlock_decision_tooltip = YUG_instigate_in_hungary
		}
	}

	focus = {
		id = YUG_invite_romania
		icon = GFX_focus_invite_romania
		prerequisite = { focus = YUG_pan_balkan_workers_congress }
		x = -2
		y = 1
		relative_position_id = YUG_pan_balkan_workers_congress

		cost = 5

		ai_will_do = {
			factor = 100
		}

		available = {
			ROM = {
				NOT = { has_war_with = ROOT }
				exists = yes
				is_puppet = no
				is_in_faction = no
				has_government = communism
			}
			is_faction_leader = yes
			is_subject = no
		}

		bypass = {
			ROM = {
				OR = {
					exists = no
					is_puppet_of = ROOT
					is_in_faction = yes
					has_country_flag = banned_communism_flag
					AND = {
						NOT = {
							has_government = communism
						}
						hidden_trigger = { has_country_flag = had_yugo_civil_war_flag }
						has_civil_war = no
					}
				}
			}
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_POLITICAL }

		complete_tooltip = {

		}

		completion_reward = {
			ROM = {
				country_event = generic.5
			}
			if = {
				limit = {
					has_completed_focus = YUG_invite_greece
					has_completed_focus = YUG_invite_hungary
				}
				unlock_decision_tooltip = YUG_instigate_in_turkey
			}
		}
	}

	focus = {
		id = YUG_invite_greece
		icon = GFX_focus_generic_befriend_greece
		prerequisite = { focus = YUG_pan_balkan_workers_congress }
		x = 0
		y = 1
		relative_position_id = YUG_pan_balkan_workers_congress

		cost = 5

		ai_will_do = {
			factor = 100
		}

		available = {
			GRE = {
				NOT = { has_war_with = ROOT }
				exists = yes
				is_puppet = no
				is_in_faction = no
				has_government = communism
			}
			is_faction_leader = yes
			is_subject = no
		}

		bypass = {
			GRE = {
				OR = {
					exists = no
					is_puppet_of = ROOT
					is_in_faction = yes
					has_country_flag = banned_communism_flag
					AND = {
						NOT = {
							has_government = communism
						}
						hidden_trigger = { has_country_flag = had_yugo_civil_war_flag }
						has_civil_war = no
					}
				}
			}
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_POLITICAL }

		complete_tooltip = {

		}

		completion_reward = {
			GRE = {
				country_event = generic.5
			}
			if = {
				limit = {
					has_completed_focus = YUG_invite_hungary
					has_completed_focus = YUG_invite_romania
				}
				unlock_decision_tooltip = YUG_instigate_in_turkey
			}
		}
	}

	focus = {
		id = YUG_invite_hungary
		icon = GFX_focus_generic_befriend_hungary
		prerequisite = { focus = YUG_pan_balkan_workers_congress }
		x = 2
		y = 1
		relative_position_id = YUG_pan_balkan_workers_congress

		cost = 5

		ai_will_do = {
			factor = 100
		}

		available = {
			HUN = {
				NOT = { has_war_with = ROOT }
				exists = yes
				is_puppet = no
				is_in_faction = no
				has_government = communism
			}
			is_faction_leader = yes
			is_subject = no
		}

		bypass = {
			HUN = {
				OR = {
					exists = no
					is_puppet_of = ROOT
					is_in_faction = yes
					has_country_flag = banned_communism_flag
					AND = {
						NOT = {
							has_government = communism
						}
						hidden_trigger = { has_country_flag = had_yugo_civil_war_flag }
						has_civil_war = no
					}
				}
			}
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_POLITICAL }

		complete_tooltip = {

		}

		completion_reward = {
			HUN = {
				country_event = generic.5
			}
			if = {
				limit = {
					has_completed_focus = YUG_invite_greece
					has_completed_focus = YUG_invite_romania
				}
				unlock_decision_tooltip = YUG_instigate_in_turkey
			}
		}
	}

	focus = {
		id = YUG_invite_turkey
		icon = GFX_focus_generic_befriend_turkey
		prerequisite = { focus = YUG_invite_greece }
		prerequisite = { focus = YUG_invite_hungary }
		prerequisite = { focus = YUG_invite_romania }
		x = 0
		y = 1
		relative_position_id = YUG_invite_greece

		cost = 5

		ai_will_do = {
			factor = 100
		}

		available = {
			TUR = {
				NOT = { has_war_with = ROOT }
				exists = yes
				is_puppet = no
				is_in_faction = no
				has_government = communism
			}
			is_faction_leader = yes
			is_subject = no
		}

		bypass = {
			TUR = {
				OR = {
					exists = no
					is_puppet_of = ROOT
					is_in_faction = yes
					has_country_flag = banned_communism_flag
					AND = {
						NOT = {
							has_government = communism
						}
						hidden_trigger = { has_country_flag = had_yugo_civil_war_flag }
						has_civil_war = no
					}
				}
			}
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_POLITICAL }

		complete_tooltip = {

		}

		completion_reward = {
			TUR = {
				country_event = generic.5
			}
		}
	}


	############################
	######### INDUSTRY #########
	############################

	focus = {
		id = YUG_industrialization_program
		icon = GFX_goal_generic_construction
		x = 20
		y = 0

		cost = 10

		ai_will_do = {
			factor = 80
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESEARCH }


		completion_reward = {
			add_tech_bonus = {
				name = YUG_industrialization_program
				bonus = 1.0
				uses = 2
				category = industry
			}
		}
	}

	focus = {
		id = YUG_expand_the_mining_industry
		icon = GFX_goal_generic_construct_civilian
		prerequisite = { focus = YUG_industrialization_program }
		x = 0
		y = 1
		relative_position_id = YUG_industrialization_program

		cost = 10

		ai_will_do = {
			factor = 70
			modifier = {
					factor = 1.2
					OR = {
						has_completed_focus = YUG_join_comintern
						has_completed_focus = YUG_yugoslavian_path_to_communism
					}
				}
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_INDUSTRY }


		completion_reward = {
			add_ideas = YUG_idea_expanded_mining_industry
		}
	}

	focus = {
		id = YUG_rare_minerals_exploitation
		icon = GFX_goal_generic_construction2
		prerequisite = { focus = YUG_expand_the_mining_industry }
		x = -3
		y = 1
		relative_position_id = YUG_expand_the_mining_industry

		cost = 10

		ai_will_do = {
			factor = 60
			modifier = {
					factor = 1.2
					OR = {
						has_completed_focus = YUG_join_comintern
						has_completed_focus = YUG_yugoslavian_path_to_communism
					}
			}
		}

		available = {
			any_controlled_state = {
				is_core_of = ROOT
				is_fully_controlled_by = ROOT
			}
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_INDUSTRY }


		completion_reward = {
			if = {
				limit = {
					105 = {
						OR = {
							is_fully_controlled_by = ROOT
							controller = {
								is_subject_of = ROOT
								has_full_control_of_state = PREV
							}
							controller = {
								tag = MNT
								is_in_faction_with = ROOT
								has_full_control_of_state = PREV
							}
						}
					}
				}
				105 = {
					add_resource = {
						type = tungsten
						amount = 8
					}
				}
			}
			else = {
				random_owned_controlled_state = {
					prioritize = { 105 802 }
					add_resource = {
						type = tungsten
						amount = 8
					}
				}
			}
			if = {
				limit = {
					109 = {
						OR = {
							is_fully_controlled_by = ROOT
							controller = {
								is_subject_of = ROOT
								has_full_control_of_state = PREV
							}
							controller = {
								tag = MNT
								is_in_faction_with = ROOT
								has_full_control_of_state = PREV
							}
						}
					}
				}
				109 = {
					add_resource = {
						type = chromium
						amount = 8
					}
				}
			}
			else = {
				random_owned_controlled_state = {
					prioritize = { 109 103 }
					add_resource = {
						type = chromium
						amount = 8
					}
				}
			}
		}
	}

	focus = {
		id = YUG_exploit_the_pannonian_deposits
		icon = GFX_goal_generic_oil_refinery
		prerequisite = { focus = YUG_rare_minerals_exploitation }
		x = 0
		y = 1
		relative_position_id = YUG_rare_minerals_exploitation

		cost = 10

		ai_will_do = {
			factor = 60
			modifier = {
					factor = 1.2
					OR = {
						has_completed_focus = YUG_join_comintern
						has_completed_focus = YUG_yugoslavian_path_to_communism
					}
			}
		}

		available = {
			45 = {
				OR = {
					is_fully_controlled_by = ROOT
					controller = {
						is_subject_of = ROOT
						has_full_control_of_state = PREV
					}
				}
			}
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_INDUSTRY }


		completion_reward = {
			if = {
				limit = {
					45 = {
						OR = {
							is_fully_controlled_by = ROOT
							controller = {
								is_subject_of = ROOT
								has_full_control_of_state = PREV
							}
						}
					}
				}
				45 = {
					add_resource = {
						type = oil
						amount = 8
					}
				}
			}
		}
	}

	focus = {
		id = YUG_develop_civilian_industry
		icon = GFX_goal_generic_construct_civ_factory
		prerequisite = { focus = YUG_expand_the_mining_industry }
		mutually_exclusive = { focus = YUG_develop_military_industry }
		x = -1
		y = 1
		relative_position_id = YUG_expand_the_mining_industry

		cost = 10

		ai_will_do = {
			factor = 60
				modifier = {
					factor = 1.2
					OR = {
						has_completed_focus = YUG_join_comintern
						has_completed_focus = YUG_yugoslavian_path_to_communism
					}
				}
		}

		available = {
			any_controlled_state = {
				is_core_of = ROOT
				is_fully_controlled_by = ROOT
			}
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_INDUSTRY }


		completion_reward = {
			random_owned_controlled_state = {
				prioritize = { 853 102 }
				limit = {
					ROOT = { has_full_control_of_state = PREV }
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}

			random_owned_controlled_state = {
				prioritize = { 107 }
				limit = {
					ROOT = { has_full_control_of_state = PREV }
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}

			random_owned_controlled_state = {
				prioritize = { 109 }
				limit = {
					ROOT = { has_full_control_of_state = PREV }
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
		}
	}

	focus = {
		id = YUG_expand_the_university_of_zagreb
		icon = GFX_focus_research
		prerequisite = { focus = YUG_develop_civilian_industry focus = YUG_develop_military_industry }
		x = 0
		y = 3
		relative_position_id = YUG_industrialization_program

		cost = 10

		ai_will_do = {
			factor = 100
		}

		available = {
			NOT = {
				has_idea = YUG_idea_croatian_opposition
			}
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH }


		completion_reward = {
			add_research_slot = 1
		}
	}

	focus = {
		id = YUG_integrated_rail_network
		icon = GFX_goal_generic_construct_infrastructure
		prerequisite = { focus = YUG_expand_the_university_of_zagreb }
		mutually_exclusive = { focus = YUG_improve_serbian_rail_network }
		x = 0
		y = 2
		relative_position_id = YUG_develop_civilian_industry

		cost = 10

		ai_will_do = {
			factor = 60
			modifier = {
					factor = 1.2
					OR = {
						has_completed_focus = YUG_join_comintern
						has_completed_focus = YUG_yugoslavian_path_to_communism
					}
				}
		}

		available = {
			any_controlled_state = {
				is_core_of = ROOT
				is_fully_controlled_by = ROOT
			}
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_INDUSTRY }


		completion_reward = {
			every_owned_state = {
				limit = {
					ROOT = { has_full_control_of_state = PREV }
					is_core_of = ROOT
				}
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
			every_state = {
				limit = {
					owner = {
						NOT = { tag = ROOT }
						OR = {
							original_tag = SER
							original_tag = SLV
							original_tag = CRO
							original_tag = MNT
							original_tag = KOS
							original_tag = BOS
							original_tag = HRZ
							original_tag = MAC
							original_tag = TRA
							original_tag = HUN
							original_tag = BUL
						}
						OR = {
							is_subject_of = ROOT
							is_in_faction_with = ROOT
						}
					}
				}
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
		}
	}

	focus = {
		id = YUG_improve_light_industry
		icon = GFX_goal_generic_construct_civ_factory
		prerequisite = { focus = YUG_integrated_rail_network focus = YUG_improve_serbian_rail_network }
		x = 1
		y = 3
		relative_position_id = YUG_develop_civilian_industry

		cost = 10

		ai_will_do = {
			factor = 80
			modifier = {
					factor = 1.2
					OR = {
						has_completed_focus = YUG_join_comintern
						has_completed_focus = YUG_yugoslavian_path_to_communism
					}
				}
		}

		available = {
			any_controlled_state = {
				is_core_of = ROOT
				is_fully_controlled_by = ROOT
			}
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_INDUSTRY }


		completion_reward = {
			random_owned_controlled_state = {
				prioritize = { 104 }
				limit = {
					ROOT = { has_full_control_of_state = PREV }
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}

			random_owned_controlled_state = {
				prioritize = { 106 }
				limit = {
					ROOT = { has_full_control_of_state = PREV }
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
		}
	}

	focus = {
		id = YUG_develop_slovenian_industry
		icon = GFX_goal_generic_construct_mil_factory
		prerequisite = { focus = YUG_integrated_rail_network }
		x = 0
		y = 4
		relative_position_id = YUG_develop_civilian_industry

		cost = 10

		ai_will_do = {
			factor = 60
		}

		available = {
			OR = {
				853 = {
					OR = {
						is_fully_controlled_by = ROOT
						controller = {
							is_subject_of = ROOT
							has_full_control_of_state = PREV
						}
						controller = {
							tag = SLV
							is_in_faction_with = ROOT
							has_full_control_of_state = PREV
						}
					}
				}
				102 = {
					OR = {
						is_fully_controlled_by = ROOT
						controller = {
							is_subject_of = ROOT
							has_full_control_of_state = PREV
						}
						controller = {
							tag = SLV
							is_in_faction_with = ROOT
							has_full_control_of_state = PREV
						}
					}
				}
			}
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_INDUSTRY }

		complete_tooltip = {
		
		}

		completion_reward = {
			if = {
				limit = {
					853 = {
						OR = {
							is_fully_controlled_by = ROOT
							controller = {
								is_subject_of = ROOT
								has_full_control_of_state = PREV
							}
							controller = {
								tag = SLV
								is_in_faction_with = ROOT
								has_full_control_of_state = PREV
							}
						}
					}
				}
				853 = {
					add_extra_state_shared_building_slots = 3
					add_building_construction = {
						type = industrial_complex
						level = 1
						instant_build = yes
					}
					add_building_construction = {
						type = arms_factory
						level = 2
						instant_build = yes
					}
				}
			}
			else_if = {
				limit = {
					102 = {
						OR = {
							is_fully_controlled_by = ROOT
							controller = {
								is_subject_of = ROOT
								has_full_control_of_state = PREV
							}
							controller = {
								tag = SLV
								is_in_faction_with = ROOT
								has_full_control_of_state = PREV
							}
						}
					}
				}
				102 = {
					add_extra_state_shared_building_slots = 3
					add_building_construction = {
						type = industrial_complex
						level = 1
						instant_build = yes
					}
					add_building_construction = {
						type = arms_factory
						level = 2
						instant_build = yes
					}
				}
			}
		}
	}

	focus = {
		id = YUG_local_self_management
		icon = GFX_focus_generic_self_management
		prerequisite = { focus = YUG_develop_slovenian_industry }
		x = 0
		y = 1
		relative_position_id = YUG_develop_slovenian_industry

		cost = 10

		ai_will_do = {
			factor = 60
			modifier = {
					factor = 1.2
					OR = {
						has_completed_focus = YUG_join_comintern
						has_completed_focus = YUG_yugoslavian_path_to_communism
					}
				}
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_INDUSTRY }


		completion_reward = {
			add_ideas = YUG_idea_local_self_management
		}
	}

	focus = {
		id = YUG_expand_the_university_of_ljubljana
		icon = GFX_focus_research
		prerequisite = { focus = YUG_develop_slovenian_industry }
		x = -2
		y = 1
		relative_position_id = YUG_develop_slovenian_industry

		cost = 10

		ai_will_do = {
			factor = 100
		}

		available = {
			NOT = {
				has_idea = YUG_idea_slovene_nationalism
			}
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH }


		completion_reward = {
			add_research_slot = 1
		}
	}

	focus = {
		id = YUG_develop_military_industry
		icon = GFX_goal_generic_construct_mil_factory
		prerequisite = { focus = YUG_expand_the_mining_industry }
		mutually_exclusive = { focus = YUG_develop_civilian_industry }
		x = 1
		y = 1
		relative_position_id = YUG_expand_the_mining_industry

		cost = 10

		ai_will_do = {
			factor = 40
			modifier = {
				factor = 2
				is_in_faction_with = GER
			}
		}

		available = {
			any_controlled_state = {
				is_core_of = ROOT
				is_fully_controlled_by = ROOT
			}
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_INDUSTRY }


		completion_reward = {
			random_owned_controlled_state = {
				prioritize = { 107 }
				limit = {
					ROOT = { has_full_control_of_state = PREV }
				}
				add_extra_state_shared_building_slots = 3
				add_building_construction = {
					type = arms_factory
					level = 3
					instant_build = yes
				}
			}
		}
	}

	focus = {
		id = YUG_improve_serbian_rail_network
		icon = GFX_goal_generic_construct_infrastructure
		prerequisite = { focus = YUG_expand_the_university_of_zagreb }
		mutually_exclusive = { focus = YUG_integrated_rail_network }
		x = 0
		y = 2
		relative_position_id = YUG_develop_military_industry

		cost = 10

		ai_will_do = {
			factor = 40
			modifier = {
				factor = 2
				is_in_faction_with = GER
			}
		}

		available = {
			OR = {
				has_full_control_of_state = 45
				has_full_control_of_state = 105
				has_full_control_of_state = 107
				has_full_control_of_state = 108
				has_full_control_of_state = 764
			}
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_INDUSTRY }


		completion_reward = {
			if = {
				limit = {
					45 = {
						controller = {
							OR = {
								tag = ROOT
								is_subject_of = ROOT
								is_in_faction_with = ROOT
							}
						}
					}
				}
				45 = {
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}
				}
			}

			if = {
				limit = {
					105 = {
						controller = {
							OR = {
								tag = ROOT
								is_subject_of = ROOT
								is_in_faction_with = ROOT
							}
						}
					}
				}
				105 = {
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}
				}
			}

			if = {
				limit = {
					107 = {
						controller = {
							OR = {
								tag = ROOT
								is_subject_of = ROOT
								is_in_faction_with = ROOT
							}
						}
					}
				}
				107 = {
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}
				}
			}

			if = {
				limit = {
					108 = {
						controller = {
							OR = {
								tag = ROOT
								is_subject_of = ROOT
								is_in_faction_with = ROOT
							}
						}
					}
				}
				108 = {
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}
				}
			}

			if = {
				limit = {
					764 = {
						controller = {
							OR = {
								tag = ROOT
								is_subject_of = ROOT
								is_in_faction_with = ROOT
							}
						}
					}
				}
				764 = {
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}
				}
			}

			if = {
				limit = {
					803 = {
						controller = {
							OR = {
								tag = ROOT
								is_subject_of = ROOT
								is_in_faction_with = ROOT
							}
						}
					}
				}
				803 = {
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}
				}
			}
		}
	}

	focus = {
		id = YUG_serbian_steel
		icon = GFX_goal_generic_construct_civilian
		prerequisite = { focus = YUG_improve_serbian_rail_network }
		x = 1
		y = 3
		relative_position_id = YUG_develop_military_industry

		cost = 10

		ai_will_do = {
			factor = 60
		}

		available = {
			has_full_control_of_state = 108
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_INDUSTRY }


		completion_reward = {
			108 = {
				add_resource = {
					type = steel
					amount = 16
				}
			}
		}
	}

	focus = {
		id = YUG_expand_the_university_of_belgrad
		icon = GFX_focus_research
		prerequisite = { focus = YUG_improve_serbian_rail_network }
		x = 0
		y = 4
		relative_position_id = YUG_develop_military_industry

		cost = 10

		ai_will_do = {
			factor = 100
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH }


		completion_reward = {
			add_research_slot = 1
		}
	}

	focus = {
		id = YUG_central_management
		icon = GFX_goal_generic_demand_territory
		prerequisite = { focus = YUG_expand_the_university_of_belgrad }
		x = 0
		y = 5
		relative_position_id = YUG_develop_military_industry

		cost = 10

		ai_will_do = {
			factor = 50
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_INDUSTRY }


		completion_reward = {
			add_ideas = YUG_idea_central_management
		}
	}

	focus = {
		id = YUG_expand_the_sarajevo_arsenals
		icon = GFX_goal_generic_build_tank
		prerequisite = { focus = YUG_local_self_management focus = YUG_central_management }
		x = 1
		y = 1
		relative_position_id = YUG_local_self_management

		cost = 10

		ai_will_do = {
			factor = 100
		}

		available = {
			104 = {
				OR = {
					is_fully_controlled_by = ROOT
					controller = {
						is_subject_of = ROOT
						has_full_control_of_state = PREV
					}
					controller = {
						tag = BOS
						is_in_faction_with = ROOT
						has_full_control_of_state = PREV
					}
				}
			}
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_INDUSTRY }


		completion_reward = {
			if = {
				limit = {
					104 = {
						OR = {
							is_fully_controlled_by = ROOT
							controller = {
								is_subject_of = ROOT
								has_full_control_of_state = PREV
							}
							controller = {
								tag = BOS
								is_in_faction_with = ROOT
								has_full_control_of_state = PREV
							}
						}
					}
				}
				104 = {
					add_extra_state_shared_building_slots = 3
					add_building_construction = {
						type = industrial_complex
						level = 1
						instant_build = yes
					}
					add_building_construction = {
						type = arms_factory
						level = 2
						instant_build = yes
					}
				}
			}
		}
	}

	
	############################
	######## AIR FORCE #########
	############################

	focus = {
		id = YUG_modernize_the_air_force
		icon = GFX_goal_generic_air_doctrine
		x = 27
		y = 0

		cost = 10

		ai_will_do = {
			factor = 60
			modifier = {
				factor = 1.2
				is_in_faction_with = GER
			}
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_RESEARCH }


		completion_reward = {
			add_doctrine_cost_reduction = {
				name = air_doc_bonus
				cost_reduction = 0.5
				uses = 1
				category = air_doctrine
			}
		}
	}

	focus = {
		id = YUG_local_developers
		icon = GFX_goal_generic_air_production
		prerequisite = { focus = YUG_modernize_the_air_force }
		mutually_exclusive = { focus = YUG_purchase_foreign }
		x = -2
		y = 1
		relative_position_id = YUG_modernize_the_air_force

		cost = 10

		ai_will_do = {
			factor = 60
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_RESEARCH }


		completion_reward = {
			add_ideas = HUN_indigenous_designs #emergency fix
		}
	}

	focus = {
		id = YUG_ikarus
		icon = GFX_focus_YUG_ikarus
		prerequisite = { focus = YUG_local_developers }
		x = -2
		y = 1
		relative_position_id = YUG_local_developers

		cost = 10

		ai_will_do = {
			factor = 50
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_INDUSTRY }


		completion_reward = {

			IF = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}
				custom_effect_tooltip = available_mio_tt
				show_mio_tooltip = YUG_ikarus_organization
				mio:YUG_ikarus_organization = {
					add_mio_size = 1
					add_mio_funds = 500
				}
			}

			else = {
				custom_effect_tooltip = YUG_designer_tt
			}

			random_owned_controlled_state = {
				prioritize = { 107 }
				limit = {
					ROOT = { has_full_control_of_state = PREV }
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
		}
	}

	focus = {
		id = YUG_rogozarski
		icon = GFX_focus_YUG_rogozarski
		prerequisite = { focus = YUG_local_developers }
		x = 0
		y = 1
		relative_position_id = YUG_local_developers

		cost = 10

		ai_will_do = {
			factor = 50
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_INDUSTRY }


		completion_reward = {

			IF = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}
				custom_effect_tooltip = available_mio_tt
				show_mio_tooltip = YUG_rogozarski_organization
				mio:YUG_rogozarski_organization = {
					add_mio_size = 1
					add_mio_funds = 500
				}
			}

			else = {
				custom_effect_tooltip = YUG_designer_tt
			}

			random_owned_controlled_state = {
				prioritize = { 107 }
				limit = {
					ROOT = { has_full_control_of_state = PREV }
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
		}
	}

	focus = {
		id = YUG_zmaj
		icon = GFX_focus_YUG_zmaj
		prerequisite = { focus = YUG_local_developers }
		x = 2
		y = 1
		relative_position_id = YUG_local_developers

		cost = 10

		ai_will_do = {
			factor = 50
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_INDUSTRY }


		completion_reward = {
			
			IF = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}
				custom_effect_tooltip = available_mio_tt
				show_mio_tooltip = YUG_zmaj_organization
				mio:YUG_zmaj_organization = {
					add_mio_size = 1
					add_mio_funds = 500
				}
			}

			else = {
				custom_effect_tooltip = YUG_designer_tt
			}

			random_owned_controlled_state = {
				prioritize = { 107 }
				limit = {
					ROOT = { has_full_control_of_state = PREV }
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
		}
	}

	focus = {
		id = YUG_the_ik_3
		icon = GFX_goal_generic_air_fighter2
		prerequisite = { focus = YUG_ikarus focus = YUG_rogozarski focus = YUG_zmaj }
		x = 0
		y = 2
		relative_position_id = YUG_local_developers

		cost = 10

		ai_will_do = {
			factor = 50
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_RESEARCH }


		completion_reward = {
			if = {
				limit = {
					NOT = {
						has_dlc = "By Blood Alone"
					}
				}
				add_tech_bonus = {
					name = YUG_the_ik_3
					bonus = 3.0
					ahead_reduction = 2
					uses = 1
					category = light_fighter
				}
			}
			else = {
				create_equipment_variant = {
					name = "Ikarus IK-3" #
					type = small_plane_airframe_1
					modules = {
						fixed_main_weapon_slot = light_mg_2x
						fixed_auxiliary_weapon_slot_1 = aircraft_cannon_1_1x
						engine_type_slot = engine_2_1x
						special_type_slot_1 = empty
					}
				}
			}
		}
	}

	focus = {
		id = YUG_heavy_fighter_project
		icon = GFX_focus_usa_escort_fighters
		prerequisite = { focus = YUG_the_ik_3 }
		x = -1
		y = 3
		relative_position_id = YUG_local_developers

		cost = 10

		ai_will_do = {
			factor = 40
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_RESEARCH }


		completion_reward = {
			add_tech_bonus = {
				name = YUG_heavy_fighter_project
				bonus = 1.0
				uses = 1
				category = cat_heavy_fighter
			}
		}
	}

	focus = {
		id = YUG_bomber_project
		icon = GFX_focus_SWE_marauder_bombers
		prerequisite = { focus = YUG_the_ik_3 }
		x = 1
		y = 3
		relative_position_id = YUG_local_developers

		cost = 10

		ai_will_do = {
			factor = 20
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_RESEARCH }


		completion_reward = {
			add_tech_bonus = {
				name = YUG_bomber_project
				bonus = 1.0
				uses = 1
				category = tactical_bomber
			}
		}
	}

	focus = {
		id = YUG_purchase_foreign
		icon = GFX_goal_generic_intelligence_exchange
		prerequisite = { focus = YUG_modernize_the_air_force }
		mutually_exclusive = { focus = YUG_local_developers }
		x = 2
		y = 1
		relative_position_id = YUG_modernize_the_air_force

		cost = 10

		ai_will_do = {
			factor = 60
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no



		completion_reward = {
			if = {
				limit = {
					NOT = {
						has_war_with = GER
					}
				}
				GER = { country_event = DOD_yugoslavia.20 }
			}
			if = {
				limit = {
					NOT = {
						has_war_with = ITA
					}
				}
				ITA = { country_event = DOD_yugoslavia.20 }
			}
			if = {
				limit = {
					NOT = {
						has_war_with = ENG
					}
				}
				ENG = { country_event = DOD_yugoslavia.20 }
			}
			if = {
				limit = {
					NOT = {
						has_war_with = FRA
					}
				}
				FRA = { country_event = DOD_yugoslavia.20 }
			}
		}
	}

	focus = {
		id = YUG_license_production
		icon = GFX_focus_generic_license_production
		prerequisite = { focus = YUG_purchase_foreign }
		x = 0
		y = 1
		relative_position_id = YUG_purchase_foreign

		cost = 10

		ai_will_do = {
			factor = 50
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no



		completion_reward = {
			add_ideas = YUG_license_production
		}
	}

	focus = {
		id = YUG_fighter_license
		icon = GFX_goal_generic_air_fighter
		prerequisite = { focus = YUG_license_production }
		mutually_exclusive = { focus = YUG_bomber_license }
		x = -1
		y = 2
		relative_position_id = YUG_purchase_foreign

		cost = 10

		ai_will_do = {
			factor = 50
		}

		available = {
			NOT = {
				has_tech = fighter3
				has_tech = heavy_fighter3
			}
			OR = {
				GER = {
					custom_trigger_tooltip = {
						tooltip = fighter_tt
						OR = {
							is_available_fighter_YUG = yes
							is_available_heavy_fighter_YUG = yes
						}
					}
				}
				FRA = {
					custom_trigger_tooltip = {
						tooltip = fighter_tt
						OR = {
							is_available_fighter_YUG = yes
							is_available_heavy_fighter_YUG = yes
						}
					}
				}
				ITA = {
					custom_trigger_tooltip = {
						tooltip = fighter_tt
						OR = {
							is_available_fighter_YUG = yes
							is_available_heavy_fighter_YUG = yes
						}
					}
				}
				ENG = {
					custom_trigger_tooltip = {
						tooltip = fighter_tt
						OR = {
							is_available_fighter_YUG = yes
							is_available_heavy_fighter_YUG = yes
						}
					}
				}
				USA = {
					custom_trigger_tooltip = {
						tooltip = fighter_tt
						OR = {
							is_available_fighter_YUG = yes
							is_available_heavy_fighter_YUG = yes
						}
					}
				}
			}
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no



		completion_reward = {
			country_event = DOD_yugoslavia.150
		}
	}

	focus = {
		id = YUG_bomber_license
		icon = GFX_goal_generic_air_bomber
		prerequisite = { focus = YUG_license_production }
		mutually_exclusive = { focus = YUG_fighter_license }
		x = 1
		y = 2
		relative_position_id = YUG_purchase_foreign

		cost = 10

		ai_will_do = {
			factor = 25
		}

		
		available = {
			NOT = {
				has_tech = CAS3
				has_tech = tactical_bomber3
			}
			OR = {
				GER = {
					custom_trigger_tooltip = {
						tooltip = bomber_tt
						OR = {
							is_available_cas_YUG = yes
							is_available_tac_YUG = yes
						}
					}
				}
				FRA = {
					custom_trigger_tooltip = {
						tooltip = bomber_tt
						OR = {
							is_available_cas_YUG = yes
							is_available_tac_YUG = yes
						}
					}
				}
				ITA = {
					custom_trigger_tooltip = {
						tooltip = bomber_tt
						OR = {
							is_available_cas_YUG = yes
							is_available_tac_YUG = yes
						}
					}
				}
				ENG = {
					custom_trigger_tooltip = {
						tooltip = bomber_tt
						OR = {
							is_available_cas_YUG = yes
							is_available_tac_YUG = yes
						}
					}
				}
				USA = {
					custom_trigger_tooltip = {
						tooltip = bomber_tt
						OR = {
							is_available_cas_YUG = yes
							is_available_tac_YUG = yes
						}
					}
				}
			}
		}
		

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no



		completion_reward = {
			country_event = DOD_yugoslavia.160
		}
	}

	############################
	######## LAND FORCE ########
	############################

	focus = {
		id = YUG_army_modernization
		icon = GFX_goal_generic_army_doctrines
		x = 37
		y = 0

		cost = 10

		ai_will_do = {
			factor = 70
			modifier = {
				factor = 1.2
				is_in_faction_with = GER
			}
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no



		completion_reward = {
			army_experience = 25
		}
	}

	focus = {
		id = YUG_motorize_the_cavalry
		icon = GFX_goal_generic_cavalry
		prerequisite = { focus = YUG_army_modernization }
		x = -3
		y = 1
		relative_position_id =  YUG_army_modernization

		cost = 10

		ai_will_do = {
			factor = 50
			modifier = {
				factor = 1.2
				is_in_faction_with = GER
			}
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_RESEARCH }


		completion_reward = {
			add_tech_bonus = {
				name = YUG_motorize_the_cavalry
				bonus = 3.0
				technology = motorised_infantry
			}
		}
	}

	focus = {
		id = YUG_motorized_logistics
		icon = GFX_goal_generic_army_motorized
		prerequisite = { focus = YUG_motorize_the_cavalry }
		x = -2
		y = 1
		relative_position_id = YUG_motorize_the_cavalry

		cost = 10

		ai_will_do = {
			factor = 40
			modifier = {
				factor = 1.2
				is_in_faction_with = GER
			}
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_RESEARCH }


		completion_reward = {
			add_tech_bonus = {
				name = YUG_motorized_logistics
				bonus = 1.0
				uses = 2
				category = hospital_tech
				category = logistics_tech
			}
		}
	}

	focus = {
		id = YUG_armored_cavalry
		icon = GFX_goal_generic_build_tank
		prerequisite = { focus = YUG_motorize_the_cavalry }
		x = 0
		y = 1
		relative_position_id = YUG_motorize_the_cavalry

		cost = 10

		ai_will_do = {
			factor = 40
			modifier = {
				factor = 1.5
				is_in_faction_with = GER
			}
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_RESEARCH }


		completion_reward = {
			add_tech_bonus = {
				name = YUG_armored_cavalry
				bonus = 1.0
				uses = 1
				category = cat_mechanized_equipment
			}
		}
	}

	focus = {
		id = YUG_tank_conversions
		icon = GFX_goal_generic_production2
		prerequisite = { focus = YUG_armored_cavalry }
		mutually_exclusive = { focus = YUG_modern_tanks }
		x = -2
		y = 2
		relative_position_id = YUG_motorize_the_cavalry

		cost = 5

		ai_will_do = {
			factor = 50
			modifier = {
				factor = 1.5
				is_in_faction_with = GER
			}
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no


		completion_reward = {
			add_ideas = YUG_idea_tank_conversions
		}
	}

	focus = {
		id = YUG_modern_tanks
		icon = GFX_goal_generic_army_tanks
		prerequisite = { focus = YUG_armored_cavalry }
		mutually_exclusive = { focus = YUG_tank_conversions }
		x = 0
		y = 2
		relative_position_id = YUG_motorize_the_cavalry

		cost = 10

		ai_will_do = {
			factor = 25
			modifier = {
				factor = 3
				is_in_faction_with = GER
			}
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_RESEARCH }


		completion_reward = {
			add_tech_bonus = {
				name = YUG_modern_tanks
				bonus = 1.0
				uses = 1
				category = armor
			}
		}
	}

	focus = {
		id = YUG_tank_licenses
		icon = GFX_focus_generic_license_production
		prerequisite = { focus = YUG_modern_tanks }
		x = 0
		y = 3
		relative_position_id = YUG_motorize_the_cavalry

		cost = 5

		ai_will_do = {
			factor = 60
			modifier = {
				factor = 1.2
				is_in_faction_with = GER
			}
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no


		completion_reward = {
			add_ideas = YUG_tank_licenses
		}
	}

	focus = {
		id = YUG_small_arms
		icon = GFX_goal_generic_small_arms
		prerequisite = { focus = YUG_army_modernization }
		x = -1
		y = 1
		relative_position_id = YUG_army_modernization

		cost = 10

		ai_will_do = {
			factor = 70
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_RESEARCH }


		completion_reward = {
			add_tech_bonus = {
				name = YUG_small_arms
				bonus = 1.00
				uses = 1
				category = infantry_weapons
			}
		}
	}

	focus = {
		id = YUG_domestic_artillery_production
		icon = GFX_goal_generic_army_artillery
		prerequisite = { focus = YUG_small_arms }
		x = 0
		y = 1
		relative_position_id = YUG_small_arms

		cost = 10

		ai_will_do = {
			factor = 70
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_RESEARCH }


		completion_reward = {
			add_tech_bonus = {
				name = YUG_domestic_artillery_production
				bonus = 1.00
				uses = 1
				category = artillery
			}
		}
	}

	focus = {
		id = YUG_anti_tank_defenses
		icon = GFX_goal_generic_army_artillery2
		prerequisite = { focus = YUG_domestic_artillery_production }
		x = 0
		y = 2
		relative_position_id = YUG_small_arms

		cost = 10

		ai_will_do = {
			factor = 60
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_RESEARCH }


		completion_reward = {
			add_tech_bonus = {
				name = YUG_anti_tank_defenses
				bonus = 3.0
				uses = 1
				category = cat_anti_tank
			}
		}
	}

	focus = {
		id = YUG_mountain_brigades
		icon = GFX_goal_generic_special_forces
		prerequisite = { focus = YUG_army_modernization }
		x = 1
		y = 1
		relative_position_id = YUG_army_modernization

		cost = 10

		ai_will_do = {
			factor = 70
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_RESEARCH }


		completion_reward = {
			add_tech_bonus = {
				name = YUG_mountain_brigades
				bonus = 3.0
				uses = 1
				category = mountaineers_tech
			}
		}
	}

	focus = {
		id = YUG_independent_engineer_regiments
		icon = GFX_goal_generic_production
		prerequisite = { focus = YUG_mountain_brigades }
		x = 0
		y = 1
		relative_position_id = YUG_mountain_brigades

		cost = 10

		ai_will_do = {
			factor = 50
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_RESEARCH }


		completion_reward = {
			add_tech_bonus = {
				name = YUG_independent_engineer_regiments
				bonus = 3.0
				uses = 1
				category = engineers_tech
			}
		}
	}

	focus = {
		id = YUG_motorized_recon_companies
		icon = GFX_goal_generic_military_sphere
		prerequisite = { focus = YUG_independent_engineer_regiments }
		x = 0
		y = 2
		relative_position_id = YUG_mountain_brigades

		cost = 10

		ai_will_do = {
			factor = 40
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_RESEARCH }


		completion_reward = {
			add_tech_bonus = {
				name = YUG_motorized_recon_companies
				bonus = 3.0
				uses = 1
				category = recon_tech
			}
		}
	}

	focus = {
		id = YUG_form_parachute_battalions
		icon = GFX_focus_generic_paratrooper
		prerequisite = { focus = YUG_motorized_recon_companies }
		x = 0
		y = 3
		relative_position_id = YUG_mountain_brigades

		cost = 10

		ai_will_do = {
			factor = 10
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_RESEARCH }


		completion_reward = {
			add_tech_bonus = {
				name = YUG_form_parachute_battalions
				bonus = 3.0
				uses = 1
				category = para_tech
			}
		}
	}

	focus = {
		id = YUG_army_maneuvers
		icon = GFX_goal_generic_army_doctrines
		prerequisite = { focus = YUG_army_modernization }
		x = 4
		y = 1
		relative_position_id = YUG_army_modernization

		cost = 10

		ai_will_do = {
			factor = 70
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_RESEARCH }


		completion_reward = {
			add_doctrine_cost_reduction = {
				name = YUG_army_maneuvers
				cost_reduction = 0.5
				uses = 1
				category = land_doctrine
			}
		}
	}

	focus = {
		id = YUG_supremacy_of_offense
		icon = GFX_goal_generic_major_war
		prerequisite = { focus = YUG_army_maneuvers }
		mutually_exclusive = { focus = YUG_supremacy_of_defense }
		x = -1
		y = 1
		relative_position_id = YUG_army_maneuvers

		cost = 10

		ai_will_do = {
			factor = 30
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_RESEARCH }


		completion_reward = {

			add_mastery_bonus = {
				name = YUG_supremacy_of_offense
				bonus = 0.1
				days = 180
				track = combat_support
			}
			add_mastery_bonus = {
				name = YUG_supremacy_of_offense
				bonus = 0.1
				days = 180
				track = armor
			}
			add_doctrine_cost_reduction = {
				name = YUG_supremacy_of_offense
				cost_reduction = 0.25
				uses = 1
				category = land_doctrine
			}
		}
	}

	focus = {
		id = YUG_supremacy_of_defense
		icon = GFX_goal_generic_position_armies
		prerequisite = { focus = YUG_army_maneuvers }
		mutually_exclusive = { focus = YUG_supremacy_of_offense }
		x = 1
		y = 1
		relative_position_id = YUG_army_maneuvers

		cost = 10

		ai_will_do = {
			factor = 60
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_RESEARCH }


		completion_reward = {

			add_mastery_bonus = {
				name = YUG_supremacy_of_defense
				bonus = 0.1
				days = 180
				track = infantry
			}
			add_mastery_bonus = {
				name = YUG_supremacy_of_defense
				bonus = 0.1
				days = 180
				track = operations
			}
			add_doctrine_cost_reduction = {
				name = YUG_supremacy_of_defense
				cost_reduction = 0.25
				uses = 1
				category = land_doctrine
			}
		}
	}

	focus = {
		id = YUG_artillery_regiments
		icon = GFX_focus_SWE_let_fly_all_guns
		prerequisite = { focus = YUG_supremacy_of_offense focus = YUG_supremacy_of_defense }
		x = 0
		y = 2
		relative_position_id = YUG_army_maneuvers

		cost = 10

		ai_will_do = {
			factor = 70
		}

		available = {

		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no



		completion_reward = {
			add_ideas = YUG_artillery_regiments
		}
	}
	
	focus = {
		id = YUG_medal_for_extreme_bravery
		icon = GFX_goal_generic_build_tank
		prerequisite = { focus = YUG_artillery_regiments }
		x = 0
		y = 3
		relative_position_id = YUG_army_maneuvers

		cost = 10
		
		allow_branch = {
			has_dlc = "By Blood Alone"
		}
		
		ai_will_do = {
			factor = 70
		}

		available = {
			any_neighbor_country = {
				is_major = yes
				has_war_with = ROOT
			}
		}

		bypass = {

		}

		continue_if_invalid = yes
		available_if_capitulated = no



		completion_reward = {
			custom_effect_tooltip = yug_extreme_bravery_medal
		}
	}

	############################
	######## BOAT FORCE ########
	############################

	focus = {
		id = YUG_expand_the_split_shipyards
		icon = GFX_goal_generic_construct_naval_dockyard
		mutually_exclusive = { focus = YUG_expand_the_serbian_shipyards }
		x = 45
		y = 0

		cost = 10

		ai_will_do = {
			factor = 40
		}

		available = {
			OR = {
				has_full_control_of_state = 103
				any_other_country = {
					OR = {
						is_in_faction_with = ROOT
						is_subject_of = ROOT
					}
					has_full_control_of_state = 103
				}
			}
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_INDUSTRY }


		completion_reward = {
			103 = {
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = dockyard
					level = 2
					instant_build = yes
				}
			}
		}
	}

	focus = {
		id = YUG_contest_the_adriatic
		icon = GFX_goal_generic_navy_doctrines_tactics
		prerequisite = { focus = YUG_expand_the_split_shipyards }
		x = 0
		y = 1
		relative_position_id = YUG_expand_the_split_shipyards

		cost = 10

		ai_will_do = {
			factor = 20
		}

		available = {
			any_owned_state = {
				is_coastal = yes
			}
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_RESEARCH }


		completion_reward = {
			add_doctrine_cost_reduction = {
				name = YUG_contest_the_adriatic
				cost_reduction = 0.5
				uses = 2
				category = naval_doctrine
			}
		}
	}

	focus = {
		id = YUG_replace_the_dalmacija
		icon = GFX_goal_generic_navy_cruiser
		prerequisite = { focus = YUG_contest_the_adriatic }
		x = 0
		y = 2
		relative_position_id = YUG_expand_the_split_shipyards

		cost = 10

		ai_will_do = {
			factor = 20
		}

		available = {
			any_owned_state = {
				is_coastal = yes
			}
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_RESEARCH }


		completion_reward = {
			add_tech_bonus = {
				name = YUG_replace_the_dalmacija
				bonus = 1.0
				uses = 1
				category = ca_tech
			}
		}
	}

	focus = {
		id = YUG_naval_bombers
		icon = GFX_goal_generic_air_naval_bomber
		prerequisite = { focus = YUG_contest_the_adriatic focus = YUG_coastal_defense }
		x = 2
		y = 2
		relative_position_id = YUG_expand_the_split_shipyards

		cost = 10

		ai_will_do = {
			factor = 30
		}

		available = {
			any_owned_state = {
				is_coastal = yes
			}
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_RESEARCH }


		completion_reward = {
			add_tech_bonus = {
				name = YUG_naval_bombers
				bonus = 1.0
				uses = 1
				category = naval_bomber
			}
		}
	}

	focus = {
		id = YUG_heavy_cruiser_project
		icon = GFX_goal_generic_navy_battleship
		prerequisite = { focus = YUG_replace_the_dalmacija }
		x = 0
		y = 3
		relative_position_id = YUG_expand_the_split_shipyards

		cost = 10

		ai_will_do = {
			factor = 20
		}

		available = {
			any_owned_state = {
				is_coastal = yes
			}
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_RESEARCH }


		completion_reward = {
			add_tech_bonus = {
				name = YUG_heavy_cruiser_project
				bonus = 1.0
				uses = 1
				category = ca_tech
			}
		}
	}

	focus = {
		id = YUG_modern_destroyers
		icon = GFX_goal_generic_navy_anti_submarine
		prerequisite = { focus = YUG_naval_bombers }
		x = 2
		y = 3
		relative_position_id = YUG_expand_the_split_shipyards

		cost = 10

		ai_will_do = {
			factor = 20
		}

		available = {
			any_owned_state = {
				is_coastal = yes
			}
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_RESEARCH }


		completion_reward = {
			add_tech_bonus = {
				name = YUG_modern_destroyers
				bonus = 1.0
				uses = 1
				category = dd_tech
			}
		}
	}

	focus = {
		id = YUG_expand_the_serbian_shipyards
		icon = GFX_focus_POL_develop_polish_shipbuilding
		mutually_exclusive = { focus = YUG_expand_the_split_shipyards }
		x = 4
		y = 0
		relative_position_id = YUG_expand_the_split_shipyards

		cost = 10

		ai_will_do = {
			factor = 40
		}

		available = {
			OR = {
				has_full_control_of_state = 105
				any_other_country = {
					OR = {
						is_in_faction_with = ROOT
						is_subject_of = ROOT
					}
					has_full_control_of_state = 105
				}
			}
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_INDUSTRY }


		completion_reward = {
			105 = {
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = dockyard
					level = 2
					instant_build = yes
				}
			}
		}
	}

	focus = {
		id = YUG_coastal_defense
		icon = GFX_focus_generic_coastal_fort
		prerequisite = { focus = YUG_expand_the_serbian_shipyards }
		x = 0
		y = 1
		relative_position_id = YUG_expand_the_serbian_shipyards

		cost = 10

		ai_will_do = {
			factor = 30
		}

		available = {
			OR = {
				has_full_control_of_state = 103
				any_other_country = {
					OR = {
						is_in_faction_with = ROOT
						is_subject_of = ROOT
					}
					has_full_control_of_state = 103
				}
				has_full_control_of_state = 105
				any_other_country = {
					OR = {
						is_in_faction_with = ROOT
						is_subject_of = ROOT
					}
					has_full_control_of_state = 105
				}
			}
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no



		completion_reward = {
			#forts on coast and harbor
			if = {
				limit = { 
					OR = {
						has_full_control_of_state = 103
						any_other_country = {
							OR = {
						is_in_faction_with = ROOT
						is_subject_of = ROOT
					}
							has_full_control_of_state = 103
						}
					}
				}
				103 = {
					custom_effect_tooltip = YUG_coastal_defense_effect_tt1
					custom_effect_tooltip = YUG_coastal_defense_effect_tt2
					hidden_effect = {
						add_building_construction = {
							type = coastal_bunker
							province = {
								all_provinces = yes
								limit_to_coastal = yes
							}
							level = 2
							instant_build = yes
						}			
						add_building_construction = {
							type = coastal_bunker
							province = {
								all_provinces = yes
								limit_to_naval_base = yes
							}
							level = 1
							instant_build = yes
						}
					}
				}
			}
			
			if = {
				limit = { 
					OR = {
						has_full_control_of_state = 105
						any_other_country = {
							OR = {
						is_in_faction_with = ROOT
						is_subject_of = ROOT
					}
							has_full_control_of_state = 105
						}
					} 
				}
				105 = {
					custom_effect_tooltip = YUG_coastal_defense_effect_tt1
					custom_effect_tooltip = YUG_coastal_defense_effect_tt2
					hidden_effect = {
						add_building_construction = {
							type = coastal_bunker
							province = {
								all_provinces = yes
								limit_to_coastal = yes
							}
							level = 2
							instant_build = yes
						}			
						add_building_construction = {
							type = coastal_bunker
							province = {
								all_provinces = yes
								limit_to_naval_base = yes
							}
							level = 1
							instant_build = yes
						}
					}
				}
			}
		}
	}

	focus = {
		id = YUG_expand_the_submarine_fleet
		icon = GFX_goal_generic_navy_submarine
		prerequisite = { focus = YUG_coastal_defense }
		x = 0
		y = 2
		relative_position_id = YUG_expand_the_serbian_shipyards

		cost = 10

		ai_will_do = {
			factor = 20
		}

		available = {
			any_owned_state = {
				is_coastal = yes
			}
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no
		search_filters = { FOCUS_FILTER_RESEARCH }


		completion_reward = {
			add_tech_bonus = {
				name = YUG_expand_the_submarine_fleet
				bonus = 1.0
				uses = 1
				category = ss_tech
			}
		}
	}

}