#!gfx:interface\r56_goals.gfx
focus_tree = {
	id = yugoslavian_focus
	
	country = {
		factor = 0
		
		modifier = {
			add = 10
			tag = YUG
		}
	}
	
	default = no
	shared_focus = YUG_fight_isnt_over #RT56 RP
	continuous_focus_position = { x = 50 y = 1750 }

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

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

		cost = 10

		ai_will_do = {
			factor = 200
		}

		search_filters = { FOCUS_FILTER_POLITICAL }
		allow_branch = {
			if = {
				limit = {
					has_game_rule = {
						rule = obsolete_focus_branches_visibility
						option = HIDE
					}
				}
				NOT = { has_completed_focus = YUG_recognize_the_soviet_union }
			}
		}

		completion_reward = {
			mark_focus_tree_layout_dirty = yes
			add_political_power = 120
			add_ideas = king_peter_1
		}
	}

	focus = {
		id = YUG_friendship_treaty_with_italy
		icon = GFX_goal_generic_befriend_italy
		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
			}
		}

		search_filters = { FOCUS_FILTER_POLITICAL }

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

	focus = {
		id = YUG_reinforce_old_alliances
		icon = GFX_allies
		prerequisite = { focus = YUG_western_focus }
		mutually_exclusive = { focus = YUG_friendship_treaty_with_italy }
		x = 3
		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
			}
		}

		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
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			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_focus_mex_privatisation
		prerequisite = { focus = YUG_friendship_treaty_with_italy focus = YUG_reinforce_old_alliances }
		x = 0
		y = 1
		relative_position_id = YUG_reinforce_old_alliances

		cost = 10

		ai_will_do = {
			factor = 80
		}

		search_filters = { FOCUS_FILTER_INDUSTRY }


		completion_reward = {
			add_ideas = YUG_idea_foreign_capital
		}
	}

	focus = {
		id = YUG_attract_axis_capital
		icon = GFX_goal_generic_fascist_bills
		prerequisite = { focus = YUG_friendship_treaty_with_italy focus = YUG_reinforce_old_alliances }
		x = 0
		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 }
				}
			}
		}

		search_filters = { FOCUS_FILTER_INDUSTRY }

		completion_reward = {
			add_ideas = YUG_idea_axis_capital
		}
	}	
	focus = {
		id = YUG_local_militias
		icon = GFX_goal_infantry_flames
		prerequisite = { focus = YUG_reinforce_old_alliances focus = YUG_friendship_treaty_with_italy focus = YUG_form_peasant_councils }
		x = 3
		y = 1
		relative_position_id = YUG_reinforce_old_alliances
		offset = {
			x = -9
			y = 0
			trigger = {
				has_game_rule = {
					rule = obsolete_focus_branches_visibility
					option = HIDE
				}
				has_completed_focus = YUG_recognize_the_soviet_union
			}
		}
		cost = 10

		ai_will_do = {
			factor = 80
		}

		available_if_capitulated = yes

		search_filters = { FOCUS_FILTER_MANPOWER }

		completion_reward = {
			add_war_support = 0.05
			add_ideas = YUG_idea_local_militias
		}
	}

	focus = {
		id = YUG_brigadistas
		icon = GFX_goal_generic_spanish_civil_war_soldier
		prerequisite = { 
			focus = YUG_friendship_treaty_with_italy 
			focus = YUG_reinforce_old_alliances
			focus = YUG_form_peasant_councils 
		}
		x = 2
		y = 0
		relative_position_id = YUG_local_militias

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

		completion_reward = {
			set_rule = { can_send_volunteers = yes }
			add_ideas = YUG_brigadistas_idea
			custom_effect_tooltip = will_be_removed_once_scw_is_over_tt
		}
	}
	
	############################
	##### SELF GOVERNMENT ######
	############################

	focus = {
		id = YUG_limited_self_government
		icon = GFX_goal_AUS_demand_slovenia #GFX_focus_YUG_limited_self_government
		prerequisite = { focus = YUG_attract_allied_capital }
		mutually_exclusive = { focus = YUG_evolution }
		x = 0
		y = 1
		relative_position_id = YUG_attract_allied_capital

		cost = 5

		ai_will_do = {
			factor = 40
		}

		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 = "Teritorijalna Divizija"
						priority = 1
						division_names_group = YUG_GAR_01
						regiments = {
							militia = { x = 0 y = 0 }
							militia = { x = 0 y = 1 }
							militia = { x = 0 y = 2 }
							militia = { x = 1 y = 0 }
							militia = { x = 1 y = 1 }
							militia = { x = 1 y = 2 }
						}
					}
					random_owned_controlled_state = {
						limit = { PREV = { has_full_control_of_state = PREV } }
						create_unit = {
							division = "name = \"1. Slovenska Divizija\" division_template = \"Teritorijalna Divizija\" start_experience_factor = 0.1 start_equipment_factor = 0.3"
							owner = PREV
						}
					}
					random_owned_controlled_state = {
						limit = { PREV = { has_full_control_of_state = PREV } }
						create_unit = {
							division = "name = \"2. Slovenska Divizija\" division_template = \"Teritorijalna Divizija\" start_experience_factor = 0.1 start_equipment_factor = 0.3"
							owner = PREV
						}
					}
				}
				736 = {	#r56 - improves peacedeals by making them give it to their puppet slovenia instead
					remove_core_of = YUG
				}
			}
		}
	}
	
	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 = -1
		y = 1
		relative_position_id = YUG_limited_self_government

		cost = 7.2

		ai_will_do = {
			factor = 40
		}

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

		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_MANPOWER }
		
		completion_reward = {
			remove_ideas = YUG_idea_croatian_opposition
			custom_effect_tooltip = generic_skip_one_line_tt
			#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 = "Teritorijalna Divizija"
						priority = 1
						division_names_group = YUG_GAR_01
						regiments = {
							militia = { x = 0 y = 0 }
							militia = { x = 0 y = 1 }
							militia = { x = 0 y = 2 }
							militia = { x = 1 y = 0 }
							militia = { x = 1 y = 1 }
							militia = { x = 1 y = 2 }
						}
					}
					random_owned_controlled_state = {
						limit = { PREV = { has_full_control_of_state = PREV } }
						create_unit = {
							division = "name = \"1. Hrvatska Divizija\" division_template = \"Teritorijalna Divizija\" start_experience_factor = 0.1 start_equipment_factor = 0.3"
							owner = PREV
						}
					}
					random_owned_controlled_state = {
						limit = { PREV = { has_full_control_of_state = PREV } }
						create_unit = {
							division = "name = \"2. Hrvatska Divizija\" division_template = \"Teritorijalna Divizija\" start_experience_factor = 0.1 start_equipment_factor = 0.3"
							owner = PREV
						}
					}
					random_owned_controlled_state = {
						limit = { PREV = { has_full_control_of_state = PREV } }
						create_unit = {
							division = "name = \"3. Hrvatska Divizija\" division_template = \"Teritorijalna Divizija\" start_experience_factor = 0.1 start_equipment_factor = 0.3"
							owner = PREV
						}
					}
					random_owned_controlled_state = {
						limit = { PREV = { has_full_control_of_state = PREV } }
						create_unit = {
							division = "name = \"4. Hrvatska Divizija\" division_template = \"Teritorijalna Divizija\" start_experience_factor = 0.1 start_equipment_factor = 0.3"
							owner = PREV
						}
					}
				}
				852 = {	#r56 - improves peacedeals by making them give it to their puppet croatia instead
					remove_core_of = YUG
				}
			}
		}
	}
	
	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 = 1
		y = 1
		relative_position_id = YUG_limited_self_government
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_MANPOWER }

		cost = 7.2

		ai_will_do = {
			factor = 40
		}

		available = {
			controls_state = 109
			controls_state = 103
		}

		completion_reward = {
			remove_ideas = YUG_idea_croatian_opposition
			custom_effect_tooltip = generic_skip_one_line_tt
			#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 
					YUG = {
						transfer_state = 804
					}
					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 }
						}
					}
				}
				custom_effect_tooltip = generic_skip_one_line_tt
				event_target:released_nation_target = {
					division_template = {
						name = "Teritorijalna Divizija"
						priority = 1
						division_names_group = YUG_GAR_01
						regiments = {
							militia = { x = 0 y = 0 }
							militia = { x = 0 y = 1 }
							militia = { x = 0 y = 2 }
							militia = { x = 1 y = 0 }
							militia = { x = 1 y = 1 }
							militia = { x = 1 y = 2 }
						}
					}
					random_owned_controlled_state = {
						limit = { PREV = { has_full_control_of_state = PREV } }
						create_unit = {
							division = "name = \"1. Hrvatska Divizija\" division_template = \"Teritorijalna Divizija\" start_experience_factor = 0.1 start_equipment_factor = 0.3"
							owner = PREV
						}
					}
					random_owned_controlled_state = {
						limit = { PREV = { has_full_control_of_state = PREV } }
						create_unit = {
							division = "name = \"2. Hrvatska Divizija\" division_template = \"Teritorijalna Divizija\" start_experience_factor = 0.1 start_equipment_factor = 0.3"
							owner = PREV
						}
					}
				}
				custom_effect_tooltip = generic_skip_one_line_tt
				852 = {	#r56 - improves peacedeals by making them give it to their puppet croatia instead
					remove_core_of = YUG
				}
			}
			
			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 = "Teritorijalna Divizija"
						priority = 1
						division_names_group = YUG_GAR_01
						regiments = {
							militia = { x = 0 y = 0 }
							militia = { x = 0 y = 1 }
							militia = { x = 0 y = 2 }
							militia = { x = 1 y = 0 }
							militia = { x = 1 y = 1 }
							militia = { x = 1 y = 2 }
						}
					}
					random_owned_controlled_state = {
						limit = { PREV = { has_full_control_of_state = PREV } }
						create_unit = {
							division = "name = \"1. Dalmatinska Divizija\" division_template = \"Teritorijalna Divizija\" start_experience_factor = 0.1 start_equipment_factor = 0.3"
							owner = PREV
						}
					}
				}
			}
		}
	}
	
	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 = 7.2

		ai_will_do = {
			factor = 40
		}

		available = {
			controls_state = 104
		}

		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 = "Teritorijalna Divizija"
						priority = 1
						division_names_group = YUG_GAR_01
						regiments = {
							militia = { x = 0 y = 0 }
							militia = { x = 0 y = 1 }
							militia = { x = 0 y = 2 }
							militia = { x = 1 y = 0 }
							militia = { x = 1 y = 1 }
							militia = { x = 1 y = 2 }
						}
						support = {
							engineer = { x = 0 y = 0 }
						}
					}
					random_owned_controlled_state = {
						limit = { PREV = { has_full_control_of_state = PREV } }
						create_unit = {
							division = "name = \"1. Bosanska Divizija\" division_template = \"Teritorijalna Divizija\" start_experience_factor = 0.1 start_equipment_factor = 0.3"
							owner = PREV
						}
					}
					random_owned_controlled_state = {
						limit = { PREV = { has_full_control_of_state = PREV } }
						create_unit = {
							division = "name = \"2. Bosanska Divizija\" division_template = \"Teritorijalna Divizija\" start_experience_factor = 0.1 start_equipment_factor = 0.3"
							owner = PREV
						}
					}
					random_owned_controlled_state = {
						limit = { PREV = { has_full_control_of_state = PREV } }
						create_unit = {
							division = "name = \"3. Bosanska Divizija\" division_template = \"Teritorijalna Divizija\" start_experience_factor = 0.1 start_equipment_factor = 0.3"
							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 = 7.2

		ai_will_do = {
			factor = 40
		}

		available = {
			controls_state = 104
			controls_state = 804
		}

		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 = "Teritorijalna Divizija"
						priority = 1
						division_names_group = YUG_GAR_01
						regiments = {
							militia = { x = 0 y = 0 }
							militia = { x = 0 y = 1 }
							militia = { x = 0 y = 2 }
							militia = { x = 1 y = 0 }
							militia = { x = 1 y = 1 }
							militia = { x = 1 y = 2 }
						}
					}
					random_owned_controlled_state = {
						limit = { PREV = { has_full_control_of_state = PREV } }
						create_unit = {
							division = "name = \"1. Hercegovacka Divizija\" division_template = \"Teritorijalna Divizija\" start_experience_factor = 0.1 start_equipment_factor = 0.3"
							owner = PREV
						}
					}
				}
				if = {
					limit = { BOS = { exists = no } }
					custom_effect_tooltip = generic_skip_one_line_tt
					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 = "Teritorijalna Divizija"
						priority = 1
						division_names_group = YUG_GAR_01
						regiments = {
							militia = { x = 0 y = 0 }
							militia = { x = 0 y = 1 }
							militia = { x = 0 y = 2 }
							militia = { x = 1 y = 0 }
							militia = { x = 1 y = 1 }
							militia = { x = 1 y = 2 }
						}
					}
					random_owned_controlled_state = {
						limit = { PREV = { has_full_control_of_state = PREV } }
						create_unit = {
							division = "name = \"1. Bosanska Divizija\" division_template = \"Teritorijalna Divizija\" start_experience_factor = 0.1 start_equipment_factor = 0.3"
							owner = PREV
						}
					}
				}
			}
		}
	}
	
	focus = {
		id = YUG_dissolve_serbia
		icon = GFX_focus_YUG_dissolve_serbia
		prerequisite = { focus = YUG_limited_self_government }
		x = 3
		y = 2
		relative_position_id = YUG_limited_self_government

		cost = 7.2

		ai_will_do = {
			factor = 40
		}

		available = {
			OR = {
				controls_state = 108
				controls_state = 106
			}
		}

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

		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_MANPOWER }
		completion_reward = {
			remove_ideas = YUG_idea_macedonian_opposition
			custom_effect_tooltip = generic_skip_one_line_tt
			remove_ideas = YUG_idea_serbian_general_staff
			custom_effect_tooltip = generic_skip_one_line_tt
			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 = "Teritorijalna Divizija"
						priority = 1
						division_names_group = YUG_GAR_01
						regiments = {
							militia = { x = 0 y = 0 }
							militia = { x = 0 y = 1 }
							militia = { x = 0 y = 2 }
							militia = { x = 1 y = 0 }
							militia = { x = 1 y = 1 }
							militia = { x = 1 y = 2 }
						}
					}
					random_owned_controlled_state = {
						limit = { PREV = { has_full_control_of_state = PREV } }
						create_unit = {
							division = "name = \"1. Makedonska Divizija\" division_template = \"Teritorijalna Divizija\" start_experience_factor = 0.1 start_equipment_factor = 0.3"
							owner = PREV
						}
					}
					random_owned_controlled_state = {
						limit = { PREV = { has_full_control_of_state = PREV } }
						create_unit = {
							division = "name = \"2. Makedonska Divizija\" division_template = \"Teritorijalna Divizija\" start_experience_factor = 0.1 start_equipment_factor = 0.3"
							owner = PREV
						}
					}
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			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 = "Teritorijalna Divizija"
						priority = 1
						division_names_group = YUG_GAR_01
						regiments = {
							militia = { x = 0 y = 0 }
							militia = { x = 0 y = 1 }
							militia = { x = 0 y = 2 }
							militia = { x = 1 y = 0 }
							militia = { x = 1 y = 1 }
							militia = { x = 1 y = 2 }
						}
					}
					random_owned_controlled_state = {
						limit = { PREV = { has_full_control_of_state = PREV } }
						create_unit = {
							division = "name = \"1. Arnautska Divizija\" division_template = \"Teritorijalna Divizija\" start_experience_factor = 0.1 start_equipment_factor = 0.3"
							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 = "Teritorijalna Divizija"
						priority = 1
						division_names_group = YUG_GAR_01
						regiments = {
							militia = { x = 0 y = 0 }
							militia = { x = 0 y = 1 }
							militia = { x = 0 y = 2 }
							militia = { x = 1 y = 0 }
							militia = { x = 1 y = 1 }
							militia = { x = 1 y = 2 }
						}
					}
					random_owned_controlled_state = {
						limit = { PREV = { has_full_control_of_state = PREV } }
						create_unit = {
							division = "name = \"1. Crnogorska Divizija\" division_template = \"Teritorijalna Divizija\" start_experience_factor = 0.1 start_equipment_factor = 0.3"
							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 }
		}
	}

	#Fate of Banat - replacing three similar focuses with one event for better focus tree layout (Fantom)
	focus = {
		id = YUG_fate_of_banat
		icon = GFX_focus_YUG_autonomous_transylvania
		prerequisite = { focus = YUG_dissolve_serbia }
		prerequisite = { focus = YUG_safeguard_bosnia focus = YUG_divide_bosnia }
		x = 1
		y = 1
		relative_position_id = YUG_safeguard_bosnia

		cost = 5

		ai_will_do = {
			factor = 20
		}

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

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

		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_MANPOWER FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			country_event = r56_yugoslavia.3
		}
	}
	
	##############################
	##### CRUSH NATIONALISM ######
	##############################
	
	focus = {
		id = YUG_evolution
		icon = GFX_focus_generic_military_dictatorship
		prerequisite = { 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
		}

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

		search_filters = { FOCUS_FILTER_POLITICAL }

		completion_reward = {
			activate_mission = YUG_ustasa_uprising
			activate_mission = YUG_ustasa_crushed_mission
		}
	}

	focus = {
		id = YUG_establish_the_banovina_of_croatia
		icon = GFX_goal_CRO_national_rebirth
		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
		}

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

	focus = {
		id = YUG_ban_slovene_nationalist_parties
		icon = GFX_focus_spr_the_anti_fascist_workers_revolution
		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 = 5

		ai_will_do = {
			factor = 40
		}

		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
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			ITA = {
				add_opinion_modifier = { 
					target = ROOT
					modifier = small_increase
				}
			}
		}
	}

	focus = {
		id = YUG_slovenia_for_support
		icon = GFX_focus_YUG_slovenia_for_support
		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 = {
			controls_state = 102
			ITA = {
				NOT = { has_war_with = ROOT }
				exists = yes
			}
		}

		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_INDUSTRY }

		complete_tooltip = {

		}

		completion_reward = {
			remove_ideas = YUG_idea_slovene_nationalism
			custom_effect_tooltip = generic_skip_one_line_tt
			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
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			ITA = {
				add_opinion_modifier = { 
					target = ROOT
					modifier = YUG_gave_away_slovenia
				}
			}
			hidden_effect = {
				add_opinion_modifier = { 
					target = ITA
					modifier = YUG_gave_away_slovenia
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			102 = {
				remove_core_of = ROOT
			}
			853 = {
				remove_core_of = ROOT
			}
		}
	}
	
	focus = {
		id = YUG_concessions_for_macedonians
		icon = GFX_goal_generic_befriend_macedonia
		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
			}
		}

		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
		}

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

		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_goal_generic_german_advisor
		prerequisite = { focus = YUG_concessions_for_macedonians focus = YUG_surrender_macedonia focus = YUG_fate_of_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
			}
		}

		search_filters = { FOCUS_FILTER_POLITICAL }

		complete_tooltip = {

		}

		completion_reward = {
			remove_ideas = anti_german_military
		}
	}

	focus = {
		id = YUG_join_axis
		icon = GFX_goal_generic_the_axis
		prerequisite = { focus = YUG_concessions_for_macedonians focus = YUG_surrender_macedonia focus = YUG_fate_of_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 = {
			is_subject = no
			is_in_faction = no
			OR = {
				GER = {
					NOT = { has_war_with = ROOT }
					has_government = fascism
					has_capitulated = no
					is_faction_leader = yes
					has_opinion = {
						target = ROOT
						value > -11
					}
					NOT = {
						any_other_country = {
							is_in_faction_with = GER
							has_war_with = YUG
						}
					}											
				}
				any_other_country = {
					is_major = yes
					has_government = fascism
					is_faction_leader = yes
					NOT = { has_war_with = ROOT }
					has_opinion = {
						target = ROOT
						value > -11
					}						
				}
			}

		}

		bypass = {
			is_in_faction_with = GER
		}

		search_filters = { FOCUS_FILTER_POLITICAL }

		completion_reward = {
			if = {
				limit = {
					GER = {
						exists = yes
						has_capitulated = no
						has_government = fascism
						is_faction_leader = yes
					}
					NOT = {
						any_other_country = {
							is_in_faction_with = GER
							has_war_with = ROOT
						}
					}						
				}
				GER = { country_event = DOD_yugoslavia.70 }
			}
			else = {
				get_best_alliance_match_fascism_effect = yes
				var:best_leader = {
					country_event = DOD_yugoslavia.70
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			YUG_prince_paul = {
				add_country_leader_role = {
					country_leader = {
						expire = "1965.1.1"
						ideology = fascism_ideology
						traits = {
							mediator
						}
					}
					promote_leader = yes
				}
			}
			if = {
				limit = {
					has_idea = r56_YUG_balkan_pact
				}
				custom_effect_tooltip = generic_skip_one_line_tt
				activate_decision = r56_abandon_the_balkan_pact
			}
		}
	}

	focus = {
		id = YUG_zara_for_axis
		icon = GFX_goal_generic_attack_allies
		prerequisite = { focus = YUG_join_axis }
		mutually_exclusive = { focus = YUG_surrender_italian_claims focus = YUG_irredentism_towards_italy }
		x = -1
		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
			}
		}

		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_italy_italianize_dalmatia
		prerequisite = { focus = YUG_join_axis }
		mutually_exclusive = { focus = YUG_zara_for_axis focus = YUG_irredentism_towards_italy }
		x = -3
		y = 1
		relative_position_id = YUG_join_axis

		cost = 10

		ai_will_do = {
			factor = 100
		}

		available = {
			OR = {
				GER = {
					NOT = { has_war_with = ROOT }
					is_in_faction_with = ITA
					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 = PREV
					has_war_with = YUG
				}
			}
			NOT = { has_completed_focus = YUG_end_the_regency }
		}

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

		search_filters = { FOCUS_FILTER_ALLIANCE FOCUS_FILTER_POLITICAL }

		completion_reward = {
			every_state = {
				limit = {
					OR = {
						state = 163
						state = 736
						state = 852
					}
					is_core_of = ROOT	#logical check
				}
				remove_core_of = ROOT
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			if = {
				limit = {
					GER = {
						exists = yes
						is_in_faction_with = ITA
						has_capitulated = no
						has_government = fascism
						is_faction_leader = yes
					}
				}
				GER = { country_event = generic.2 }
			}
			else_if = {
				limit = {
					ITA = {
						exists = yes
						has_capitulated = no
						has_government = fascism
						is_faction_leader = yes
					}
				}
				ITA = { country_event = generic.2 }
			}
			else_if = {
				limit = {
					HUN = {
						exists = yes
						has_capitulated = no
						is_faction_leader = yes
						is_in_faction_with = ITA
					}
				}
				ITA = { country_event = generic.2 }
			}						
			else = {
				get_best_alliance_match_fascism_effect = yes
				var:best_leader = {
					country_event = generic.2
				}
			}
		}
	}

	focus = {
		id = YUG_irredentism_towards_italy
		icon = GFX_focus_SWI_fortify_border_with_italy
		prerequisite = { focus = YUG_join_axis focus = YUG_end_the_regency }
		mutually_exclusive = { focus = YUG_surrender_italian_claims focus = YUG_zara_for_axis }
		x = 1
		y = 1
		relative_position_id = YUG_join_axis
		cost = 5
	
		ai_will_do = {
			factor = 10
			modifier = {
				factor = 0.5
				has_completed_focus = YUG_friendship_treaty_with_italy
			}		
		}

		available = {
			NOT = {
				is_in_faction_with = ITA
			}
			has_army_manpower = { size > 79999 }
		}

		completion_reward = {
			if = {
				limit = {
					controls_state = 958
					controls_state = 853
					controls_state = 103
				}
				ITA = { custom_effect_tooltip = SWI_add_forts_bordering }
				hidden_effect = {	
					every_owned_state = {
						add_building_construction = {
							type = bunker
							level = 2
							instant_build = yes
							province = {
								all_provinces = yes
								limit_to_border_country = ITA
							}
						}
					}
				}
				add_political_power = 75
				add_war_support = 0.10				
			}
			else = {
				add_political_power = 100
				add_war_support = 0.15				
			}

			add_opinion_modifier = { 
				target = ITA
				modifier = huge_decrease
			}
			if = {
				limit = {
					country_exists = VNZ
					VNZ = {
						NOT = {
							is_subject_of = ROOT
						}
					}
				}
				add_opinion_modifier = { 
					target = VNZ
					modifier = huge_decrease
				}				
			}
		}
	}
	focus = {
		id = YUG_attack_italy
		icon = GFX_goal_generic_attack_italy
		relative_position_id = YUG_irredentism_towards_italy
		x = 0
		y = 1
		prerequisite = {
			focus = YUG_irredentism_towards_italy
		}
		available = {
			is_subject = no
			NOT = {
				is_ally_with = 852.owner
			}
			has_army_manpower = { size > 99999 }
		}

		ai_will_do = {
			factor = 10
			modifier = {
				factor = 0.5
				has_completed_focus = YUG_friendship_treaty_with_italy
			}		
		}
		bypass = {
			AND = {
				852 = { 
					controller = { 
						OR = {
							has_war_with = ROOT
							tag = ROOT
							is_subject_of = ROOT
						}
						
					}
				}
				736= { 
					controller = { 
						OR = {
							has_war_with = ROOT
							tag = ROOT
							is_subject_of = ROOT
						}
						
					}
				}
				163= { 
					controller = { 
						OR = {
							has_war_with = ROOT
							tag = ROOT
							is_subject_of = ROOT
						}
					}
				}
			}
		}
		will_lead_to_war_with = ITA
		cost = 5
		completion_reward = {
			
			if = {
				limit = {
					852 = {
						owner = {
							NOT = {
								original_tag = ROOT
								is_ally_with = ROOT
							}
						}
					}
				}
				create_wargoal = {
					target = 852.owner
					type = take_claimed_state
					generator = { 852 736 163 }
				}
			}
			if = {
				limit = {
					736 = {
						owner = {
							NOT = {
								original_tag = ROOT
								is_ally_with = ROOT
								owns_state = 852
							}
						}
					}
				}
				create_wargoal = {
					target = 736.owner
					type = take_claimed_state
					generator = { 852 736 163 }
				}
			}
			if = {
				limit = {
					163 = {
						owner = {
							NOT = {
								original_tag = AUS
								is_ally_with = AUS
								owns_state = 852
								owns_state = 736
							}
						}
					}
				}
				create_wargoal = {
					target = 163.owner
					type = take_claimed_state
					generator = { 852 736 163 }
				}
			}
			add_named_threat = {
				threat = 2
				name = AUS_our_western_lands
			}
		}
	}

	focus = {
		id = YUG_claim_bulgaria
		icon = GFX_focus_generic_attack_bulgaria
		prerequisite = { focus = YUG_zara_for_axis focus = YUG_surrender_italian_claims focus = YUG_attack_italy }
		x = -2
		y = 2
		relative_position_id = YUG_zara_for_axis
		cost = 10
		ai_will_do = { base = 60 }
		search_filters = { FOCUS_FILTER_ANNEXATION }
		will_lead_to_war_with = BUL
		available = { 
			is_subject = no
			NOT = {
				48 = { 
					controller = { is_ally_with = ROOT }
				}
			} 
		}
		bypass = {
			48 = { 
				controller = { has_war_with = ROOT }
			}
		}
		completion_reward = {
			add_named_threat = { threat = 2 name = YUG_claim_bulgaria }
			every_state = {
				limit = { is_core_of = BUL }
				add_claim_by = YUG
			}
			every_other_country = {
				limit = {
					NOT = { is_ally_with = ROOT }
					any_controlled_state = { 
						OR = {
							state = 48
							state = 801
							state = 211
							state = 212
						}
					}
				}
				YUG = {
					create_wargoal = {
						target = PREV
						type = take_state_focus
						expire = 0
					}
				}
			}
			custom_effect_tooltip = CHL_skip_one_line_tt
			news_event = { id = news.325 }
			unlock_decision_tooltip = YUG_establish_union_with_sofia
		}
	}
	
	focus = {
		id = YUG_subjugate_albania
		prerequisite = { focus = YUG_zara_for_axis focus = YUG_surrender_italian_claims focus = YUG_attack_italy}
		icon = GFX_goal_generic_attack_albania
		x = 0
		y = 2
		relative_position_id = YUG_zara_for_axis
		cost = 7.15
		ai_will_do = { base = 40 }
		available = { 
			is_subject = no
			NOT = {
				44 = { 
					controller = { is_ally_with = ROOT }
				}
			} 
		}
		bypass = {
			44 = { 
				controller = { has_war_with = ROOT }
			}
		}
		will_lead_to_war_with = ALB
		completion_reward = {
			custom_effect_tooltip = YUG_albanian_claims_tt
			every_other_country = {
				limit = {
					NOT = { is_ally_with = ROOT }
					any_controlled_state = { 
						OR = {
							state = 44
							state = 805
							state = 910
						}
					}
				}
				YUG = {
					create_wargoal = {
						target = PREV
						type = take_state_focus
						expire = 0
					}
				}
			}
			custom_effect_tooltip = CHL_skip_one_line_tt
			unlock_decision_tooltip = YUG_integrate_northern_albania
			unlock_decision_tooltip = YUG_integrate_central_albania
			unlock_decision_tooltip = YUG_integrate_southern_albania
			custom_effect_tooltip = CHL_skip_one_line_tt
			add_named_threat = { threat = 1 name = YUG_subjugate_albania }
		}
		search_filters = { FOCUS_FILTER_ANNEXATION }
	}
	
	focus = {
		id = YUG_proclaim_greater_yugoslavia
		icon = GFX_focus_YUG_greater_yugoslavia
		prerequisite = { 
			focus = YUG_claim_bulgaria
			focus = YUG_subjugate_albania 
		}
		x = 1
		y = 1
		relative_position_id = YUG_claim_bulgaria
		cost = 7.15
		ai_will_do = { base = 50 }
		available = {
			OR = {
				AND = {
					controls_state = 48
					controls_state = 212
					controls_state = 801
					controls_state = 211
				}
				AND = {
					controls_state = 910
					controls_state = 44
					controls_state = 805
				}
			}
			
		}
		completion_reward = {
			if = {
				limit = {
					NOT = {
						has_rule = can_create_factions
					}
				}
				set_rule = { can_create_factions = yes }				
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			add_stability = 0.05
			add_war_support = 0.05
			add_popularity = {
				ideology = ROOT
				popularity = 0.05
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			custom_effect_tooltip = YUG_proclaim_greater_yugoslavia_tt
			hidden_effect = { set_cosmetic_tag = YUG_GREATER }
		}
	}
	focus = {
		id = YUG_organize_our_alliance
		text = KAL_organize_our_alliance
		icon = GFX_focus_BUL_free_balkan_states
		#mutually_exclusive = { focus = JAP_reprimand_hamada_kunimatsu }
		x = 0
		y = 1
		relative_position_id = YUG_proclaim_greater_yugoslavia

		prerequisite = { focus = YUG_proclaim_greater_yugoslavia }

		allow_branch = { has_dlc = "No Compromise, No Surrender" }

		cost = 10

		ai_will_do = {
			factor = 5
		}

		available = {
			is_faction_leader = yes
			num_faction_members > 1
		}

		bypass = {

		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		search_filters = {  }

		completion_reward = {

			IF = {
				limit = {
					has_dlc = "No Compromise, No Surrender"
				}
				add_faction_initiative = 1
				custom_effect_tooltip = generic_skip_one_line_tt
				add_faction_goal_slot = {
					category  = medium_term
					value = 1 
				}				
			}					
		}
	}			
	focus = {
		id = YUG_press_bulgarian_claims_on_thrace
		prerequisite = { focus = YUG_claim_bulgaria }
		relative_position_id = YUG_claim_bulgaria
		icon = GFX_focus_BUL_demand_macedonia
		x = -1
		y = 1
		cost = 10
		ai_will_do = { base = 40 }
		available = {
			GRE = {
				has_full_control_of_state = 184
				has_full_control_of_state = 731
			}
			is_subject = no
			NOT = {
				is_in_faction_with = GRE
				has_war_with = GRE
			}
		}
		completion_reward = {
		  	GRE = { country_event = yugoslavia.29 }
			if = {
				limit = { owns_state = 106 }
				add_state_core = 731
			}
			custom_effect_tooltip = CHL_skip_one_line_tt
			add_named_threat = { threat = 1 name = YUG_press_bulgarian_claims_on_thrace }
		}
	}

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

		cost = 10

		ai_will_do = {
			factor = 100
		}

		available = {
			ITA = {
				is_ally_with = ROOT
				exists = yes
				has_capitulated = no
			}
		}

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

	focus = {
		id = YUG_all_yugoslavian_regiments
		icon = GFX_focus_YUG_all_yugoslavian_regiments
		prerequisite = { 
			focus = YUG_proclaim_greater_yugoslavia
			focus = YUG_defence_league 
		}
		x = 5
		y = 1
		relative_position_id = YUG_press_bulgarian_claims_on_thrace

		cost = 10

		ai_will_do = {
			factor = 80
		}

		search_filters = { FOCUS_FILTER_MANPOWER }

		complete_tooltip = {

		}

		completion_reward = {
			add_ideas = YUG_idea_all_yugoslavian_regiments

			every_country = {
				limit = {
					is_ally_with = ROOT
					OR = {
						original_tag = CRO
						original_tag = SLV
						original_tag = MAC
						original_tag = SER
						original_tag = BOS
						original_tag = HRZ
						original_tag = TRA
						original_tag = MNT
						original_tag = KOS
						AND = {
							original_tag = HUN
							has_cosmetic_tag = vojvodina
						}
						original_tag = SER
					}
				}
				add_ideas = YUG_idea_all_yugoslavian_regiments
			}

		}
	}

	

	
	focus = {
		id = YUG_end_the_regency
		icon = GFX_focus_generic_monarchist_sentiment
		prerequisite = { focus = YUG_concessions_for_macedonians focus = YUG_surrender_macedonia focus = YUG_fate_of_banat }
		mutually_exclusive = { focus = YUG_join_axis }
		x = -1
		y = 1
		relative_position_id = YUG_fate_of_banat

		cost = 10

		ai_will_do = {
			factor = 40
		}

		available = {
			date > 1938.09.06
		}

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

		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			if = {
				limit = {
					date < 1941.09.06
				}
				YUG_peter_ii = {
					promote_character = {ideology = constitutional_monarchy }
					promote_character = {ideology = conservatism }
				}
			}
			else = {
				YUG_peter_ii = {
					swap_country_leader_traits = { remove = underage_monarch add = legitimate_heir }
				}
				if = {				#retirement of prince paul
					limit = {
						has_idea = YUG_prince_paul
					}
					remove_ideas = YUG_prince_paul
				}
				set_country_flag = peter_is_of_age
			}
		}
	}
	
	focus = {
		id = YUG_coronation
		icon = GFX_focus_YUG_western_focus
		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 = {
			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
					}
				}
			}
		}

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

		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_focus_CHL_invite_french_aristocracy
		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 = {
			is_subject = no
			is_in_faction = no
			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
		}

		search_filters = { FOCUS_FILTER_ALLIANCE 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_focus_generic_flight_instructors
		prerequisite = { focus = YUG_join_allies }
		x = 0
		y = 1
		relative_position_id = YUG_join_allies

		cost = 10

		ai_will_do = {
			factor = 100
		}

		available = {
			OR = {
				is_in_faction_with = ENG
				is_in_faction_with = FRA
				is_in_faction_with = USA
			}
			any_allied_country = {
				is_faction_leader = yes	
				OR = {
					has_government = democratic
					has_government = neutrality
				}
			}
			
		}

		completion_reward = {
			add_to_tech_sharing_group = YUG_air_research_group
			if = {
				limit = {
					is_in_faction_with = ENG
				}
				ENG = {
					add_to_tech_sharing_group = YUG_air_research_group
				}				
			}
			if = {
				limit = {
					NOT = {
						is_in_faction_with = ENG
					}
					is_in_faction_with = USA
				}
				USA = {
					add_to_tech_sharing_group = YUG_air_research_group
				}				
			}
			if = {
				limit = {
					NOT = {
						is_in_faction_with = ENG
						is_in_faction_with = USA
					}
					is_in_faction_with = FRA
				}
				FRA = {
					add_to_tech_sharing_group = YUG_air_research_group
				}				
			}			
			custom_effect_tooltip = generic_skip_one_line_tt
			add_ideas = YUG_air_combat_school
		}
	}
	
	focus = {
		id = YUG_enforced_neutrality
		icon = GFX_focus_SWI_neutrality_on_the_move
		prerequisite = { focus = YUG_royal_wedding }
		prerequisite = { focus = YUG_coronation }
		mutually_exclusive = { focus = YUG_join_allies }
		x = 0
		y = 1
		relative_position_id = YUG_coronation
		available = {
			has_war = no
			is_subject = no
			is_in_faction = no
		}
		cost = 10

		ai_will_do = {
			factor = 40
		}

		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
		available = {
			OR = {
				has_full_control_of_state = 102
				has_full_control_of_state = 103
				has_full_control_of_state = 109
			}
		}
		ai_will_do = {
			factor = 40
		}

		search_filters = { FOCUS_FILTER_MANPOWER }
		completion_reward = {
			if = {
				limit = {
					controls_state = 102
				}
				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 }
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			add_tech_bonus = {
				name = FRA_fortification_focus
				bonus = 1
				uses = 1
				category = cat_fortification
			}
		}
	}
	
	focus = {
		id = YUG_towards_independence
		icon = GFX_goal_tfv_sever_ties_with_uk
		prerequisite = { focus = YUG_fate_of_banat }
		mutually_exclusive = { focus = YUG_united_kingdom }
		x = 1
		y = 1
		relative_position_id = YUG_fate_of_banat

		cost = 5

		ai_will_do = {
			factor = 40
		}

		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 = 5

		ai_will_do = {
			factor = 40
		}

		search_filters = { FOCUS_FILTER_MANPOWER }
		completion_reward = {
			division_template = {
				name = "Teritorijalna Odbrana"
				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 = "Teritorijalna Odbrana"
				is_locked = yes
			}
			random_owned_controlled_state = {
				limit = { PREV = { has_full_control_of_state = PREV } }
				create_unit = {
					division = "name = \"Teritorijalna Odbrana\" division_template = \"Teritorijalna Odbrana\" start_experience_factor = 0.1 start_equipment_factor = 0.3"
					owner = PREV
				}
			}
			every_other_country = {
				limit = {
					capital_scope = {
						is_on_continent = europe
					}
					NOT = { original_tag = YUG }
					is_subject_of = ROOT
				}
				add_command_power = 100	
				division_template = {
					name = "Teritorijalna Odbrana"
					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 = "Teritorijalna Odbrana"
					is_locked = yes
				}
				random_owned_controlled_state = {
					limit = { PREV = { has_full_control_of_state = PREV } }
					create_unit = {
						division = "name = \"Teritorijalna Odbrana\" division_template = \"Teritorijalna Odbrana\" start_experience_factor = 0.1 start_equipment_factor = 0.3"
						owner = PREV
					}
				}
			}
		}
	}
	
	focus = {
		id = YUG_defence_league
		icon = GFX_goal_generic_democratic_army
		prerequisite = { focus = YUG_defence_army_of_yugoslavia }
		x = 0
		y = 3
		relative_position_id = YUG_defence_army_of_yugoslavia
		
		cost = 5

		ai_will_do = {
			factor = 500
		}

		search_filters = { FOCUS_FILTER_MANPOWER }

		select_effect = {	#do the faction stuff before splitting, otherwise puppet breakoff needs to be delayed (since faction invites take time for response)
			set_rule = {
				can_create_factions = yes
			}
			if = {
				limit = {
					is_in_faction = no
					ROM = {
						is_faction_leader = yes
						has_war = no
						OR = {
							has_government = democratic
							has_government = neutrality
						}
					}
				}
				ROM = {
					country_event = generic.2
				}
			}
			
			else_if = {
				limit = {
					is_in_faction = no
					CZE = {
						is_faction_leader = yes
						has_war = no
						OR = {
							has_government = democratic
							has_government = neutrality
						}
					}
				}
				CZE = {
					country_event = generic.2
				}
			}
			else_if = {
				limit = {
					is_in_faction = no
					GRE = {
						is_faction_leader = yes
						has_war = no
						OR = {
							has_government = democratic
							has_government = neutrality
						}
					}
				}
				GRE = {
					country_event = generic.2
				}
			}	
			
			else_if = {
				limit = {
					is_in_faction = no
					TUR = {
						is_faction_leader = yes
						has_war = no
						OR = {
							has_government = democratic
							has_government = neutrality
						}
					}
				}
				TUR = {
					country_event = generic.2
				}
			}	
			else_if = {
				limit = {
					is_in_faction = no
					HUN = {
						is_faction_leader = yes
						has_war = no
						OR = {
							has_government = democratic
							has_government = neutrality
						}
					}
				}
				HUN = {
					country_event = generic.2
				}
			}
			else_if = {
				limit = {
					is_in_faction = no
					AUS = {
						is_faction_leader = yes
						has_war = no
						OR = {
							has_government = democratic
							has_government = neutrality
						}
					}
				}
				AUS = {
					country_event = generic.2
				}
			}											
			else_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
				}
			}
		}
		completion_reward = {
			if = {
				limit = {
					NOT = {
						has_rule = can_create_factions
					}
				}
				set_rule = { can_create_factions = yes }				
			}
			add_political_power = 150
			set_division_template_lock = {
				division_template = "Teritorijalna Odbrana"
				is_locked = no
			}
			random_owned_controlled_state = {
				limit = { PREV = { has_full_control_of_state = PREV } }
				create_unit = {
					division = "name = \"Teritorijalna Odbrana\" division_template = \"Teritorijalna Odbrana\" start_experience_factor = 0.1 start_equipment_factor = 0.3"
					owner = PREV
				}
			}
			every_other_country = {
				limit = {
					capital_scope = {
						is_on_continent = europe
					}
					NOT = { original_tag = YUG }
					is_subject_of = ROOT
				}
				add_stability = 0.05
				add_war_support = 0.1
				add_political_power = 150	
						
				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 = "Teritorijalna Odbrana"
					is_locked = no
				}
				random_owned_controlled_state = {
					limit = { PREV = { has_full_control_of_state = PREV } }
					create_unit = {
						division = "name = \"Teritorijalna Odbrana\" division_template = \"Teritorijalna Odbrana\" start_experience_factor = 0.1 start_equipment_factor = 0.3"
						owner = PREV
					}
				}
			}
		}
	}
	
	focus = {
		id = YUG_united_kingdom
		icon = GFX_goal_generic_befriend_yugoslavia
		prerequisite = { focus = YUG_fate_of_banat }
		mutually_exclusive = { focus = YUG_towards_independence }
		x = 3
		y = 1
		relative_position_id = YUG_fate_of_banat

		cost = 10

		ai_will_do = {
			factor = 40
		}

		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_focus_YUG_guarantee_religious_liberties
		prerequisite = { focus = YUG_united_kingdom }
		mutually_exclusive = {  }
		x = 0
		y = 1
		relative_position_id = YUG_united_kingdom

		cost = 10

		ai_will_do = {
			factor = 40
		}

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

		search_filters = { FOCUS_FILTER_POLITICAL }

		completion_reward = {
			drop_cosmetic_tag = yes
			every_other_country = {
				limit = {
					capital_scope = {
						is_on_continent = europe
					}
					NOT = { original_tag = YUG }
					is_subject_of = ROOT
					OR = {
						original_tag = CRO
						original_tag = SLV
						original_tag = MAC
						original_tag = SER
						original_tag = BOS
						original_tag = HRZ
						original_tag = TRA
						original_tag = MNT
						original_tag = KOS
						AND = {
							original_tag = HUN
							has_cosmetic_tag = vojvodina
						}
						original_tag = SER
					}
				}
				every_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_goal_generic_soviet_assistance
		mutually_exclusive = { focus = YUG_western_focus }
		x = 12
		y = 0
		offset = {
			x = -8
			y = 0
			trigger = {
				has_game_rule = {
					rule = obsolete_focus_branches_visibility
					option = HIDE
				}
				has_completed_focus = YUG_recognize_the_soviet_union
			}
		}
		cost = 10

		ai_will_do = {
			factor = 50
		}

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

		search_filters = { FOCUS_FILTER_POLITICAL }
		allow_branch = {
			if = {
				limit = {
					has_game_rule = {
						rule = obsolete_focus_branches_visibility
						option = HIDE
					}
				}
				NOT = { has_completed_focus = YUG_western_focus }
			}
		}
		completion_reward = {
			mark_focus_tree_layout_dirty = yes
			SOV = {
				add_opinion_modifier = { 
					target = ROOT
					modifier = medium_increase
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			if = {
				limit = {
					has_country_leader_with_trait = r56_trait_opposed_to_communism
				}
				remove_country_leader_trait = r56_trait_opposed_to_communism
			}
			add_popularity = { ideology = communism popularity = 0.05 }
			hidden_effect = { 
				news_event = { id = news.329 days = 3 random_days = 6 }
			}
			if = {
				limit = {
					has_idea = r56_YUG_balkan_pact
				}
				custom_effect_tooltip = generic_skip_one_line_tt
				activate_decision = r56_abandon_the_balkan_pact
			}
		}
	}

	focus = {
		id = YUG_form_peasant_councils
		icon = GFX_focus_ITA_peasants_rise
		prerequisite = { focus = YUG_recognize_the_soviet_union }
		x = 0
		y = 1
		relative_position_id = YUG_recognize_the_soviet_union

		cost = 10

		ai_will_do = {
			factor = 200
		}

		search_filters = { FOCUS_FILTER_POLITICAL }

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

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

		cost = 10

		ai_will_do = {
			factor = 150
		}

		available = {
			communism > 0.4
		}

		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_soviet_cooperation
		icon = GFX_focus_chi_mission_to_the_soviet_union
		prerequisite = { focus = YUG_abolish_the_monarchy }
		mutually_exclusive = { focus = YUG_yugoslavian_path_to_communism focus = YUG_yugoslavian_international_communism }
		x = -1
		y = 1
		relative_position_id = YUG_abolish_the_monarchy
		offset = {
			x = -2
			y = 0
			trigger = {
				has_game_rule = {
					rule = obsolete_focus_branches_visibility
					option = HIDE
				}
				has_completed_focus = YUG_recognize_the_soviet_union
			}
		}
		cost = 10

		ai_will_do = {
			factor = 40
		}

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

		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_POLITICAL }

		completion_reward = {
			add_popularity = {
    				ideology = communism
    				popularity = 0.05
			}
			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_join_comintern
		icon = GFX_focus_generic_join_comintern
		prerequisite = { focus = YUG_soviet_cooperation }
		x = -1
		y = 1
		relative_position_id = YUG_soviet_cooperation

		cost = 10

		ai_will_do = {
			factor = 80
		}

		available = {
			is_subject = no
			is_in_faction = no
			OR = {
				SOV = {
					NOT = { has_war_with = ROOT }
					exists = yes
					has_capitulated = no
					#these were missing and could lead to Yugoslavia joining no faction
					has_government = communism
					is_faction_leader = yes
				}
				any_other_country = {	#a backup I guess
					is_major = yes
					has_government = communism
					is_faction_leader = yes
				}
			}
			NOT = {
				any_other_country = {
					is_in_faction_with = SOV
					has_war_with = YUG
				}
			}
		}

		bypass = {
			is_in_faction_with = SOV
		}

		search_filters = { FOCUS_FILTER_ALLIANCE 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_befriend_yugoslavia_communist
		prerequisite = { focus = YUG_abolish_the_monarchy }
		mutually_exclusive = { focus = YUG_soviet_cooperation focus = YUG_yugoslavian_international_communism }
		x = 6
		y = 0
		relative_position_id = YUG_soviet_cooperation

		cost = 5

		ai_will_do = {
			factor = 60
		}

		available = {
			is_in_faction = no
		}

		bypass = {
		#	is_in_faction = yes
		}

		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_yugoslavian_international_communism
		icon = GFX_focus_ger_great_red_menace
		prerequisite = { focus = YUG_abolish_the_monarchy }
		mutually_exclusive = { focus = YUG_soviet_cooperation focus = YUG_yugoslavian_path_to_communism }
		x = 3
		y = 0
		relative_position_id = YUG_soviet_cooperation

		cost = 5

		ai_will_do = {
			factor = 70
		}

		available = {
			is_in_faction = no
			any_other_country = {
					capital_scope = {
						is_on_continent = europe
					}
					NOT = {
						original_tag = SOV
					}
					is_faction_leader = yes
					has_government = communism
					NOT = {
						has_war_with = ROOT
					}
			}
		}

		bypass = {
			is_in_faction = yes
		}

		completion_reward = {
			if = {
				limit = {
					any_other_country = {
						capital_scope = {
							is_on_continent = europe
						}
						NOT = {
							original_tag = SOV
						}
						is_faction_leader = yes
						has_government = communism
						NOT = {
							has_war_with = ROOT
						}
					}
				}
				r56_other_faction_invite_communism_NOT_SOV = yes
			}
			add_political_power = 50
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}	

	focus = {
		id = YUG_form_the_federal_republic
		icon = GFX_goal_yug_tito
		prerequisite = { focus = YUG_yugoslavian_path_to_communism focus = YUG_soviet_cooperation focus = YUG_yugoslavian_international_communism  }
		x = -3
		y = 1
		relative_position_id = YUG_yugoslavian_path_to_communism

		cost = 10

		ai_will_do = {
			factor = 100
		}

		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY FOCUS_FILTER_INDUSTRY }

		completion_reward = {
			add_political_power = -25
			swap_ideas = {
				remove_idea = YUG_idea_slovene_nationalism
				add_idea = YUG_idea_slovene_nationalism_2
			}
		}
	}
	focus = {
		id = YUG_economic_centralization
		icon = GFX_goal_CRO_communist_republic
		prerequisite = {focus = YUG_form_the_federal_republic}
		relative_position_id = YUG_form_the_federal_republic
		x = -2
		y = 1
		cost = 10

		available_if_capitulated = yes
		ai_will_do = {
			factor = 50
		}
		completion_reward = {
			if = {
				limit = { has_idea = neutrality_idea }
				remove_ideas = neutrality_idea
			}		
			add_political_power = 50
			add_ideas = CRO_idea_economic_centralization
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}	
	focus = {
		id = YUG_neutralize_the_opposition
		icon = GFX_focus_GRE_oposition
		prerequisite = { focus = YUG_form_the_federal_republic }
		x = 2
		y = 1
		relative_position_id = YUG_form_the_federal_republic

		cost = 10

		ai_will_do = {
			factor = 50
		}

		completion_reward = {
			if = {
				limit = {
					has_dlc = "La Resistance"
					NOT = {
						has_intelligence_agency = yes
					}
				}
				create_intelligence_agency = yes
				custom_effect_tooltip = generic_skip_one_line_tt
			}
			remove_ideas = YUG_idea_croatian_opposition
			remove_ideas = YUG_idea_macedonian_opposition
			custom_effect_tooltip = generic_skip_one_line_tt
			add_ideas = idea_state_security_ministry
			custom_effect_tooltip = generic_skip_one_line_tt
			remove_ideas = YUG_idea_slovene_nationalism_2
			add_stability = 0.03
		}
		search_filters = { FOCUS_FILTER_STABILITY }
	}
	focus = {
		id = YUG_pan_slavic_workers_congress
		icon = GFX_focus_YUG_pan_slavic_congress
		prerequisite = { focus = YUG_yugoslavian_path_to_communism }
		x = 2
		y = 1
		relative_position_id = YUG_yugoslavian_path_to_communism

		cost = 5

		ai_will_do = {
			factor = 50
		}

		available = {
			is_subject = no
		}

		search_filters = { FOCUS_FILTER_ALLIANCE FOCUS_FILTER_POLITICAL }

		completion_reward = {
			add_political_power = 50
			create_faction_from_template = faction_template_panslavic_workers_congress
			hidden_effect = { news_event = { id = news.330 } }
			set_rule = { can_create_factions = yes }
			IF = {
				limit = {
					has_dlc = "No Compromise, No Surrender"
				}

				add_faction_initiative = 1
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			unlock_decision_tooltip = YUG_instigate_in_bulgaria
			unlock_decision_tooltip = YUG_instigate_in_albania
			custom_effect_tooltip = generic_skip_one_line_tt
			add_ideas = BEL_volunteer_corps
			add_days_mission_timeout = {
				mission = r56_alone_faction_leader
				days = 365			
			}			
		}
	}

	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
		}

		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_focus_SOV_builder_of_the_red_army
		prerequisite = { focus = YUG_form_the_federal_republic }
		x = 0
		y = 1
		relative_position_id = YUG_form_the_federal_republic

		cost = 10

		ai_will_do = {
			factor = 50
		}

		search_filters = { FOCUS_FILTER_MILITARY_IMPROVEMENT }

		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_organized_partizans
		icon = GFX_goal_CRO_partisan_army
		prerequisite = { focus = YUG_local_militias }
		x = 0
		y = 1
		relative_position_id = YUG_local_militias

		cost = 10

		ai_will_do = {
			factor = 80
			modifier = {
				add = -79
				NOT = {
					has_government = communism
				}
			}
		}

		available = {
			has_war = yes
			OR = {
				surrender_progress > 0.1
				AND = {
					has_government = communism
					has_completed_focus = YUG_federal_defense_council
				}
			}
			NOT = {
				any_country = {
					is_major = yes
					has_war_with = ROOT
					has_government = communism
				}
			}
		}

		available_if_capitulated = yes

		completion_reward = {
			swap_ideas = { remove_idea = YUG_idea_local_militias add_idea = CRO_veteran_partisans}
			add_war_support = 0.05
			add_tech_bonus = {
				name = YUG_organized_partizans
				bonus = 1
				uses = 1
				category = recon_tech
			}
			if = {
				limit = {
					NOT = {
						has_government = communism
					}
				}
				add_popularity = { ideology = communism popularity = 0.4 }
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}
	focus = {
		id = YUG_invite_bulgaria
		icon = GFX_goal_generic_befriend_bulgaria_communist
		prerequisite = { focus = YUG_pan_slavic_workers_congress }
		x = -1
		y = 1
		relative_position_id = YUG_pan_slavic_workers_congress

		cost = 3

		ai_will_do = {
			factor = 100
		}

		available = {
	
			NOT = { has_war_with = BUL }
			is_subject = no
			OR = {
				is_in_faction = no
				is_faction_leader = yes
			}
			
			OR = {
				BUL = {
					exists = yes
					OR = {
						is_in_faction = no
						is_faction_leader = yes
					}
					is_subject = no
					OR = {
						has_government = communism
						AND = {
							has_idea_with_trait = communist_revolutionary
							communism > 0.3
						}
					}	
				}
				any_other_country = { 
					is_in_faction_with = BUL
					is_faction_leader = yes
					NOT = {
						original_tag = SOV
					}
					has_government = communism
				}
			}
			OR = {
				has_government = communism
				AND = {
					has_idea_with_trait = communist_revolutionary
					communism > 0.3
				}
			}	
		}

		bypass = {
			BUL = {
				OR = {
					exists = no
					is_subject_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
					}
				}
			}
		}

		completion_reward = {
			if = {
				limit = {
					BUL = { is_in_faction = no }
				}
				ROOT = {
					BUL = { 
						country_event = generic.5 
						add_ai_strategy = {
							type = alliance
							id = "YUG"
							value = 200
						}
					}
				}				
			}
		#	if = {
		#		limit = {
		#			any_other_country = { 
		#				is_in_faction_with = YUG
		#				is_faction_leader = yes
		#				NOT = {
		#					original_tag = SOV							
		#				}
		#			}
		#		}
		#		random_other_country = {
		#			limit = {
		#				is_in_faction_with = YUG
		#				is_faction_leader = yes
		#				NOT = {
		#					original_tag = SOV
		#				}
		#			}					
		#			country_event = generic.2
		#		}
		#	}			
			if = {
				limit = {

						BUL = { 
							is_faction_leader = yes
						}
					#	AND = {
					#		YUG = { 
					#			is_faction_leader = yes
					#			is_ai = yes
					#		}
					#		NOT = {
					#			any_other_country = {
					#				is_in_faction_with = ROOT
					#			}
					#		}							
					#	}						
					

				}
				every_country = {
					limit = {
						OR = {
							tag = BUL
							is_in_faction_with = BUL
						}
					}
					
					add_to_faction = YUG
					add_opinion_modifier = { target = YUG modifier = huge_increase }
					
					
					
				}
				
				hidden_effect = {
					save_event_target_as = alliance_inviter					
					set_country_flag = alliance_inviter@ROOT
					BUL = { 
						set_country_flag = alliance_applicant@ROOT 
						save_event_target_as = alliance_applicant
					}
					
					news_event = { id = r56i.event.16 hours = 12 }
				}				
			}				
		}
		search_filters = { FOCUS_FILTER_ALLIANCE FOCUS_FILTER_POLITICAL }
	}

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

		cost = 2

		ai_will_do = {
			factor = 100
		}

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

		bypass = {
			ALB = {
				OR = {
					exists = no
					is_subject_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
					}
				}
			}
		}

		search_filters = { FOCUS_FILTER_ALLIANCE FOCUS_FILTER_POLITICAL }

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

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

		cost = 5

		ai_will_do = {
			factor = 50
		}

		available = {
			is_faction_leader = yes
			is_subject = no
		}

		completion_reward = {
			set_faction_name = panbalkan_workers_congress
			add_political_power = 50
			add_stability = 0.03
			unlock_decision_tooltip = YUG_instigate_in_greece
			unlock_decision_tooltip = YUG_instigate_in_romania
			unlock_decision_tooltip = YUG_instigate_in_hungary
		}
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY }
	}
	
	focus = {
		id = YUG_form_the_balkan_federation
		icon = GFX_focus_BUL_balkan_federation_of_socialist_republics
		prerequisite = { focus = YUG_pan_balkan_workers_congress }
		x = -4
		y = 1
		relative_position_id = YUG_pan_balkan_workers_congress

		cost = 10

		ai_will_do = {
			factor = 100
		}

		available = {
			has_government = communism
			is_subject = no
			# Albania
			custom_trigger_tooltip = {
				tooltip = YUG_form_the_balkan_federation_albania_required_states_tt
				44 = {
					controller = {
						OR = {
							tag = ROOT
							is_ally_with = ROOT
						}
					}
				}
				805 = {
					controller = {
						OR = {
							tag = ROOT
							is_ally_with = ROOT
						}
					}
				}
				910 = {
					controller = {
						OR = {
							tag = ROOT
							is_ally_with = ROOT
						}
					}
				}				
			}
			# Yugoslavia
			custom_trigger_tooltip = {
				tooltip = YUG_form_the_balkan_federation_yugoslavia_required_states_tt
				102 = {
					controller = {
						OR = {
							tag = ROOT
							is_ally_with = ROOT
						}
					}
				}
				103 = {
					controller = {
						OR = {
							tag = ROOT
							is_ally_with = ROOT
						}
					}
				}		
				109 = {
					controller = {
						OR = {
							tag = ROOT
							is_ally_with = ROOT
						}
					}
				}	
				104 = {
					controller = {
						OR = {
							tag = ROOT
							is_ally_with = ROOT
						}
					}
				}	
				45 = {
					controller = {
						OR = {
							tag = ROOT
							is_ally_with = ROOT
						}
					}
				}	
				107 = {
					controller = {
						OR = {
							tag = ROOT
							is_ally_with = ROOT
						}
					}
				}	
				105 = {
					controller = {
						OR = {
							tag = ROOT
							is_ally_with = ROOT
						}
					}
				}	
				108 = {
					controller = {
						OR = {
							tag = ROOT
							is_ally_with = ROOT
						}
					}
				}	
				106 = {
					controller = {
						OR = {
							tag = ROOT
							is_ally_with = ROOT
						}
					}
				}	
				764 = {
					controller = {
						OR = {
							tag = ROOT
							is_ally_with = ROOT
						}
					}
				}	


				802 = {
					controller = {
						OR = {
							tag = ROOT
							is_ally_with = ROOT
						}
					}
				}	
				950 = {
					controller = {
						OR = {
							tag = ROOT
							is_ally_with = ROOT
						}
					}
				}	
				803 = {
					controller = {
						OR = {
							tag = ROOT
							is_ally_with = ROOT
						}
					}
				}	
				952 = {
					controller = {
						OR = {
							tag = ROOT
							is_ally_with = ROOT
						}
					}
				}	
				953 = {
					controller = {
						OR = {
							tag = ROOT
							is_ally_with = ROOT
						}
					}
				}	
				956 = {
					controller = {
						OR = {
							tag = ROOT
							is_ally_with = ROOT
						}
					}
				}	
				853 = {
					controller = {
						OR = {
							tag = ROOT
							is_ally_with = ROOT
						}
					}
				}	
				958 = {
					controller = {
						OR = {
							tag = ROOT
							is_ally_with = ROOT
						}
					}
				}	
				959 = {
					controller = {
						OR = {
							tag = ROOT
							is_ally_with = ROOT
						}
					}
				}	
				804 = {
					controller = {
						OR = {
							tag = ROOT
							is_ally_with = ROOT
						}
					}
				}	
				961 = {
					controller = {
						OR = {
							tag = ROOT
							is_ally_with = ROOT
						}
					}
				}	
				962 = {
					controller = {
						OR = {
							tag = ROOT
							is_ally_with = ROOT
						}
					}
				}	
				963 = {
					controller = {
						OR = {
							tag = ROOT
							is_ally_with = ROOT
						}
					}
				}	
			}
			# Greece
			custom_trigger_tooltip = {
				tooltip = YUG_form_the_balkan_federation_greece_required_states_tt
				185 = {
					controller = {
						OR = {
							tag = ROOT
							is_ally_with = ROOT
						}
					}
				}	
				731 = {
					controller = {
						OR = {
							tag = ROOT
							is_ally_with = ROOT
						}
					}
				}	
				47 = {
					controller = {
						OR = {
							tag = ROOT
							is_ally_with = ROOT
						}
					}
				}	
				186 = {
					controller = {
						OR = {
							tag = ROOT
							is_ally_with = ROOT
						}
					}
				}
				184 = {
					controller = {
						OR = {
							tag = ROOT
							is_ally_with = ROOT
						}
					}
				}
				187 = {
					controller = {
						OR = {
							tag = ROOT
							is_ally_with = ROOT
						}
					}
				}
				182 = {
					controller = {
						OR = {
							tag = ROOT
							is_ally_with = ROOT
						}
					}
				}
			}
			# Bulgaria
			custom_trigger_tooltip = {
				tooltip = YUG_form_the_balkan_federation_bulgaria_required_states_tt
				48 = {
					controller = {
						OR = {
							tag = ROOT
							is_ally_with = ROOT
						}
					}
				}
				212 = {
					controller = {
						OR = {
							tag = ROOT
							is_ally_with = ROOT
						}
					}
				}
				211 = {
					controller = {
						OR = {
							tag = ROOT
							is_ally_with = ROOT
						}
					}
				}
				801 = {
					controller = {
						OR = {
							tag = ROOT
							is_ally_with = ROOT
						}
					}
				}
			}
			# Some Romanian states
			custom_trigger_tooltip = {
				tooltip = YUG_form_the_balkan_federation_romania_without_moldova_required_states_tt
				76 = {
					controller = {
						OR = {
							tag = ROOT
							is_ally_with = ROOT
						}
					}
				}
				84 = {
					controller = {
						OR = {
							tag = ROOT
							is_ally_with = ROOT
						}
					}
				}
				83 = {
					controller = {
						OR = {
							tag = ROOT
							is_ally_with = ROOT
						}
					}
				}
				82 = {
					controller = {
						OR = {
							tag = ROOT
							is_ally_with = ROOT
						}
					}
				}
				764 = {
					controller = {
						OR = {
							tag = ROOT
							is_ally_with = ROOT
						}
					}
				}
				81 = {
					controller = {
						OR = {
							tag = ROOT
							is_ally_with = ROOT
						}
					}
				}
				46 = {
					controller = {
						OR = {
							tag = ROOT
							is_ally_with = ROOT
						}
					}
				}
				77 = {
					controller = {
						OR = {
							tag = ROOT
							is_ally_with = ROOT
						}
					}
				}
				955 = {
					controller = {
						OR = {
							tag = ROOT
							is_ally_with = ROOT
						}
					}
				}	
			}
		}

		search_filters = { FOCUS_FILTER_POLITICAL }

		completion_reward = {

			#Core Balkan States
			custom_effect_tooltip = BUL_the_unification_of_the_balkans_cores_tt
			every_state = {
				limit = {
					BUL_is_balkan_state = yes
					NOT = { is_core_of = ROOT }
				}
				hidden_effect = {
					ROOT = { add_state_core = PREV }
					if = {
						limit = {
							is_claimed_by = ROOT
						}
						remove_claim_by = ROOT
					}
				}
			}

			#Event for unification
			every_other_country = {
				limit = {
					BUL_is_balkan_nation = yes
					is_ally_with = ROOT
				}
				country_event = { id = bftb_bulgaria_balkan_federation.5 hours = 6 random_hours = 6 }
			}
			
			#else = {
			#	custom_effect_tooltip = BUL_the_unification_of_the_balkans_event_tt
			#}
			set_cosmetic_tag = YUG_united_balkan_federation
			#if = {
			#	limit = {
			#		is_faction_leader = yes
			#	}
			#	set_faction_name = "[ROOT.GetAdjectiveCap] Defense Treaty"
			#}
		}
	}	
	focus = {
		id = YUG_invite_romania
		icon = GFX_goal_generic_befriend_romania_communist
		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_subject = no
				is_in_faction = no
				has_government = communism
			}
			is_faction_leader = yes
		}

		bypass = {
			ROM = {
				OR = {
					exists = no
					is_subject_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
					}
				}
			}
		}

		search_filters = { FOCUS_FILTER_ALLIANCE FOCUS_FILTER_POLITICAL }

		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_goal_generic_befriend_greece_communist
		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_subject = no
				is_in_faction = no
				has_government = communism
			}
			is_faction_leader = yes
		}

		bypass = {
			GRE = {
				OR = {
					exists = no
					is_subject_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
					}
				}
			}
		}

		search_filters = { FOCUS_FILTER_ALLIANCE FOCUS_FILTER_POLITICAL }

		completion_reward = {
			if = {
				limit = {
					GRE = { is_in_faction = no }
				}
				ROOT = {
					GRE = { 
						country_event = generic.5 
						add_ai_strategy = {
							type = alliance
							id = "YUG"
							value = 200
						}
					}
				}				
			}
		#	if = {
		#		limit = {
		#			any_other_country = { 
		#				is_in_faction_with = YUG
		#				is_faction_leader = yes
		#				NOT = {
		#					original_tag = SOV							
		#				}
		#			}
		#		}
		#		random_other_country = {
		#			limit = {
		#				is_in_faction_with = YUG
		#				is_faction_leader = yes
		#				NOT = {
		#					original_tag = SOV
		#				}
		#			}					
		#			country_event = generic.2
		#		}
		#	}			
			if = {
				limit = {
					OR = {
						GRE = { 
							is_faction_leader = yes
							is_ai = no
						}
					#	AND = {
					#		YUG = { 
					#			is_faction_leader = yes
					#			is_ai = yes
					#		}
					#		NOT = {
					#			any_other_country = {
					#				is_in_faction_with = ROOT
					#			}
					#		}							
					#	}						
					}

				}
				every_country = {
					limit = {
						OR = {
							tag = ROOT
							is_in_faction_with = ROOT
						}
					}

					GRE = {
						add_to_faction = PREV
					}
					
				}
				hidden_effect = {
					save_event_target_as = alliance_applicant
					GRE = { save_event_target_as = alliance_inviter }					
					set_country_flag = alliance_applicant@ROOT
					GRE = { set_country_flag = alliance_inviter@ROOT }
					news_event = { id = r56i.event.16 hours = 12 }
				}				
			}			
			if = {
				limit = {	
					GRE = { 
						is_faction_leader = yes
						is_ai = yes
					}		
				}
				every_country = {
					limit = {
						OR = {
							tag = GRE
							is_in_faction_with = GRE
						}
					}

					ROOT = {
						add_to_faction = PREV
					}
					
				}
				hidden_effect = {
					set_country_flag = alliance_inviter@ROOT
					save_event_target_as = alliance_inviter
					GRE = { save_event_target_as =  alliance_applicant }	
					GRE = { set_country_flag = alliance_applicant@ROOT }
					news_event = { id = r56i.event.16 hours = 12 }
				}				
			}	
			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_goal_HUN_communist_party
		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_subject = no
				is_in_faction = no
				has_government = communism
			}
			is_faction_leader = yes
		}

		bypass = {
			HUN = {
				OR = {
					exists = no
					is_subject_of = ROOT
					AND = {
						is_in_faction = yes
						is_faction_leader = no
						NOT = {
							has_government = communism
						}
					}
					is_in_faction_with = YUG #previously missing bypass condition if Hungary joins for other reasons
					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
					}
				}
			}
		}

		search_filters = { FOCUS_FILTER_ALLIANCE FOCUS_FILTER_POLITICAL }

		completion_reward = {
			if = {
				limit = {
					OR = {
						HUN = { 
							is_faction_leader = yes
							is_ai = no
						}
					#	AND = {
					#		YUG = { 
					#			is_faction_leader = yes
					#			is_ai = yes
					#		}
					#		NOT = {
					#			any_other_country = {
					#				is_in_faction_with = ROOT
					#			}
					#		}							
					#	}						
					}

				}
				every_country = {
					limit = {
						OR = {
							tag = ROOT
							is_in_faction_with = ROOT
						}
					}

					HUN = {
						add_to_faction = PREV
					}
					
				}
				hidden_effect = {
					save_event_target_as = alliance_applicant
					HUN = { save_event_target_as = alliance_inviter }					
					set_country_flag = alliance_applicant@ROOT
					HUN = { set_country_flag = alliance_inviter@ROOT }
					news_event = { id = r56i.event.16 hours = 12 }
				}				
			}			
			if = {
				limit = {	
					HUN = { 
						is_faction_leader = yes
						is_ai = yes
					}		
				}
				every_country = {
					limit = {
						OR = {
							tag = HUN
							is_in_faction_with = HUN
						}
					}

					ROOT = {
						add_to_faction = PREV
					}
					
				}
				hidden_effect = {
					set_country_flag = alliance_inviter@ROOT
					save_event_target_as = alliance_inviter
					HUN = { save_event_target_as =  alliance_applicant }	
					HUN = { set_country_flag = alliance_applicant@ROOT }
					news_event = { id = r56i.event.16 hours = 12 }
				}				
			}
			else = {
				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_goal_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_subject = no
				is_in_faction = no
				has_government = communism
			}
			is_faction_leader = yes
		}

		bypass = {
			TUR = {
				OR = {
					exists = no
					is_subject_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
					}
				}
			}
		}

		search_filters = { FOCUS_FILTER_ALLIANCE FOCUS_FILTER_POLITICAL }

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


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

	focus = {
		id = YUG_industrialization_program
		icon = GFX_goal_generic_construction
		x = 24
		y = 0
		offset = {
			x = -9
			y = 0
			trigger = {
				has_game_rule = {
					rule = obsolete_focus_branches_visibility
					option = HIDE
				}
				has_completed_focus = YUG_western_focus
			}
		}
		offset = {
			x = -10
			y = 0
			trigger = {
				has_game_rule = {
					rule = obsolete_focus_branches_visibility
					option = HIDE
				}
				has_completed_focus = YUG_recognize_the_soviet_union
			}
		}
		cost = 10
		ai_will_do = {
			factor = 80
		}

		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
					has_completed_focus = YUG_yugoslavian_international_communism
				}
			}
		}

		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_INDUSTRY }

		completion_reward = {
			random_owned_controlled_state = {
				prioritize = { 106 }
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
			add_tech_bonus = {
				name = industrial_bonus
				bonus = 1
				uses = 1
				category = excavation_tech
			}
			add_ideas = YUG_idea_expanded_mining_industry
		}
	}

	focus = {
		id = YUG_rare_minerals_exploitation
		icon = GFX_goal_generic_coal_mining
		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
					has_completed_focus = YUG_yugoslavian_international_communism
				}
			}
		}

		available = {
			OR = {
				controls_state = 106
				any_other_country = {
					OR = {
						is_subject_of = ROOT
						AND = {
							original_tag = MAC
							is_in_faction_with = ROOT
						}
					}
					controls_state = 106
				}
				controls_state = 103
				any_other_country = {
					OR = {
						is_subject_of = ROOT
						AND = {
							original_tag = CRO
							is_in_faction_with = ROOT
						}
					}
					controls_state = 103
				}	
			}		
		}

		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_CHROMIUM FOCUS_FILTER_TUNGSTEN}


		completion_reward = {
			if = {
				limit = {
					OR = {
						controls_state = 103
						any_other_country = {
							OR = {
								is_subject_of = ROOT
								AND = {
									original_tag = CRO
									is_in_faction_with = ROOT
								}
							}
							controls_state = 103
						}	
					}
				}
				103 = {
					add_resource = {
						type = aluminium
						amount = 16
					}
					add_resource = {
						type = steel
						amount = 2
					}
				}
			}
			if = {
				limit = {
					OR = {
						controls_state = 106
						any_other_country = {
							OR = {
								is_subject_of = ROOT
								AND = {
									original_tag = MAC
									is_in_faction_with = ROOT
								}
							}
							controls_state = 106
						}
					}
				}
				106 = {
					add_resource = {
						type = chromium
						amount = 6
					}
					add_resource = {
						type = aluminium
						amount = 2
					}
					add_resource = {
						type = steel
						amount = 2
					}
				}
			}
			add_tech_bonus = {
				name = industrial_bonus
				bonus = 1
				uses = 1
				category = excavation_tech
			}
		}
	}

	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
					has_completed_focus = YUG_yugoslavian_international_communism
				}
			}
		}

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

		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_OIL }

		completion_reward = {
			if = {
				limit = {
					controls_state = 103
				}
				45 = {
					add_resource = {
						type = oil
						amount = 2
					}
				}
			}
			if = {
				limit = {
					controls_state = 106
				}
				764 = {
					add_resource = {
						type = oil
						amount = 2
					}
				}
			}
			add_tech_bonus = {
				name = industrial_bonus
				bonus = 1
				uses = 1
				category = synth_resources
			}
		}
	}

	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
					has_completed_focus = YUG_yugoslavian_international_communism
				}
			}
		}

		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_INDUSTRY }

		completion_reward = {
			random_owned_controlled_state = {
				prioritize = { 107 }
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 1
						include_locked = yes
					}
				}
				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 = {
					free_building_slots = {
						building = industrial_complex
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				prioritize = { 102 }
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 1
						include_locked = yes
					}
				}
				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 = {
			AND = {
				NOT = {
					has_idea = YUG_idea_croatian_opposition
					CRO = {
						focus_progress = {
							focus = YUG_expand_the_university_of_zagreb
							progress > 0
						}
					}
				}
				OR = {
					has_full_control_of_state = 109
					any_other_country = {
						is_subject_of = ROOT
						AND = {
							has_full_control_of_state = 109
						}
					}
				}
			}
		}

		bypass = {
			CRO = { has_completed_focus = CRO_expand_the_university_of_zagreb }
		}

		available_if_capitulated = yes

		completion_reward = {
			add_research_slot = 1
			CRO = { add_research_slot = 1 }
		}
	}

	focus = {
		id = YUG_integrated_rail_network
		icon = GFX_focus_generic_railroad
		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
					has_completed_focus = YUG_yugoslavian_international_communism
				}
			}
		}

		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
						}
						is_ally_with = ROOT
					}
				}
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
		}
	}

	focus = {
		id = YUG_improve_light_industry
		icon = GFX_goal_generic_light_industry
		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
					has_completed_focus = YUG_yugoslavian_international_communism
				}
			}
		}

		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_INDUSTRY }

		completion_reward = {
			random_owned_controlled_state = {
				prioritize = { 961 }
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				prioritize = { 959 }
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 1
						include_locked = yes
					}
				}
				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_focus_YUG_develop_slovenian_industry
		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 = {
				AND = {
					controls_state = 102
					controls_state = 853
					controls_state = 956
				}
				any_other_country = {
					is_subject_of = ROOT
					AND = {
						controls_state = 102
						controls_state = 853
						controls_state = 956
					}
				}
			}
		}

		bypass = {
			OR = {
				AND = {
					owns_state = 102
					owns_state = 853
					owns_state = 956
					NOT = { 
						OR = {
							controls_state = 102
							controls_state = 853
							controls_state = 956
						}
					}
				}
				AND = {
					any_other_country = {
						is_subject_of = ROOT
						AND = {
							owns_state = 102
							owns_state = 853
							owns_state = 956
						}
						NOT = { 
							OR = {
								controls_state = 102
								controls_state = 853
								controls_state = 956
							}
						}
					}
				}
			}
		}

		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_INDUSTRY }

		completion_reward = {
			if = {
				limit = {
					OR = {
						has_full_control_of_state = 102
						any_other_country = {
							is_subject_of = ROOT
							has_full_control_of_state = 102
						}
					}
				}
				102 = {
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = industrial_complex
						level = 2
						instant_build = yes
					}
				}
			}
			else = {
				random_owned_controlled_state = {
					prioritize = { 853 }
					limit = {
						ROOT = { has_full_control_of_state = PREV }
					}
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = industrial_complex
						level = 2
						instant_build = yes
					}					
	
				}				
			}
			if = {
				limit = {
					OR = {
						has_full_control_of_state = 853
						any_other_country = {
							is_subject_of = ROOT
							has_full_control_of_state = 853
						}
					}
				}
				853 = {
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes
					}
				}
			}
			else = {
				random_owned_controlled_state = {
					prioritize = { 102 956 }
					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_local_self_management
		icon = GFX_focus_DEN_limited_regulations
		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
					has_completed_focus = YUG_yugoslavian_international_communism
				}
			}
		}

		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 = -1
		y = 2
		relative_position_id = YUG_develop_slovenian_industry

		cost = 10

		ai_will_do = {
			factor = 100
		}

		available = {
			AND = {
				NOT = {
					has_idea = YUG_idea_slovene_nationalism
				}
				OR = {
					has_full_control_of_state = 102
					any_other_country = {
						is_subject_of = ROOT
						AND = {
							has_full_control_of_state = 102
						}
					}
				}
			}	
		}

		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH }

		completion_reward = {
			add_research_slot = 1
			SLV = { 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_if_capitulated = yes
		search_filters = { FOCUS_FILTER_INDUSTRY }


		completion_reward = {
			random_owned_controlled_state = {
				prioritize = { 107 }
				limit = {
					free_building_slots = {
						building = arms_factory
						size > 3
						include_locked = yes
					}
				}
				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_road
		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 = {
				controls_state = 45
				controls_state = 105
				controls_state = 107
				controls_state = 108
				controls_state = 764
			}
		}

		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_INDUSTRY }


		completion_reward = {
			every_controlled_state = {
				limit = {
					OR = {
						state = 45
						state = 105
						state = 107
						state = 108
						state = 764
					}
					free_building_slots = {
						building = infrastructure
						size > 0
					}
				}
				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_mining_iron
		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 = {
			OR = {
				has_full_control_of_state = 108
				any_other_country = {
					is_subject_of = ROOT
					has_full_control_of_state = 108
				}				
			}
		}

		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_STEEL}


		completion_reward = {
			108 = {
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = steel_mill
					level = 2
					instant_build = yes
				}		
				add_resource = {
					type = steel
					amount = 4
				}
			}
			add_tech_bonus = {
				name = industrial_bonus
				bonus = 1
				uses = 1
				category = steel_tech
			}			
		}
	}

	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 = {
			has_full_control_of_state = 107
		}

		bypass = {
			NOT = {
				has_full_control_of_state = 107
			}
		}

		available_if_capitulated = yes
		search_filters = { FOCUS_FILTER_RESEARCH }

		completion_reward = {
			add_research_slot = 1
			SER = {
				add_research_slot = 1
			}
		}
	}

	focus = {
		id = YUG_central_management
		icon = GFX_goal_generic_state_economy
		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_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_machine_gun
		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_if_capitulated = yes
		available = {
			OR = {
				has_full_control_of_state = 104
				any_other_country = {
					is_subject_of = ROOT
					AND = {
						has_full_control_of_state = 104
					}
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }

		completion_reward = {
			random_owned_controlled_state = {
				prioritize = { 104 }
				limit = {									
					free_building_slots = {
						building = arms_factory
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = arms_factory
					level = 2
					instant_build = yes
				}
			}
		}
	}

	focus = {
		id = YUG_yugoslav_nuclear_program
		icon = GFX_goal_generic_nuclear_energy
		prerequisite = { focus = YUG_central_management focus = YUG_local_self_management }
		x = 1
		y = 1
		relative_position_id = YUG_central_management
		cost = 10
		
		search_filters = { FOCUS_FILTER_RESEARCH } 

		available_if_capitulated = yes

		available = {
			OR = {
				num_of_civilian_factories > 50
				nuclear_facility > 0
			}
		}

		completion_reward = {
			add_breakthrough_progress = {
				specialization = specialization_nuclear
				value = 0.75
			}

			add_tech_bonus = {
				name = nuclear_bonus
				ahead_reduction = 1 # was 2
				category = nuclear
			}

		}

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.25
				always = yes
			}
		}
	}	

	focus = {
		id = YUG_uranium_prospecting_in_buhovo
		prerequisite = { focus = YUG_yugoslav_nuclear_program }
		icon = GFX_focus_generic_uranium_extraction
		relative_position_id = YUG_yugoslav_nuclear_program
		x = 0
		y = 1
		cost = 10

		available = {
			has_tech = excavation3
			controls_state = 48
			48 = {
				is_core_of = ROOT
			}
		}
		
		search_filters = {FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESEARCH}
		completion_reward = {
			add_ideas = BUL_buhovo_uranium_mines
		}
	}


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

	focus = {
		id = YUG_modernize_the_air_force
		icon = GFX_focus_generic_pilot_training
		x = 22
		y = 0
		relative_position_id = YUG_industrialization_program
		cost = 10

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

		search_filters = { FOCUS_FILTER_RESEARCH }


		completion_reward = {
			air_experience = 15
			if = {
				limit = {
					has_dlc = "La Resistance"
				}
				add_tech_bonus = {
					name = scout_plane
					bonus = 1.0
					uses = 1
					category = cat_scout_plane
				}				
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			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 = -3
		y = 1
		relative_position_id = YUG_modernize_the_air_force

		cost = 10

		ai_will_do = {
			factor = 60
		}

		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
		}

		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
		}

		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
		}

		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
		}

		search_filters = { FOCUS_FILTER_RESEARCH }


		completion_reward = {
			if = {
				limit = {
					has_dlc = "By Blood Alone"
				}
				add_tech_bonus = {
					name = YUG_the_ik_3
					bonus = 3.0
					ahead_reduction = 2
					uses = 1
					category = light_air
				}
			}
			else = {
				add_tech_bonus = {
					name = YUG_the_ik_3
					bonus = 3.0
					ahead_reduction = 2
					uses = 1
					category = light_fighter
				}
			}
		}
	}

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

		cost = 10

		ai_will_do = {
			factor = 40
		}

		search_filters = { FOCUS_FILTER_RESEARCH }


		completion_reward = {
			if = {
				limit = {
					has_dlc = "By Blood Alone"
				}
				add_tech_bonus = {
					name = YUG_heavy_fighter_project
					bonus = 0.5
					uses = 1
					category = medium_air
					category = light_air
				}
				add_tech_bonus = {
					name = YUG_heavy_fighter_project
					technology = range_improvements
					bonus = 1
					uses = 1
				}
			}
			else = {
				add_tech_bonus = {
					name = YUG_heavy_fighter_project
					bonus = 1.0
					uses = 1
					category = cat_heavy_fighter
				}
			}
			add_breakthrough_progress = {
				specialization = specialization_air
				value = 0.25
			}
		}
	}

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

		cost = 10

		ai_will_do = {
			factor = 20
		}

		search_filters = { FOCUS_FILTER_RESEARCH }


		completion_reward = {
			if = {
				limit = {
					has_dlc = "By Blood Alone"
				}
				add_tech_bonus = {
					name = YUG_bomber_project
					bonus = 1.0
					uses = 1
					category = medium_air
				}
			}
			else = {
				add_tech_bonus = {
					name = YUG_bomber_project
					bonus = 1.0
					uses = 1
					category = tactical_bomber
				}
			}
			add_breakthrough_progress = {
				specialization = specialization_air
				value = 0.25
			}			
		}
	}

	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 = 4
		y = 1
		relative_position_id = YUG_modernize_the_air_force

		cost = 10

		ai_will_do = {
			factor = 60
		}

		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 }
			}
		}
		search_filters = {FOCUS_FILTER_MILITARY_EQUIPMENT}
	}

	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
		}

		completion_reward = {
			add_ideas = YUG_license_production
			if = {
				limit = {
					NOT = {
						has_dlc = "Arms Against Tyranny"
					}
				}
				custom_effect_tooltip = available_designer
				show_ideas_tooltip = YUG_kraljevo_state_airlines_factory				
			}

		}
	}

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

		cost = 10

		ai_will_do = {
			factor = 50
		}

		available = {
			NOT = {
				has_tech = fighter3
				has_tech = heavy_fighter3
				has_tech = advanced_small_airframe
			}
			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
						}
					}
				}
			}
		}

		completion_reward = {
			country_event = DOD_yugoslavia.150
		}
		search_filters = {FOCUS_FILTER_MILITARY_EQUIPMENT}
	}

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

		cost = 10

		ai_will_do = {
			factor = 25
		}

		
		available = {
			NOT = {
				has_tech = CAS3
				has_tech = tactical_bomber3
				has_tech = advanced_medium_airframe
			}
			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
						}
					}
				}
			}
		}

		completion_reward = {
			country_event = DOD_yugoslavia.160
		}
		search_filters = {FOCUS_FILTER_MILITARY_EQUIPMENT}
	}
	focus = {
		id = YUG_kraljevo_state_airlines_factory
		icon = GFX_focus_generic_aircraft_production
		prerequisite = { focus = YUG_license_production }
		x = -2
		y = 1
		relative_position_id = YUG_license_production

		cost = 10

		ai_will_do = {
			factor = 50
		}

		available = {
			NOT = {
				any_other_country = {
					has_completed_focus = SER_kraljevo_state_airlines_factory
				}
			}
		}

		bypass = {
			any_other_country = {
				has_completed_focus = SER_kraljevo_state_airlines_factory
			}
		}

		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 = 2
				add_building_construction = {
					type = arms_factory
					level = 2
					instant_build = yes
				}
			}
		}
	}	
	focus = {
		id = YUG_form_mechanics
		icon = GFX_goal_generic_air_production
		prerequisite = { focus = YUG_license_production focus = YUG_ikarus focus = YUG_rogozarski focus = YUG_zmaj }
		x = 1
		y = 1
		relative_position_id = YUG_zmaj

		cost = 10

		ai_will_do = {
			factor = 5
		}

		completion_reward = {
			add_ideas = CRO_idea_trained_mechanics
		}
	}
	focus = {
		id = YUG_expanded_repair_facilities
		icon = GFX_goal_generic_air_doctrine
		prerequisite = { focus = YUG_kraljevo_state_airlines_factory }
		prerequisite = { focus = YUG_form_mechanics }
		x = -1
		y = 1
		relative_position_id = YUG_kraljevo_state_airlines_factory

		cost = 10

		ai_will_do = {
			factor = 50
		}

		search_filters = { FOCUS_FILTER_INDUSTRY }


		completion_reward = {
			add_ideas = BUL_aircraft_repair_facilities
			add_breakthrough_progress = {
				specialization = specialization_air
				value = 0.5
			}
		}
	}		
	############################
	######## LAND FORCE ########
	############################

	focus = {
		id = YUG_army_modernization
		icon = GFX_goal_wargaming
		x = 9
		y = 0
		relative_position_id = YUG_industrialization_program
		cost = 10

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

		completion_reward = {
			army_experience = 25
		}
	}

	focus = {
		id = YUG_motorize_the_cavalry
		icon = GFX_focus_generic_truck
		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
			}
		}

		search_filters = { FOCUS_FILTER_RESEARCH }

		completion_reward = {
			add_tech_bonus = {
				name = YUG_motorize_the_cavalry
				bonus = 1.5
				uses = 2
				category = motorized_equipment
				category = logistics_tech
			}
		}
	}

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

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

		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_focus_generic_tank_assembly
		prerequisite = { focus = YUG_armored_cavalry }
		mutually_exclusive = { focus = YUG_modern_tanks }
		x = -2
		y = 2
		relative_position_id = YUG_motorize_the_cavalry

		cost = 10

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

		completion_reward = {
			add_ideas = YUG_idea_tank_conversions
			custom_effect_tooltip = generic_skip_one_line_tt
			add_breakthrough_progress = {
				specialization = specialization_land
				value = 0.25
			}
			add_tech_bonus = {
				name = armor_bonus
				bonus = 1
				uses = 2
				category = armor_variant_tech
			}	
			if = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}
				custom_effect_tooltip = generic_skip_one_line_tt
				mio:YUG_tzv_gredelj_organization = {
					add_mio_funds = 1000
				}
			}
		}
	}

	focus = {
		id = YUG_modern_tanks
		icon = GFX_focus_generic_army_tanks2
		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
			}
		}

		search_filters = { FOCUS_FILTER_RESEARCH }

		completion_reward = {
			add_tech_bonus = {
				name = YUG_modern_tanks
				bonus = 1.0
				uses = 1
				category = armor
			}
			add_tech_bonus = {
				name = armor_bonus
				bonus = 1
				uses = 2
				category = armor_variant_tech
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			add_breakthrough_progress = {
				specialization = specialization_land
				value = 0.25
			}
			if = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}
				custom_effect_tooltip = generic_skip_one_line_tt
				mio:YUG_tzv_gredelj_organization = {
					add_mio_funds = 1000
				}
			}
		}
	}

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

		cost = 10

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

		completion_reward = {
			add_ideas = YUG_tank_licenses
		}
		search_filters = {FOCUS_FILTER_MILITARY_EQUIPMENT}
	}

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

		cost = 10

		ai_will_do = {
			factor = 70
		}

		search_filters = { FOCUS_FILTER_RESEARCH }


		completion_reward = {
			add_tech_bonus = {
				name = YUG_small_arms
				bonus = 1.00
				uses = 1
				category = infantry_weapons
			}
			IF = {
				limit = {
					NOT = {
						has_dlc = "Arms Against Tyranny"
					}					
				}
				custom_effect_tooltip = available_designer
				show_ideas_tooltip = zastava_arms				
			}			
			custom_effect_tooltip = generic_skip_one_line_tt

			IF = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}
				mio:YUG_zastava_arms_organization = {
					add_mio_size = 1
					add_mio_funds = 500	#56
				}
			}
		}
	}

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

		cost = 10

		ai_will_do = {
			factor = 70
		}

		search_filters = { FOCUS_FILTER_RESEARCH }


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

			IF = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}
				mio:YUG_krusik_organization = {
					add_mio_size = 1
					add_mio_funds = 500	#56
				}
			}
		}
	}

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

		cost = 10

		ai_will_do = {
			factor = 60
		}

		search_filters = { FOCUS_FILTER_RESEARCH }


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

			add_tech_bonus = { #r56
				name = HOL_anti_tank_infantry
				category = anti_tank_infantry_weapons
				uses = 1
				bonus = 1
				ahead_reduction = 0.5
			}
		}
	}

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

		cost = 10

		ai_will_do = {
			factor = 70
		}

		search_filters = { FOCUS_FILTER_RESEARCH }

		completion_reward = {
			add_tech_bonus = {
				name = YUG_mountain_brigades
				bonus = 3.0
				uses = 1
				category = mountaineers_tech
			}
			if = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}
				add_doctrine_cost_reduction = {
					name = land_doc_bonus
					cost_reduction = 0.5
					uses = 1
					category = cat_mountaineers_doctrine
				}
			}
			else = {
				add_tech_bonus = {
					name = special_forces_bonus
					bonus = 1.0
					uses = 2
					category = r56_special_forces_training_tech 
				}	
			}
		}
	}

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

		cost = 10

		ai_will_do = {
			factor = 50
		}

		search_filters = { FOCUS_FILTER_RESEARCH }


		completion_reward = {
			add_tech_bonus = {
				name = YUG_independent_engineer_regiments
				bonus = 3.0
				uses = 1
				category = engineers_tech
			}
			add_tech_bonus = { # taken from dutch focus tree
				name = YUG_independent_engineer_regiments
				bonus = 1
				uses = 1
				technology = support_weapons2
				technology = support_weapons3
			}
		}
	}

	focus = {
		id = YUG_motorized_recon_companies
		icon = GFX_focus_generic_motor_cycle
		prerequisite = { focus = YUG_motorize_the_cavalry }
		prerequisite = { focus = YUG_independent_engineer_regiments }
		x = -1
		y = 2
		relative_position_id = YUG_mountain_brigades

		cost = 10

		ai_will_do = {
			factor = 40
		}

		search_filters = { FOCUS_FILTER_RESEARCH }


		completion_reward = {
			add_tech_bonus = {
				name = YUG_motorized_recon_companies
				bonus = 3.0
				uses = 1
				category = recon_tech
			}
			if = {
				limit = {
					has_dlc = "La Resistance"
				}

				add_tech_bonus = {
					name = YUG_motorized_recon_companies
					bonus = 0.5
					uses = 1
					category = cat_armored_cars # optional 
					# technology  = technology_id # optional
				}
			}
		}
	}

	focus = {
		id = YUG_form_parachute_battalions
		icon = GFX_focus_generic_paratrooper
		prerequisite = { focus = YUG_independent_engineer_regiments }
		x = 0
		y = 2
		relative_position_id = YUG_independent_engineer_regiments

		cost = 10

		ai_will_do = {
			factor = 10
		}

		search_filters = { FOCUS_FILTER_RESEARCH }

		completion_reward = {
			add_tech_bonus = {
				name = YUG_form_parachute_battalions
				bonus = 3.0
				uses = 1
				category = para_tech
			}
			if = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}
				add_doctrine_cost_reduction = {
					name = HUN_form_parachute_battalions
					cost_reduction = 0.5
					uses = 1
					category = cat_paratroopers_doctrine
				}
			}
			else = {
				add_tech_bonus = {
					name = HUN_form_parachute_battalions
					bonus = 1.0
					uses = 1
					category = r56_special_forces_training_tech 
				}	
			}
			custom_effect_tooltip = generic_skip_one_line_tt
            hidden_effect = {
                set_country_flag = cite_an_airborne_unit_flag
            }
            unlock_decision_tooltip = { decision = cite_an_airborne_unit show_effect_tooltip = yes }								
		}
	}

	focus = {
		id = YUG_army_maneuvers
		icon = GFX_focus_generic_army_attack
		prerequisite = { focus = YUG_army_modernization }
		x = 5
		y = 1
		relative_position_id = YUG_army_modernization

		cost = 10

		ai_will_do = {
			factor = 70
		}

		search_filters = { FOCUS_FILTER_RESEARCH }

		completion_reward = {
			army_experience = 20
			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 = {
			OR = {
				has_doctrine = new_mobile_warfare
				has_doctrine = superior_firepower
			}
		}

		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 = {
			OR = {
				has_doctrine = grand_battleplan
				has_doctrine = mass_assault
				has_doctrine = r56_guerilla_warfare
			}
		}

		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
			}
		#	add_doctrine_cost_reduction = {
		#		name = YUG_supremacy_of_offense
		#		cost_reduction = 0.5
		#		uses = 2
		#		category = cat_grand_battle_plan
		#		category = cat_mass_assault
		#		category = cat_r56_guerilla_warfare
		#	}				
		}
	}

	focus = {
		id = YUG_artillery_regiments
		icon = GFX_goal_generic_army_artillery
		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
		}

		completion_reward = {
			add_ideas = YUG_artillery_regiments
		}
	}

	focus = {
		id = YUG_medal_for_extreme_bravery
		icon = GFX_focus_generic_soldier_salute
		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
			}
		}

		continue_if_invalid = yes



		completion_reward = {
			custom_effect_tooltip = yug_extreme_bravery_medal
		}
	}

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

	focus = {
		id = YUG_expand_the_split_shipyards
		icon = GFX_goal_generic_expand_the_naval_industry
		mutually_exclusive = { focus = YUG_expand_the_serbian_shipyards }
		x = 10
		y = 0
		relative_position_id = YUG_modernize_the_air_force
		cost = 8

		ai_will_do = {
			factor = 40
		}

		available = {
			OR = {
				has_full_control_of_state = 103
				any_other_country = {
					is_ally_with = ROOT
					has_full_control_of_state = 103
				}
			}
		}

		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
				}
			}
			mio:YUG_brodosplit_organization = {
				add_mio_funds = 500
			}
			mio:YUG_lazarus_shipyard_organization = {
				add_mio_funds = 500
			}
			mio:YUG_kraljevica_shipyard_organization = {
				add_mio_funds = 500
			}
		}
	}

	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_controlled_state = {
				is_coastal = yes
			}
		}

		search_filters = { FOCUS_FILTER_RESEARCH }

		completion_reward = {
			random_owned_controlled_state = {
				limit = {
					is_coastal = yes
					free_building_slots = {
						building = dockyard
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = dockyard
					level = 1
					instant_build = yes
				}
			}
			navy_experience = 15
			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_focus_generic_naval_discipline
		prerequisite = { focus = YUG_contest_the_adriatic }
		x = -1
		y = 2
		relative_position_id = YUG_expand_the_split_shipyards

		cost = 10

		ai_will_do = {
			factor = 20
		}

		available = {
			any_owned_state = {
				is_coastal = yes
			}
		}

		search_filters = { FOCUS_FILTER_RESEARCH }


		completion_reward = {
			add_tech_bonus = {
				name = YUG_replace_the_dalmacija
				bonus = 1.0
				uses = 1
				category = cl_tech
			}
			add_tech_bonus = {
				name = SPR_navy_modernization
				bonus = 1
				uses = 1
				category = naval_gunnery_tech
				category = naval_shell_tech
			}		
		}
	}

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

		cost = 10

		ai_will_do = {
			factor = 30
		}

		search_filters = { FOCUS_FILTER_RESEARCH }

		completion_reward = {
			air_experience = 15
			navy_experience = 25
			add_tech_bonus = {
				name = YUG_naval_bombers
				bonus = 0.25
				uses = 2
				ahead_reduction = 0.5
				category = cat_torpedoes
			}
		}
	}

	focus = {
		id = YUG_heavy_cruiser_project
		icon = GFX_focus_generic_cruiser2
		prerequisite = { focus = YUG_replace_the_dalmacija }
		x = -1
		y = 3
		relative_position_id = YUG_expand_the_split_shipyards

		cost = 10

		ai_will_do = {
			factor = 20
		}

		available = {
			any_owned_state = {
				is_coastal = yes
			}
		}

		search_filters = { FOCUS_FILTER_RESEARCH }


		completion_reward = {
			add_tech_bonus = {
				name = YUG_heavy_cruiser_project
				bonus = 1.0
				uses = 1
				category = ca_tech
			}
			add_tech_bonus = {
				name = industrial_bonus
				bonus = 1
				uses = 1
				category = naval_gunnery_tech
			}
			add_tech_bonus = {
				name = artillery_bonus
				bonus = 1
				uses = 1
				category = naval_shell_tech
			}
			add_breakthrough_progress = {
				specialization = specialization_naval
				value = 0.25
			}
		}
	}

	focus = {
		id = YUG_modern_destroyers
		icon = GFX_goal_generic_destroyer
		prerequisite = { focus = YUG_naval_bombers }
		x = 1
		y = 3
		relative_position_id = YUG_expand_the_split_shipyards

		cost = 10

		ai_will_do = {
			factor = 20
		}

		available = {
			any_owned_state = {
				is_coastal = yes
			}
		}

		search_filters = { FOCUS_FILTER_RESEARCH }


		completion_reward = {
			add_tech_bonus = {
				name = YUG_modern_destroyers
				bonus = 1.0
				uses = 1
				category = dd_tech
			}
			add_tech_bonus = {
				name = YUG_modern_destroyers
				bonus = 1.0
				uses = 1
				category = asw_tech
			}	
			add_breakthrough_progress = {
				specialization = specialization_naval
				value = 0.25
			}
		}
	}

	focus = {
		id = YUG_expand_the_serbian_shipyards
		icon = GFX_focus_generic_refit_civilian_ships
		mutually_exclusive = { focus = YUG_expand_the_split_shipyards }
		x = 2
		y = 0
		relative_position_id = YUG_expand_the_split_shipyards

		cost = 8

		ai_will_do = {
			factor = 40
		}

		available = {
			OR = {
				has_full_control_of_state = 105
				any_other_country = {
					is_ally_with = ROOT
					has_full_control_of_state = 105
				}
			}
		}

		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
				}
			}
			if = {
				limit = { has_dlc = "Arms Against Tyranny" }
				mio:YUG_jadransko_brodogradiliste_organization = {
					add_mio_funds = 500
					add_mio_size = 1
				}
			}
		}
	}

	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 = {
					is_ally_with = ROOT
					has_full_control_of_state = 103
				}
				has_full_control_of_state = 105
				any_other_country = {
					is_ally_with = ROOT
					has_full_control_of_state = 105
				}
			}
		}

		completion_reward = {
			#forts on coast and harbor
			if = {
				limit = { 
					OR = {
						has_full_control_of_state = 103
						any_other_country = {
							is_ally_with = 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 = {
							is_ally_with = 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 = 1
		y = 3
		relative_position_id = YUG_expand_the_serbian_shipyards

		cost = 10

		ai_will_do = {
			factor = 20
		}

		available = {
			any_owned_state = {
				is_coastal = yes
			}
		}

		search_filters = { FOCUS_FILTER_RESEARCH }


		completion_reward = {
			add_tech_bonus = {
				name = YUG_expand_the_submarine_fleet
				bonus = 1.0
				uses = 1
				category = ss_tech
			}
			add_tech_bonus = {
				name = SPR_navy_modernization
				bonus = 2
				uses = 1
				category = torpedo_equipment
			}				
		}
	}
	focus = {
		id = YUG_skilled_pilots # naval pilots alright
		icon = GFX_goal_generic_navy_cruiser
		prerequisite = { focus = YUG_heavy_cruiser_project focus = YUG_modern_destroyers }
		mutually_exclusive = { focus = YUG_adriatic_specialization }
		x = 1
		y = 1
		relative_position_id = YUG_heavy_cruiser_project

		cost = 10

		ai_will_do = {
			factor = 20
		}

		available = {
			any_owned_state = {
				is_coastal = yes
			}
		}

		search_filters = { FOCUS_FILTER_RESEARCH }

		completion_reward = {
			navy_experience = 15
			every_navy_leader = { 		
				add_coordination = 1
			}
			add_doctrine_cost_reduction = {
				name = YUG_contest_the_adriatic
				cost_reduction = 0.5
				uses = 1
				category = naval_doctrine
			}
			add_ideas = YUG_skilled_pilots											
		}
	}	
	focus = {
		id = YUG_adriatic_specialization
		icon = GFX_focus_generic_adriatic_sea_focus
		prerequisite = { focus = YUG_modern_destroyers focus = YUG_expand_the_submarine_fleet }
		mutually_exclusive = { focus = YUG_skilled_pilots }
		x = 3
		y = 1
		relative_position_id = YUG_heavy_cruiser_project

		cost = 10

		ai_will_do = {
			factor = 20
		}

		available = {
			any_owned_state = {
				is_coastal = yes
			}
		}

		search_filters = { FOCUS_FILTER_RESEARCH }


		completion_reward = {
			navy_experience = 15
			add_doctrine_cost_reduction = {
				name = YUG_contest_the_adriatic
				cost_reduction = 0.5
				uses = 1
				category = naval_doctrine
			}
			every_navy_leader = { 
				add_unit_leader_trait = inshore_fighter
			}
			if = {
				limit = {
					any_country_with_original_tag = {
						original_tag_to_check = CRO
						OR = {
							exists = no
							is_subject_of = ROOT
						}
					}
				}
				set_global_flag = yugoslav_croat_adriatic_training
				every_country = {
					limit = {
						original_tag = CRO
						OR = {
							exists = no
							is_subject_of = ROOT
						}						
					}
					every_navy_leader = { 
						add_unit_leader_trait = inshore_fighter
					}
				}
			}
			if = {
				limit = {
					any_country_with_original_tag = {
						original_tag_to_check = SER
						OR = {
							exists = no
							is_subject_of = ROOT
						}
					}
				}
				set_global_flag = yugoslav_serb_adriatic_training
				every_country = {
					limit = {
						original_tag = SER
						OR = {
							exists = no
							is_subject_of = ROOT
						}						
					}
					every_navy_leader = { 
						add_unit_leader_trait = inshore_fighter
					}
				}				
			}
			if = {
				limit = {
					any_country_with_original_tag = {
						original_tag_to_check = MNT
						OR = {
							exists = no
							is_subject_of = ROOT
						}
					}
				}
				set_global_flag = yugoslav_montenegrin_adriatic_training
				every_country = {
					limit = {
						original_tag = MNT
						OR = {
							exists = no
							is_subject_of = ROOT
						}						
					}
					every_navy_leader = { 
						add_unit_leader_trait = inshore_fighter
					}
				}			
			}
			if = {
				limit = {
					any_country_with_original_tag = {
						original_tag_to_check = SLV
						OR = {
							exists = no
							is_subject_of = ROOT
						}
					}
				}
				set_global_flag = yugoslav_slovene_adriatic_training
				every_country = {
					limit = {
						original_tag = SLV
						OR = {
							exists = no
							is_subject_of = ROOT
						}						
					}
					every_navy_leader = { 
						add_unit_leader_trait = inshore_fighter
					}
				}			
			}																	
		}
	}
}
