focus_tree = {
	id = yugoslavian_focus
	country = {
		factor = 0
		modifier = {
			add = 10
			tag = YUG
			has_dlc = "Death or Dishonor"
			
		}
	}
	
	continuous_focus_position = { x = 50 y = 1900 }
	
	default = no
	focus = {
		id = YUG_western_focus
		icon = GFX_goal_generic_position_armies
		cost = 10
		mutually_exclusive = {
			focus = YUG_form_peasant_councils
		}
		x = 6
		y = 0
			ai_will_do = {
					factor = 200
				}
			available = {

}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_POLITICAL }
			completion_reward = {
					add_political_power = 150
					add_ideas = king_peter_1
				}

	}
	focus = {
		id = YUG_form_peasant_councils
		icon = GFX_goal_generic_demand_territory
		cost = 10
		mutually_exclusive = {
			focus = YUG_western_focus
		}
		x = 16
		y = 0
			ai_will_do = {
					factor = 200
				}
			available = {

}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_POLITICAL }
			completion_reward = {
					add_timed_idea = {
							idea = YUG_idea_peasant_councils
							days = 1095
						}
				}

	}
	focus = {
		id = YUG_industrialization_program
		icon = GFX_goal_generic_construction
		cost = 10
		x = 22
		y = 0
			ai_will_do = {
					factor = 280
				}
			available = {

}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = yes
			search_filters = { FOCUS_FILTER_INDUSTRY  FOCUS_FILTER_RESEARCH }
			completion_reward = {
					add_tech_bonus = {
							bonus = 0.5
							uses = 3
							category = industry
						}
				}

	}
	focus = {
		id = YUG_purchase_foreign
		icon = GFX_goal_generic_intelligence_exchange
		cost = 10
		x = 40
		y = 0
			ai_will_do = {
					factor = 60
				}
			available = {

}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			completion_reward = {
					if = {
							limit = {
									NOT = {
											has_war_with = GER
										}
								}
							GER = {
									country_event = DOD_yugoslavia.20
								}
						}
					if = {
							limit = {
									NOT = {
											has_war_with = ITA
										}
								}
							ITA = {
									country_event = DOD_yugoslavia.20
								}
						}
					if = {
							limit = {
									NOT = {
											has_war_with = ENG
										}
								}
							ENG = {
									country_event = DOD_yugoslavia.20
								}
						}
					if = {
							limit = {
									NOT = {
											has_war_with = FRA
										}
								}
							FRA = {
									country_event = DOD_yugoslavia.20
								}
						}
				}

	}
	focus = {
		id = YUG_army_modernization
		icon = GFX_goal_generic_army_doctrines
		cost = 10
		x = 31
		y = 0
			ai_will_do = {
					factor = 70
					modifier = {
							factor = 1.2
							is_in_faction_with = GER
						}
				}
			available = {

}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			completion_reward = {
					army_experience = 25
				}

	}
	focus = {
		id = YUG_contest_the_adriatic
		icon = GFX_goal_generic_navy_doctrines_tactics
		cost = 10
		mutually_exclusive = {
			focus = YUG_coastal_defense
		}
		x = 44
		y = 0
			ai_will_do = {
					factor = 20
				}
			available = {
					any_owned_state = {
							is_coastal = yes
						}
				}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_RESEARCH }
			completion_reward = {
					add_doctrine_cost_reduction = {
							name = YUG_contest_the_adriatic
							cost_reduction = 0.5
							uses = 2
							category = naval_doctrine
						}
				}

	}
	focus = {
		id = YUG_coastal_defense
		icon = GFX_focus_generic_coastal_fort
		cost = 10
		mutually_exclusive = {
			focus = YUG_contest_the_adriatic
		}
		x = 46
		y = 0
			ai_will_do = {
					factor = 30
				}
			available = {
					OR = {
							has_full_control_of_state = 103
							any_other_country = {
									OR = {
											is_in_faction_with = ROOT
											is_subject_of = ROOT
										}
									has_full_control_of_state = 103
								}
							has_full_control_of_state = 105
							any_other_country = {
									OR = {
											is_in_faction_with = ROOT
											is_subject_of = ROOT
										}
									has_full_control_of_state = 105
								}
						}
				}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			completion_reward = {
					if = {
							limit = {
									OR = {
											has_full_control_of_state = 103
											any_other_country = {
													OR = {
															is_in_faction_with = ROOT
															is_subject_of = ROOT
														}
													has_full_control_of_state = 103
												}
										}
								}
							103 = {
									custom_effect_tooltip = YUG_coastal_defense_effect_tt1
									custom_effect_tooltip = YUG_coastal_defense_effect_tt2
									hidden_effect = {
											add_building_construction = {
													type = coastal_bunker
													province = {
															all_provinces = yes
															limit_to_coastal = yes
														}
													level = 2
													instant_build = yes
												}
											add_building_construction = {
													type = coastal_bunker
													province = {
															all_provinces = yes
															limit_to_naval_base = yes
														}
													level = 1
													instant_build = yes
												}
										}
								}
						}
					if = {
							limit = {
									OR = {
											has_full_control_of_state = 105
											any_other_country = {
													OR = {
															is_in_faction_with = ROOT
															is_subject_of = ROOT
														}
													has_full_control_of_state = 105
												}
										}
								}
							105 = {
									custom_effect_tooltip = YUG_coastal_defense_effect_tt1
									custom_effect_tooltip = YUG_coastal_defense_effect_tt2
									hidden_effect = {
											add_building_construction = {
													type = coastal_bunker
													province = {
															all_provinces = yes
															limit_to_coastal = yes
														}
													level = 2
													instant_build = yes
												}
											add_building_construction = {
													type = coastal_bunker
													province = {
															all_provinces = yes
															limit_to_naval_base = yes
														}
													level = 1
													instant_build = yes
												}
										}
								}
						}
				}

	}
	focus = {
		id = YUG_improve_serbian_rail_network
		icon = GFX_goal_generic_construct_infrastructure
		cost = 10
		mutually_exclusive = {
			focus = YUG_integrated_rail_network
		}
		x = 3
		y = 6
			ai_will_do = {
					factor = 40
					modifier = {
							factor = 2
							is_in_faction_with = GER
						}
				}
			available = {
					OR = {
							has_completed_focus = YUG_recognize_the_soviet_union
							has_completed_focus = YUG_attract_allied_capital
							has_completed_focus = YUG_attract_axis_capital
							has_completed_focus = YUG_yugoslavian_path_to_communism
						}
				}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = yes
			search_filters = { FOCUS_FILTER_INDUSTRY }
			completion_reward = {
					every_owned_state = {
							limit = {
									infrastructure < 4
									is_core_of = SER
									free_building_slots = {
											building = infrastructure
											size > 1
										}
									state_population > 50000
								}
							add_building_construction = {
									type = infrastructure
									level = 1
									instant_build = yes
								}
						}
				}

	}
	focus = {
		id = YUG_integrated_rail_network
		icon = GFX_goal_generic_construct_infrastructure
		cost = 10
		mutually_exclusive = {
			focus = YUG_improve_serbian_rail_network
		}
		x = 11
		y = 6
			ai_will_do = {
					factor = 260
					modifier = {
							factor = 1.2
							OR = {
									has_completed_focus = YUG_join_comintern
									has_completed_focus = YUG_yugoslavian_path_to_communism
								}
						}
				}
			available = {
					OR = {
							has_completed_focus = YUG_attract_allied_capital
							has_completed_focus = YUG_yugoslavian_path_to_communism
						}
}
			bypass = {

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

	}
	focus = {
		id = YUG_evolution
		icon = GFX_goal_anschluss
		cost = 10
		prerequisite = {
			focus = YUG_improve_serbian_rail_network
		}
		x = 3
		y = 7
			ai_will_do = {
					factor = 40
				}
			available = {
					OR = {
							has_completed_focus = YUG_recognize_the_soviet_union
							has_completed_focus = YUG_attract_allied_capital
							has_completed_focus = YUG_attract_axis_capital
							has_completed_focus = YUG_yugoslavian_path_to_communism
						}
				}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_POLITICAL }
			completion_reward = {
					add_stability = -0.10
					every_owned_state = {
							limit = {
									is_core_of = SER
								}
							add_extra_state_shared_building_slots = 1
						}
				}

	}
	focus = {
		id = YUG_crush_the_ustasa
		icon = GFX_goal_generic_political_pressure
		cost = 5
		prerequisite = {
			focus = YUG_evolution
		}
		mutually_exclusive = {
			focus = YUG_establish_the_banovina_of_croatia
		}
		x = 2
		y = 8
			ai_will_do = {
					factor = 60
				}
			available = {
					ITA = {
							NOT = {
									has_war_with = ROOT
								}
							exists = yes
							has_capitulated = no
						}
				}
			bypass = {

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

}
			completion_reward = {
					activate_mission = YUG_ustasa_uprising
					activate_mission = YUG_ustasa_crushed_mission
				}

	}
	focus = {
		id = YUG_establish_the_banovina_of_croatia
		icon = GFX_focus_YUG_banovina_of_croatia
		cost = 10
		prerequisite = {
			focus = YUG_evolution
		}
		mutually_exclusive = {
			focus = YUG_crush_the_ustasa
		}
		x = 4
		y = 8
			ai_will_do = {
					factor = 40
				}
			available = {
					controls_state = 109
					controls_state = 103
				}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_POLITICAL  FOCUS_FILTER_STABILITY }
			completion_reward = {
					remove_ideas = YUG_idea_croatian_opposition
					add_timed_idea = {
							idea = YUG_idea_croats_suppressed
							days = 1095
						}
				}

	}
	focus = {
		id = YUG_slovenia_for_support
		icon = GFX_focus_chi_mission_to_germany
		cost = 10
		prerequisite = {
			focus = YUG_crush_the_ustasa
			focus = YUG_establish_the_banovina_of_croatia
		}
		mutually_exclusive = {
			focus = YUG_ban_slovene_nationalist_parties
		}
		x = 2
		y = 9
			ai_will_do = {
					factor = 40
				}
			available = {
					NOT = {
							has_government = communism
						}
				}
			bypass = {

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

}
			completion_reward = {
					remove_ideas = YUG_idea_slovene_nationalism
					if = {
							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
								}
						}
					ITA = {
							add_opinion_modifier = {
									target = ROOT
									modifier = YUG_gave_away_slovenia
								}
						}
					hidden_effect = {
							add_opinion_modifier = {
									target = ITA
									modifier = YUG_gave_away_slovenia
								}
						}
					102 = {
							remove_core_of = ROOT
						}
				}

	}
	focus = {
		id = YUG_ban_slovene_nationalist_parties
		icon = GFX_focus_generic_support_the_left_right
		cost = 10
		prerequisite = {
			focus = YUG_establish_the_banovina_of_croatia
			focus = YUG_crush_the_ustasa
		}
		mutually_exclusive = {
			focus = YUG_slovenia_for_support
		}
		x = 4
		y = 9
			ai_will_do = {
					factor = 40
				}
			available = {

}
			bypass = {

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

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

	}
	focus = {
		id = YUG_surrender_macedonia
		icon = GFX_focus_CZE_german_puppet
		cost = 10
		prerequisite = {
			focus = YUG_ban_slovene_nationalist_parties
			focus = YUG_slovenia_for_support
		}
		mutually_exclusive = {
			focus = YUG_concessions_for_macedonians
		}
		x = 2
		y = 10
			ai_will_do = {
					factor = 40
				}
			available = {
					NOT = {
							has_government = communism
						}
					owns_state = 106
					owns_state = 803
				}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_POLITICAL }
			completion_reward = {
					remove_ideas = YUG_idea_macedonian_opposition
					BUL = {
							add_opinion_modifier = {
									target = ROOT
									modifier = huge_increase
								}
							transfer_state = 106
							transfer_state = 803
						}
					106 = {
							remove_core_of = ROOT
						}
				}

	}
	focus = {
		id = YUG_attract_axis_capital
		icon = GFX_goal_generic_intelligence_exchange
		cost = 10
		prerequisite = {
			focus = YUG_western_focus
		}
		mutually_exclusive = {
			focus = YUG_attract_allied_capital
		}
		x = 4
		y = 1
			ai_will_do = {
					factor = 80
				}
			available = {
					OR = {
							GER = {
									NOT = {
											has_war_with = ROOT
										}
								}
							ITA = {
									NOT = {
											has_war_with = ROOT
										}
								}
						}
				}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_INDUSTRY }
			completion_reward = {
					add_timed_idea = {
							idea = YUG_idea_axis_capital
							days = 1825
						}
				}

	}
	focus = {
		id = YUG_join_axis
		icon = GFX_goal_support_fascism
		cost = 10
		prerequisite = {
			focus = YUG_attract_axis_capital
		}
		x = 4
		y = 2
			ai_will_do = {
					factor = 100
				}
			available = {
					OR = {
							GER = {
									NOT = {
											has_war_with = ROOT
										}
									has_government = fascism
									has_capitulated = no
									is_faction_leader = yes
								}
							any_other_country = {
									is_major = yes
									has_government = fascism
									is_faction_leader = yes
								}
						}
					NOT = {
							any_other_country = {
									is_in_faction_with = GER
									has_war_with = YUG
								}
						}
				}
			bypass = {
					is_in_faction_with = GER
				}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_POLITICAL }
			completion_reward = {
					hidden_effect = {
							if = {
									limit = {
											GER = {
													exists = yes
													has_capitulated = no
													has_government = fascism
													is_faction_leader = yes
												}
										}
									GER = {
											country_event = DOD_yugoslavia.70
										}
								}
							else = {
									get_best_alliance_match_fascism_effect = yes
									var:best_leader = {
											country_event = DOD_yugoslavia.70
										}
								}
						}
					effect_tooltip = {
							if = {
									limit = {
											GER = {
													exists = yes
													has_capitulated = no
													has_government = fascism
													is_faction_leader = yes
												}
										}
									GER = {
											add_opinion_modifier = {
													target = YUG
													modifier = tripartite_pact_opinion
												}
											reverse_add_opinion_modifier = {
													target = YUG
													modifier = tripartite_pact_opinion
												}
										}
								}
							else = {
									get_best_alliance_match_fascism_effect = yes
									var:best_leader = {
											add_opinion_modifier = {
													target = YUG
													modifier = tripartite_pact_opinion
												}
											reverse_add_opinion_modifier = {
													target = YUG
													modifier = tripartite_pact_opinion
												}
										}
								}
						}
					create_country_leader = {
							name = "Prince Paul"
							desc = "POLITICS_PRINCE_PAUL_DESC"
							picture = "Portrait_Yugoslavia_Prince_Paul.dds"
							expire = "1965.1.1"
							ideology = fascism_ideology
							traits = {

}
						}
				}

	}
	focus = {
		id = YUG_friendship_treaty_with_italy
		icon = GFX_goal_generic_improve_relations
		cost = 5
		prerequisite = {
			focus = YUG_join_axis
		}
		x = 3
		y = 3
			ai_will_do = {
					factor = 80
				}
			available = {
					ITA = {
							NOT = {
									has_war_with = ROOT
								}
							exists = yes
							has_capitulated = no
						}
				}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_POLITICAL }
			completion_reward = {
					ITA = {
							add_opinion_modifier = {
									target = ROOT
									modifier = large_increase
								}
						}
				}

	}
	focus = {
		id = YUG_invite_german_military_mission
		icon = GFX_focus_generic_military_mission
		cost = 5
		prerequisite = {
			focus = YUG_join_axis
		}
		x = 5
		y = 3
			ai_will_do = {
					factor = 50
				}
			available = {
					GER = {
							NOT = {
									has_war_with = ROOT
								}
							exists = yes
							has_capitulated = no
						}
				}
			bypass = {

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

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

	}
	focus = {
		id = YUG_zara_for_axis
		icon = GFX_goal_generic_attack_allies
		cost = 10
		prerequisite = {
			focus = YUG_friendship_treaty_with_italy
			focus = YUG_invite_german_military_mission
		}
		mutually_exclusive = {
			focus = YUG_surrender_italian_claims
		}
		x = 5
		y = 4
			ai_will_do = {
					factor = 100
				}
			available = {
					has_stability > 0.5
					threat > 0.15
					ITA = {
							NOT = {
									has_war_with = ROOT
								}
							has_government = fascism
							has_capitulated = no
							controls_state = 163
							is_in_faction = yes
						}
					NOT = {
							has_completed_focus = YUG_end_the_regency
						}
				}
			bypass = {
					is_in_faction_with = ITA
					controls_state = 163
				}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_POLITICAL }
			completion_reward = {
					ITA = {
							country_event = {
									id = DOD_yugoslavia.80
									days = 5
								}
						}
				}

	}
	focus = {
		id = YUG_attract_allied_capital
		icon = GFX_goal_generic_intelligence_exchange
		cost = 10
		prerequisite = {
			focus = YUG_western_focus
		}
		mutually_exclusive = {
			focus = YUG_attract_axis_capital
		}
		x = 8
		y = 1
			ai_will_do = {
					factor = 80
				}
			available = {

}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_INDUSTRY }
			completion_reward = {
					add_timed_idea = {
							idea = YUG_idea_foreign_capital
							days = 1825
						}
				}

	}
	focus = {
		id = YUG_coronation
		icon = GFX_goal_support_democracy
		cost = 10
		prerequisite = {
			focus = YUG_attract_axis_capital
			focus = YUG_attract_allied_capital
		}
		x = 6
		y = 2
			ai_will_do = {
					factor = 40
				}
			available = {
					is_subject = no
					OR = {
							date > 1939.1.1
							AND = {
									has_country_leader = {
											character = YUG_peter_ii
											ruling_only = yes
										}
									NOT = {
											has_country_leader_with_trait = underage_monarch
										}
								}
							AND = {
									NOT = {
											has_idea = king_peter_1
										}
									has_country_leader = {
											character = YUG_prince_paul
											ruling_only = yes
										}
								}
						}
				}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_POLITICAL }
			completion_reward = {
					if = {
							limit = {
									OR = {
											has_idea = king_peter_1
											NOT = {
													has_completed_focus = YUG_western_focus
												}
										}
								}
							set_party_name = {
									ideology = neutrality
									name = YUG_kardocevik
									long_name = YUG_kardocevik
								}
						}
					hidden_effect = {
							country_event = {
									id = DOD_yugoslavia.60
								}
						}
					effect_tooltip = {
							if = {
									limit = {
											has_country_leader = {
													name = "Prince Paul"
													ruling_only = yes
												}
											NOT = {
													has_idea = king_peter_1
												}
											has_completed_focus = YUG_western_focus
										}
									create_country_leader = {
											name = "Paul I"
											desc = "POLITICS_PRINCE_PAUL_DESC"
											picture = "Portrait_Yugoslavia_Prince_Paul.dds"
											expire = "1965.1.1"
											ideology = fascism_ideology
											traits = { collaborator_king }
										}
									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.1
						}
				}

	}
	focus = {
		id = YUG_serbian_steel
		icon = GFX_goal_generic_construct_civilian
		cost = 10
		prerequisite = {
			focus = YUG_improve_serbian_rail_network
			focus = YUG_integrated_rail_network
		}
		x = 6
		y = 7
			ai_will_do = {
					factor = 60
				}
			available = {
					has_full_control_of_state = 108
				}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = yes
			search_filters = { FOCUS_FILTER_INDUSTRY }
			completion_reward = {
					108 = {
							add_resource = {
									type = steel
									amount = 16
								}
						}
				}

	}
	focus = {
		id = YUG_expand_the_university_of_belgrad
		icon = GFX_focus_research
		cost = 10
		prerequisite = {
			focus = YUG_serbian_steel
		}
		mutually_exclusive = {
			focus = YUG_expand_the_university_of_ljubljana
		}
		x = 6
		y = 9
			ai_will_do = {
					factor = 100
				}
			available = {

}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = yes
			search_filters = { FOCUS_FILTER_RESEARCH }
			completion_reward = {
					add_research_slot = 1
				}

	}
	focus = {
		id = YUG_central_management
		icon = GFX_goal_generic_demand_territory
		cost = 10
		prerequisite = {
			focus = YUG_expand_the_university_of_belgrad
		}
		x = 6
		y = 10
			ai_will_do = {
					factor = 50
				}
			available = {

}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = yes
			search_filters = { FOCUS_FILTER_INDUSTRY }
			completion_reward = {
					add_ideas = YUG_idea_central_management
				}

	}
	focus = {
		id = YUG_end_the_regency
		icon = GFX_focus_rom_royal_dictatorship
		cost = 10
		prerequisite = {
			focus = YUG_attract_allied_capital
		}
		x = 8
		y = 2
			ai_will_do = {
					factor = 40
				}
			available = {
					date > 1938.09.06
					is_subject = no
					NOT = { has_government = communism }
				}
			bypass = {
					has_country_leader = {
							character = YUG_peter_ii
							ruling_only = yes
						}
				}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_POLITICAL }
			completion_reward = {
					retire_country_leader = yes
					YUG_peter_ii = {
							promote_character = {
									ideology = despotism
								}
							promote_character = {
									ideology = conservatism
								}
						}
					if = {
							limit = {
									date > 1941.09.06
								}
							YUG_peter_ii = {
									swap_country_leader_traits = {
											remove = underage_monarch
											add = legitimate_heir
										}
								}
							hidden_effect = {
									set_country_flag = peter_is_of_age
								}
						}
				}

	}
	focus = {
		id = YUG_royal_wedding
		icon = GFX_goal_tfv_strengthen_commonwealth_ties
		cost = 10
		prerequisite = {
			focus = YUG_end_the_regency
		}
		x = 8
		y = 3
			ai_will_do = {
					factor = 40
				}
			available = {
					is_subject = no
					NOT = { has_government = communism }
					OR = {
							date > 1940.1.1
							AND = {
									has_country_leader = {
											character = YUG_peter_ii
											ruling_only = yes
										}
									NOT = {
											has_country_leader_with_trait = underage_monarch
										}
								}
						}
				}
			bypass = {

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

	}
	focus = {
		id = YUG_enforced_neutrality
		icon = GFX_goal_generic_defence
		cost = 10
		prerequisite = {
			focus = YUG_royal_wedding
		}
		mutually_exclusive = {
			focus = YUG_join_allies
		}
		x = 7
		y = 4
			ai_will_do = {
					factor = 40
				}
			available = {
					has_stability > 0.5
					threat > 0.15
				}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_POLITICAL }
			completion_reward = {
					add_ideas = YUG_neutral_foreign_policy
					add_ideas = neutrality_idea
				}

	}
	focus = {
		id = YUG_develop_slovenian_industry
		icon = GFX_goal_generic_construct_mil_factory
		cost = 10
		prerequisite = {
			focus = YUG_improve_serbian_rail_network
			focus = YUG_integrated_rail_network
		}
		x = 8
		y = 7
			ai_will_do = {
					factor = 260
				}
			available = {

}
			bypass = {

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

}
			completion_reward = {
					if = {
							limit = {
									102 = {
											owner = {
													OR = {
															tag = ROOT
															is_subject_of = ROOT
															AND = {
																	tag = SLV
																	is_in_faction_with = ROOT
																}
														}
												}
										}
								}
							102 = {
									add_extra_state_shared_building_slots = 3
									add_building_construction = {
											type = industrial_complex
											level = 1
											instant_build = yes
										}
									add_building_construction = {
											type = arms_factory
											level = 2
											instant_build = yes
										}
								}
						}
					else = {
							random_owned_controlled_state = {
									prioritize = { 102 }
									limit = {
											ROOT = {
													has_full_control_of_state = PREV
												}
										}
									add_extra_state_shared_building_slots = 3
									add_building_construction = {
											type = industrial_complex
											level = 1
											instant_build = yes
										}
									add_building_construction = {
											type = arms_factory
											level = 2
											instant_build = yes
										}
								}
						}
				}

	}
	focus = {
		id = YUG_expand_the_university_of_ljubljana
		icon = GFX_focus_research
		cost = 10
		prerequisite = {
			focus = YUG_develop_slovenian_industry
		}
		mutually_exclusive = {
			focus = YUG_expand_the_university_of_belgrad
		}
		x = 8
		y = 9
			ai_will_do = {
					factor = 100
				}
			available = {
					NOT = {
							has_idea = YUG_idea_slovene_nationalism
						}
				}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = yes
			search_filters = { FOCUS_FILTER_RESEARCH }
			completion_reward = {
					add_research_slot = 1
				}

	}
	focus = {
		id = YUG_local_self_management
		icon = GFX_focus_generic_self_management
		cost = 10
		prerequisite = {
			focus = YUG_expand_the_university_of_ljubljana
		}
		x = 8
		y = 10
			ai_will_do = {
					factor = 260
					modifier = {
							factor = 1.2
							OR = {
									has_completed_focus = YUG_join_comintern
									has_completed_focus = YUG_yugoslavian_path_to_communism
								}
						}
				}
			available = {

}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = yes
			search_filters = { FOCUS_FILTER_INDUSTRY }
			completion_reward = {
					add_ideas = YUG_idea_local_self_management
				}

	}
	focus = {
		id = YUG_all_yugoslavian_regiments
		icon = GFX_goal_rhineland
		cost = 10
		prerequisite = {
			focus = YUG_central_management
			focus = YUG_local_self_management
		}
		x = 7
		y = 11
			ai_will_do = {
					factor = 80
				}
			available = {

}
			bypass = {

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

}
			completion_reward = {
					add_ideas = YUG_idea_all_yugoslavian_regiments
				}

	}
	focus = {
		id = YUG_guarantee_religious_liberties
		icon = GFX_goal_generic_neutrality_focus
		cost = 10
		prerequisite = {
			focus = YUG_all_yugoslavian_regiments
		}
		x = 8
		y = 12
			ai_will_do = {
					factor = 40
				}
			available = {

}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_POLITICAL  FOCUS_FILTER_STABILITY }
			completion_reward = {
					add_ideas = YUG_idea_religious_freedoms_guaranteed
				}

	}
	focus = {
		id = YUG_join_allies
		icon = GFX_goal_generic_major_alliance
		cost = 10
		prerequisite = {
			focus = YUG_royal_wedding
		}
		mutually_exclusive = {
			focus = YUG_enforced_neutrality
		}
		x = 9
		y = 4
			ai_will_do = {
					factor = 50
				}
			available = {
					has_stability > 0.5
					threat > 0.15
					hidden_trigger = {
							OR = {
									event_target:yugoslavia_wedding_partner = {
											NOT = {
													original_tag = YUG
												}
											is_in_faction = yes
										}
									AND = {
											hidden_trigger = {
													event_target:yugoslavia_wedding_partner = {
															original_tag = YUG
														}
												}
											any_other_country = {
													NOT = {
															has_war_with = ROOT
														}
													is_faction_leader = yes
													is_major = yes
													has_government = democratic
												}
											NOT = {
													any_other_country = {
															is_in_faction_with = ENG
															has_war_with = YUG
														}
												}
										}
								}
						}
				}
			bypass = {
					is_in_faction = yes
				}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_POLITICAL }
			completion_reward = {
					custom_effect_tooltip = YUG_royal_alliance_tt
					hidden_effect = {
							if = {
									limit = {
											event_target:yugoslavia_wedding_partner = {
													NOT = {
															original_tag = YUG
														}
													NOT = {
															has_war_with = ROOT
														}
													is_in_faction = yes
												}
										}
									if = {
											limit = {
													event_target:yugoslavia_wedding_partner = {
															is_faction_leader = yes
														}
												}
											event_target:yugoslavia_wedding_partner = {
													country_event = generic.2
												}
										}
									else = {
											random_other_country = {
													limit = {
															is_in_faction_with = event_target:yugoslavia_wedding_partner
															is_faction_leader = yes
														}
													country_event = generic.2
												}
										}
								}
							else = {
									if = {
											limit = {
													ENG = {
															is_faction_leader = yes
															has_government = democratic
															not = {
																	has_war_with = ROOT
																}
														}
												}
											ENG = {
													country_event = generic.2
												}
										}
									else = {
											get_best_alliance_match_democratic_effect = yes
											var:best_leader = {
													country_event = generic.2
												}
										}
									if = {
											limit = {
													has_idea = YUG_idea_croatian_opposition
												}
											country_event = DOD_yugoslavia.10
										}
								}
						}
				}

	}
	focus = {
		id = YUG_allied_air_combat_school
		icon = GFX_goal_generic_air_doctrine
		cost = 10
		prerequisite = {
			focus = YUG_join_allies
		}
		x = 9
		y = 5
			ai_will_do = {
					factor = 100
				}
			available = {
					is_in_faction_with = ENG
				}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			completion_reward = {
					add_to_tech_sharing_group = YUG_air_research_group
					ENG = {
							add_to_tech_sharing_group = YUG_air_research_group
						}
				}

	}
	focus = {
		id = YUG_limited_self_government
		icon = GFX_goal_anschluss
		cost = 5
		prerequisite = {
			focus = YUG_integrated_rail_network
		}
		x = 11
		y = 7
			ai_will_do = {
					factor = 40
				}
			available = {
					OR = {
							has_completed_focus = YUG_yugoslavian_path_to_communism
							has_completed_focus = YUG_attract_allied_capital
						}
				}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_POLITICAL  FOCUS_FILTER_MANPOWER }
			completion_reward = {
					add_manpower = 25000
					remove_ideas = YUG_idea_slovene_nationalism
					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 = {
									add_manpower = 20000
									division_template = {
											name = "Yugoslavian Division"
											priority = 1
											division_names_group = YUG_INF_01
											regiments = {
													infantry = {
															x = 0
															y = 0
														}
													infantry = {
															x = 0
															y = 1
														}
													infantry = {
															x = 0
															y = 2
														}
													infantry = {
															x = 1
															y = 0
														}
													infantry = {
															x = 1
															y = 1
														}
													infantry = {
															x = 1
															y = 2
														}
													infantry = {
															x = 2
															y = 0
														}
													infantry = {
															x = 2
															y = 1
														}
												}
											support = {
													engineer = {
															x = 0
															y = 0
														}
													artillery = {
															x = 0
															y = 1
														}
													anti_air = {
															x = 0
															y = 2
														}
													anti_tank = {
															x = 0
															y = 3
														}
													recon = {
															x = 0
															y = 4
														}
												}
										}
									random_owned_controlled_state = {
											limit = {
													PREV = {
															has_full_control_of_state = PREV
														}
												}
											create_unit = {
													division = "name = \"Slovene Division\" division_template = \"Yugoslavian Division\" start_experience_factor = 0.9"
													owner = PREV
												}
										}
									random_owned_controlled_state = {
											limit = {
													PREV = {
															has_full_control_of_state = PREV
														}
												}
											create_unit = {
													division = "name = \"Slovene Division\" division_template = \"Yugoslavian Division\" start_experience_factor = 0.9"
													owner = PREV
												}
										}
								}
						}
				}

	}
	focus = {
		id = YUG_devolved_croatia
		icon = GFX_focus_YUG_devolved_croatia
		cost = 10
		prerequisite = {
			focus = YUG_limited_self_government
		}
		mutually_exclusive = {
			focus = YUG_united_autonomous_croatia
		}
		x = 10
		y = 8
			search_filters = { FOCUS_FILTER_POLITICAL  FOCUS_FILTER_MANPOWER }
			ai_will_do = {
					factor = 40
				}
			available = {
					NOT = {
							has_government = communism
						}
					controls_state = 109
					controls_state = 103
				}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			completion_reward = {
					add_manpower = 25000
					remove_ideas = YUG_idea_croatian_opposition
					effect_tooltip = {
							release_puppet = CRO
							CRO = {
									custom_effect_tooltip = create_two_units_tt
								}
						}
					custom_effect_tooltip = release_dalmatia_tt
					custom_effect_tooltip = release_dalmatia_units_tt
					hidden_effect = {
							if = {
									limit = {
											CRO = {
													exists = no
												}
										}
									release_puppet = CRO
									set_autonomy = {
											target = CRO
											autonomy_state = autonomy_integrated_puppet
										}
									CRO = {
											save_event_target_as = released_nation_target
										}
								}
							else = {
									create_dynamic_country = {
											original_tag = CRO
											save_event_target_as = released_nation_target
											PREV = {
													every_owned_state = {
															limit = {
																	is_core_of = CRO
																}
															PREV.PREV = {
																	transfer_state = PREV
																}
														}
												}
											PREV = {
													puppet = PREV
													set_autonomy = {
															target = PREV
															autonomy_state = autonomy_integrated_puppet
														}
												}
										}
								}
							event_target:released_nation_target = {
									add_manpower = 40000
									division_template = {
											name = "Yugoslavian Division"
											priority = 1
											division_names_group = YUG_INF_01
											regiments = {
													infantry = {
															x = 0
															y = 0
														}
													infantry = {
															x = 0
															y = 1
														}
													infantry = {
															x = 0
															y = 2
														}
													infantry = {
															x = 1
															y = 0
														}
													infantry = {
															x = 1
															y = 1
														}
													infantry = {
															x = 1
															y = 2
														}
													infantry = {
															x = 2
															y = 0
														}
													infantry = {
															x = 2
															y = 1
														}
													infantry = {
															x = 2
															y = 2
														}
												}
											support = {
													engineer = {
															x = 0
															y = 0
														}
													artillery = {
															x = 0
															y = 1
														}
													anti_tank = {
															x = 0
															y = 2
														}
												}
										}
									random_owned_controlled_state = {
											limit = {
													PREV = {
															has_full_control_of_state = PREV
														}
												}
											create_unit = {
													division = "name = \"Croatian Division\" division_template = \"Yugoslavian Division\" start_experience_factor = 0.9"
													owner = PREV
												}
										}
									random_owned_controlled_state = {
											limit = {
													PREV = {
															has_full_control_of_state = PREV
														}
												}
											create_unit = {
													division = "name = \"Croatian Division\" division_template = \"Yugoslavian Division\" start_experience_factor = 0.9"
													owner = PREV
												}
										}
								}
						}
					hidden_effect = {
							create_dynamic_country = {
									original_tag = CRO
									set_cosmetic_tag = dalmatia
									transfer_state = 103
									PREV = {
											puppet = PREV
											set_autonomy = {
													target = PREV
													autonomy_state = autonomy_integrated_puppet
												}
										}
									division_template = {
											name = "Yugoslavian Division"
											priority = 1
											division_names_group = YUG_INF_01
											regiments = {
													infantry = {
															x = 0
															y = 0
														}
													infantry = {
															x = 0
															y = 1
														}
													infantry = {
															x = 0
															y = 2
														}
													infantry = {
															x = 1
															y = 0
														}
													infantry = {
															x = 1
															y = 1
														}
													infantry = {
															x = 1
															y = 2
														}
													infantry = {
															x = 2
															y = 0
														}
													infantry = {
															x = 2
															y = 1
														}
												}
											support = {
													engineer = {
															x = 0
															y = 0
														}
													artillery = {
															x = 0
															y = 1
														}
												}
										}
									random_owned_controlled_state = {
											limit = {
													PREV = {
															has_full_control_of_state = PREV
														}
												}
											create_unit = {
													division = "name = \"Dalmatian Division\" division_template = \"Yugoslavian Division\" start_experience_factor = 0.9"
													owner = PREV
												}
										}
								}
						}
				}

	}
	focus = {
		id = YUG_united_autonomous_croatia
		icon = GFX_focus_YUG_banovina_of_croatia
		cost = 10
		prerequisite = {
			focus = YUG_limited_self_government
		}
		mutually_exclusive = {
			focus = YUG_devolved_croatia
		}
		x = 12
		y = 8
			ai_will_do = {
					factor = 40
				}
			available = {
					OR = {
							controls_state = 109
							controls_state = 103
							controls_state = 736
							controls_state = 163
						}
				}
			bypass = {

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

	}
	focus = {
		id = YUG_divide_bosnia
		icon = GFX_focus_YUG_divide_bosnia
		cost = 10
		prerequisite = {
			focus = YUG_devolved_croatia
			focus = YUG_united_autonomous_croatia
		}
		mutually_exclusive = {
			focus = YUG_safeguard_bosnia
		}
		x = 10
		y = 9
			ai_will_do = {
					factor = 40
				}
			available = {
					NOT = {
							has_government = communism
						}
					controls_state = 104
					controls_state = 804
				}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_POLITICAL  FOCUS_FILTER_MANPOWER  FOCUS_FILTER_STABILITY }
			completion_reward = {
					add_manpower = 35000
					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 = {
									add_manpower = 35000
									division_template = {
											name = "Yugoslavian Division"
											priority = 1
											division_names_group = YUG_INF_01
											regiments = {
													infantry = {
															x = 0
															y = 0
														}
													infantry = {
															x = 0
															y = 1
														}
													infantry = {
															x = 0
															y = 2
														}
													infantry = {
															x = 1
															y = 0
														}
													infantry = {
															x = 1
															y = 1
														}
													infantry = {
															x = 1
															y = 2
														}
													infantry = {
															x = 2
															y = 0
														}
													infantry = {
															x = 2
															y = 1
														}
												}
											support = {
													engineer = {
															x = 0
															y = 0
														}
												}
										}
									random_owned_controlled_state = {
											limit = {
													PREV = {
															has_full_control_of_state = PREV
														}
												}
											create_unit = {
													division = "name = \"Herzegovinan Division\" division_template = \"Yugoslavian Division\" start_experience_factor = 0.9"
													owner = PREV
												}
										}
								}
							if = {
									limit = {
											BOS = {
													exists = no
												}
										}
									release_puppet = BOS
									set_autonomy = {
											target = BOS
											autonomy_state = autonomy_integrated_puppet
										}
									BOS = {
											save_event_target_as = released_nation_target
										}
								}
							else = {
									create_dynamic_country = {
											original_tag = BOS
											save_event_target_as = released_nation_target
											PREV = {
													every_owned_state = {
															limit = {
																	is_core_of = BOS
																}
															PREV.PREV = {
																	transfer_state = PREV
																}
														}
												}
											PREV = {
													puppet = PREV
													set_autonomy = {
															target = PREV
															autonomy_state = autonomy_integrated_puppet
														}
												}
										}
								}
							event_target:released_nation_target = {
									add_manpower = 40000
									set_cosmetic_tag = BOS_without_HRZ
									division_template = {
											name = "Yugoslavian Division"
											priority = 1
											division_names_group = YUG_INF_01
											regiments = {
													infantry = {
															x = 0
															y = 0
														}
													infantry = {
															x = 0
															y = 1
														}
													infantry = {
															x = 0
															y = 2
														}
													infantry = {
															x = 1
															y = 0
														}
													infantry = {
															x = 1
															y = 1
														}
													infantry = {
															x = 1
															y = 2
														}
													infantry = {
															x = 2
															y = 0
														}
													infantry = {
															x = 2
															y = 1
														}
												}
											support = {
													engineer = {
															x = 0
															y = 0
														}
													artillery = {
															x = 0
															y = 1
														}
												}
										}
									random_owned_controlled_state = {
											limit = {
													PREV = {
															has_full_control_of_state = PREV
														}
												}
											create_unit = {
													division = "name = \"Bosnian Division\" division_template = \"Yugoslavian Division\" start_experience_factor = 0.9"
													owner = PREV
												}
										}
								}
						}
				}

	}
	focus = {
		id = YUG_safeguard_bosnia
		icon = GFX_focus_YUG_safeguard_bosnia
		cost = 10
		prerequisite = {
			focus = YUG_devolved_croatia
			focus = YUG_united_autonomous_croatia
		}
		mutually_exclusive = {
			focus = YUG_divide_bosnia
		}
		x = 12
		y = 9
			ai_will_do = {
					factor = 40
				}
			available = {
					controls_state = 104
				}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_POLITICAL  FOCUS_FILTER_MANPOWER  FOCUS_FILTER_STABILITY }
			completion_reward = {
					add_manpower = 35000
					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
														}
												}
										}
								}
							event_target:released_nation_target = {
									add_manpower = 50000
									division_template = {
											name = "Bosnian Division"
											priority = 1
											division_names_group = YUG_INF_01
											regiments = {
													infantry = {
															x = 0
															y = 0
														}
													infantry = {
															x = 0
															y = 1
														}
													infantry = {
															x = 0
															y = 2
														}
													infantry = {
															x = 1
															y = 0
														}
													infantry = {
															x = 1
															y = 1
														}
													infantry = {
															x = 1
															y = 2
														}
													infantry = {
															x = 2
															y = 0
														}
													infantry = {
															x = 2
															y = 1
														}
													artillery_brigade = {
															x = 2
															y = 2
														}
												}
											support = {
													engineer = {
															x = 0
															y = 0
														}
													artillery = {
															x = 0
															y = 1
														}
												}
										}
									random_owned_controlled_state = {
											limit = {
													PREV = {
															has_full_control_of_state = PREV
														}
												}
											create_unit = {
													division = "name = \"Bosnian Division\" division_template = \"Bosnian Division\" start_experience_factor = 0.9"
													owner = PREV
												}
										}
									random_owned_controlled_state = {
											limit = {
													PREV = {
															has_full_control_of_state = PREV
														}
												}
											create_unit = {
													division = "name = \"Bosnian Division\" division_template = \"Bosnian Division\" start_experience_factor = 0.9"
													owner = PREV
												}
										}
									random_owned_controlled_state = {
											limit = {
													PREV = {
															has_full_control_of_state = PREV
														}
												}
											create_unit = {
													division = "name = \"Bosnian Division\" division_template = \"Bosnian Division\" start_experience_factor = 0.9"
													owner = PREV
												}
										}
								}
						}
				}

	}
	focus = {
		id = YUG_dissolve_serbia
		icon = GFX_focus_YUG_dissolve_serbia
		cost = 10
		prerequisite = {
			focus = YUG_divide_bosnia
			focus = YUG_safeguard_bosnia
		}
		x = 11
		y = 10
			ai_will_do = {
					factor = 40
				}
			available = {
					OR = {
							controls_state = 108
							controls_state = 106
						}
				}
			bypass = {
					NOT = {
							controls_state = 108
						}
					NOT = {
							controls_state = 106
						}
				}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_POLITICAL  FOCUS_FILTER_MANPOWER }
			completion_reward = {
					add_manpower = 35000
					remove_ideas = YUG_idea_macedonian_opposition
					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 = {
									add_manpower = 30000
									division_template = {
											name = "Yugoslavian Division"
											priority = 1
											division_names_group = YUG_INF_01
											regiments = {
													infantry = {
															x = 0
															y = 0
														}
													infantry = {
															x = 0
															y = 1
														}
													infantry = {
															x = 0
															y = 2
														}
													infantry = {
															x = 1
															y = 0
														}
													infantry = {
															x = 1
															y = 1
														}
													infantry = {
															x = 1
															y = 2
														}
													infantry = {
															x = 2
															y = 0
														}
													infantry = {
															x = 2
															y = 1
														}
												}
											support = {
													engineer = {
															x = 0
															y = 0
														}
												}
										}
									random_owned_controlled_state = {
											limit = {
													PREV = {
															has_full_control_of_state = PREV
														}
												}
											create_unit = {
													division = "name = \"Macedonian Division\" division_template = \"Yugoslavian Division\" start_experience_factor = 0.9"
													owner = PREV
												}
										}
									random_owned_controlled_state = {
											limit = {
													PREV = {
															has_full_control_of_state = PREV
														}
												}
											create_unit = {
													division = "name = \"Macedonian Division\" division_template = \"Yugoslavian Division\" start_experience_factor = 0.9"
													owner = PREV
												}
										}
								}
						}
					release_puppet = KOS
					KOS = {
							custom_effect_tooltip = create_one_units_tt
						}
					hidden_effect = {
							KOS = {
									save_event_target_as = released_nation_target
								}
							event_target:released_nation_target = {
									add_manpower = 35000
									division_template = {
											name = "Yugoslavian Division"
											priority = 1
											division_names_group = YUG_INF_01
											regiments = {
													infantry = {
															x = 0
															y = 0
														}
													infantry = {
															x = 0
															y = 1
														}
													infantry = {
															x = 0
															y = 2
														}
													infantry = {
															x = 1
															y = 0
														}
													infantry = {
															x = 1
															y = 1
														}
													infantry = {
															x = 1
															y = 2
														}
													infantry = {
															x = 2
															y = 0
														}
													infantry = {
															x = 2
															y = 1
														}
												}
											support = {
													engineer = {
															x = 0
															y = 0
														}
												}
										}
									random_owned_controlled_state = {
											limit = {
													PREV = {
															has_full_control_of_state = PREV
														}
												}
											create_unit = {
													division = "name = \"Kosovan Division\" division_template = \"Yugoslavian Division\" start_experience_factor = 0.9"
													owner = PREV
												}
										}
								}
						}
					release_puppet = MNT
					MNT = {
							custom_effect_tooltip = create_one_units_tt
						}
					hidden_effect = {
							MNT = {
									save_event_target_as = released_nation_target
								}
							event_target:released_nation_target = {
									add_manpower = 35000
									division_template = {
											name = "Yugoslavian Division"
											priority = 1
											division_names_group = YUG_INF_01
											regiments = {
													infantry = {
															x = 0
															y = 0
														}
													infantry = {
															x = 0
															y = 1
														}
													infantry = {
															x = 0
															y = 2
														}
													infantry = {
															x = 1
															y = 0
														}
													infantry = {
															x = 1
															y = 1
														}
													infantry = {
															x = 1
															y = 2
														}
													infantry = {
															x = 2
															y = 0
														}
													infantry = {
															x = 2
															y = 1
														}
												}
											support = {
													engineer = {
															x = 0
															y = 0
														}
												}
										}
									random_owned_controlled_state = {
											limit = {
													PREV = {
															has_full_control_of_state = PREV
														}
												}
											create_unit = {
													division = "name = \"Montenegrin Division\" division_template = \"Yugoslavian Division\" start_experience_factor = 0.9"
													owner = PREV
												}
										}
								}
						}
					set_autonomy = {
							target = MAC
							autonomy_state = autonomy_integrated_puppet
						}
					set_autonomy = {
							target = KOS
							autonomy_state = autonomy_integrated_puppet
						}
					set_autonomy = {
							target = MNT
							autonomy_state = autonomy_integrated_puppet
						}
				}

	}
	focus = {
		id = YUG_banat_for_support
		icon = GFX_focus_generic_concessions
		cost = 5
		prerequisite = {
			focus = YUG_dissolve_serbia
		}
		mutually_exclusive = {
			focus = YUG_autonomous_transylvania
		}
		x = 10
		y = 11
			ai_will_do = {
					factor = 20
				}
			available = {
					NOT = {
							has_government = communism
						}
					OR = {
							controls_state = 764
							controls_state = 45
						}
				}
			bypass = {
					NOT = {
							controls_state = 764
						}
					NOT = {
							controls_state = 45
						}
				}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_POLITICAL }
			completion_reward = {
					add_manpower = 25000
					if = {
							limit = {
									controls_state = 764
								}
							ROM = {
									add_opinion_modifier = {
											target = ROOT
											modifier = huge_increase
										}
									transfer_state = 764
								}
							diplomatic_relation = {
									country = YUG
									relation = non_aggression_pact
									active = yes
								}
							764 = {
									remove_core_of = ROOT
									add_core_of = ROM
								}
						}
					if = {
							limit = {
									controls_state = 45
								}
							HUN = {
									add_opinion_modifier = {
											target = ROOT
											modifier = huge_increase
										}
									diplomatic_relation = {
											country = YUG
											relation = non_aggression_pact
											active = yes
										}
									transfer_state = 45
								}
							45 = {
									remove_core_of = ROOT
									add_core_of = ROM
								}
						}
					hidden_effect = {
							set_cosmetic_tag = SER
							every_state = {
									limit = {
											is_core_of = YUG
											NOT = {
													is_core_of = SER
												}
										}
									remove_core_of = YUG
								}
							every_state = {
									limit = {
											is_core_of = SER
										}
									remove_core_of = SER
								}
						}
				}

	}
	focus = {
		id = YUG_abolish_the_monarchy
		icon = GFX_goal_tfv_burn_the_royal_portraits
		cost = 10
		prerequisite = {
			focus = YUG_form_peasant_councils
		}
		x = 16
		y = 1
			ai_will_do = {
					factor = 150
				}
			available = {
					communism > 0.4
				}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_POLITICAL }
			completion_reward = {
					set_politics = {
							ruling_party = communism
							elections_allowed = no
						}
					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_yugoslavian_path_to_communism
		icon = GFX_goal_generic_war_with_comintern
		cost = 10
		prerequisite = {
			focus = YUG_abolish_the_monarchy
		}
		mutually_exclusive = {
			focus = YUG_recognize_the_soviet_union
		}
		x = 15
		y = 2
			ai_will_do = {
					factor = 60
				}
			available = {
					is_in_faction = no
				}
			bypass = {
					is_in_faction = yes
				}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_POLITICAL }
			completion_reward = {
					SOV = {
							add_opinion_modifier = {
									target = YUG
									modifier = large_decrease
								}
						}
					swap_ideas = {
							remove_idea = YUG_idea_empowered_peasant_councils
							add_idea = YUG_idea_very_empowered_peasant_councils
						}
				}

	}
	focus = {
		id = YUG_reinforce_old_alliances
		icon = GFX_goal_generic_major_alliance
		cost = 10
		prerequisite = {
			focus = YUG_end_the_regency
			focus = YUG_yugoslavian_path_to_communism
		}
		x = 12
		y = 3
			ai_will_do = {
					factor = 40
				}
			available = {
					ENG = {
							NOT = {
									has_war_with = ROOT
								}
							exists = yes
						}
					FRA = {
							NOT = {
									has_war_with = ROOT
								}
							exists = yes
						}
				}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_POLITICAL }
			completion_reward = {
					ENG = {
							add_opinion_modifier = {
									target = ROOT
									modifier = large_increase
								}
							add_ai_strategy = {
									type = protect
									id = "YUG"
									value = 50
								}
						}
					add_relation_modifier = {
							target = ENG
							modifier = YUG_western_license
						}
					FRA = {
							add_opinion_modifier = {
									target = ROOT
									modifier = large_increase
								}
							add_ai_strategy = {
									type = protect
									id = "YUG"
									value = 50
								}
						}
					add_relation_modifier = {
							target = FRA
							modifier = YUG_western_license
						}
					add_popularity = {
							ideology = democratic
							popularity = 0.05
						}
					if = {
							limit = {
									has_idea = free_trade
								}
							add_political_power = 100
						}
					else = {
							add_ideas = free_trade
						}
				}

	}
	focus = {
		id = YUG_federal_defense_council
		icon = GFX_goal_demand_sudetenland
		cost = 10
		prerequisite = {
			focus = YUG_yugoslavian_path_to_communism
		}
		x = 15
		y = 3
			ai_will_do = {
					factor = 50
				}
			available = {

}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_POLITICAL }
			completion_reward = {
					ALB = {
							add_opinion_modifier = {
									target = YUG
									modifier = large_decrease
								}
						}
					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_pan_slavic_workers_congress
		icon = GFX_focus_YUG_pan_slavic_congress
		cost = 10
		prerequisite = {
			focus = YUG_federal_defense_council
		}
		x = 15
		y = 4
			ai_will_do = {
					factor = 50
				}
			available = {
					has_stability > 0.5
					threat > 0.15
					is_subject = no
				}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_POLITICAL }
			completion_reward = {
					set_rule = {
							can_create_factions = yes
						}
					create_faction = panslavic_workers_congress
					unlock_decision_tooltip = YUG_instigate_in_bulgaria
					unlock_decision_tooltip = YUG_instigate_in_albania
					hidden_effect = {
							news_event = {
									id = news.330
								}
						}
				}

	}
	focus = {
		id = YUG_invite_bulgaria
		icon = GFX_goal_generic_alliance
		cost = 5
		prerequisite = {
			focus = YUG_pan_slavic_workers_congress
		}
		x = 14
		y = 5
			ai_will_do = {
					factor = 100
				}
			available = {
					BUL = {
							NOT = {
									has_war_with = ROOT
								}
							exists = yes
							is_puppet = no
							is_in_faction = no
							has_government = communism
						}
					is_faction_leader = yes
				}
			bypass = {
					BUL = {
							OR = {
									exists = no
									is_puppet_of = ROOT
									is_in_faction = yes
									has_country_flag = banned_communism_flag
									AND = {
											NOT = {
													has_government = communism
												}
											hidden_trigger = {
													has_country_flag = had_yugo_civil_war_flag
												}
											has_civil_war = no
										}
								}
						}
				}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_POLITICAL }
			completion_reward = {
					BUL = {
							country_event = generic.5
						}
				}

	}
	focus = {
		id = YUG_invite_albania
		icon = GFX_goal_generic_alliance
		cost = 5
		prerequisite = {
			focus = YUG_pan_slavic_workers_congress
		}
		x = 16
		y = 5
			ai_will_do = {
					factor = 100
				}
			available = {
					ALB = {
							NOT = {
									has_war_with = ROOT
								}
							exists = yes
							is_puppet = no
							is_in_faction = no
							has_government = communism
						}
					is_faction_leader = yes
				}
			bypass = {
					ALB = {
							OR = {
									exists = no
									is_puppet_of = ROOT
									is_in_faction = yes
									has_country_flag = banned_communism_flag
									AND = {
											NOT = {
													has_government = communism
												}
											hidden_trigger = {
													has_country_flag = had_yugo_civil_war_flag
												}
											has_civil_war = no
										}
								}
						}
				}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_POLITICAL }
			completion_reward = {
					ALB = {
							country_event = generic.5
						}
				}

	}
	focus = {
		id = YUG_pan_balkan_workers_congress
		icon = GFX_focus_YUG_pan_slavic_congress
		cost = 10
		prerequisite = {
			focus = YUG_invite_bulgaria
		}
		prerequisite = {
			focus = YUG_invite_albania
		}
		x = 15
		y = 6
			ai_will_do = {
					factor = 50
				}
			available = {
					is_faction_leader = yes
					is_subject = no
				}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_POLITICAL }
			completion_reward = {
					set_faction_name = panbalkan_workers_congress
					unlock_decision_tooltip = YUG_instigate_in_greece
					unlock_decision_tooltip = YUG_instigate_in_romania
					unlock_decision_tooltip = YUG_instigate_in_hungary
				}

	}
	focus = {
		id = YUG_invite_romania
		icon = GFX_goal_generic_alliance
		cost = 5
		prerequisite = {
			focus = YUG_pan_balkan_workers_congress
		}
		x = 13
		y = 7
			ai_will_do = {
					factor = 100
				}
			available = {
					ROM = {
							NOT = {
									has_war_with = ROOT
								}
							exists = yes
							is_puppet = no
							is_in_faction = no
							has_government = communism
						}
					is_faction_leader = yes
				}
			bypass = {
					ROM = {
							OR = {
									exists = no
									is_puppet_of = ROOT
									is_in_faction = yes
									has_country_flag = banned_communism_flag
									AND = {
											NOT = {
													has_government = communism
												}
											hidden_trigger = {
													has_country_flag = had_yugo_civil_war_flag
												}
											has_civil_war = no
										}
								}
						}
				}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_POLITICAL }
			complete_tooltip = {

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

	}
	focus = {
		id = YUG_invite_greece
		icon = GFX_goal_generic_alliance
		cost = 5
		prerequisite = {
			focus = YUG_pan_balkan_workers_congress
		}
		x = 15
		y = 7
			ai_will_do = {
					factor = 100
				}
			available = {
					GRE = {
							NOT = {
									has_war_with = ROOT
								}
							exists = yes
							is_puppet = no
							is_in_faction = no
							has_government = communism
						}
					is_faction_leader = yes
				}
			bypass = {
					GRE = {
							OR = {
									exists = no
									is_puppet_of = ROOT
									is_in_faction = yes
									has_country_flag = banned_communism_flag
									AND = {
											NOT = {
													has_government = communism
												}
											hidden_trigger = {
													has_country_flag = had_yugo_civil_war_flag
												}
											has_civil_war = no
										}
								}
						}
				}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_POLITICAL }
			complete_tooltip = {

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

	}
	focus = {
		id = YUG_invite_hungary
		icon = GFX_goal_generic_alliance
		cost = 5
		prerequisite = {
			focus = YUG_pan_balkan_workers_congress
		}
		x = 17
		y = 7
			ai_will_do = {
					factor = 100
				}
			available = {
					HUN = {
							NOT = {
									has_war_with = ROOT
								}
							exists = yes
							is_puppet = no
							is_in_faction = no
							has_government = communism
						}
					is_faction_leader = yes
				}
			bypass = {
					HUN = {
							OR = {
									exists = no
									is_puppet_of = ROOT
									is_in_faction = yes
									has_country_flag = banned_communism_flag
									AND = {
											NOT = {
													has_government = communism
												}
											hidden_trigger = {
													has_country_flag = had_yugo_civil_war_flag
												}
											has_civil_war = no
										}
								}
						}
				}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_POLITICAL }
			complete_tooltip = {

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

	}
	focus = {
		id = YUG_invite_turkey
		icon = GFX_goal_generic_alliance
		cost = 5
		prerequisite = {
			focus = YUG_invite_greece
		}
		prerequisite = {
			focus = YUG_invite_hungary
		}
		prerequisite = {
			focus = YUG_invite_romania
		}
		x = 15
		y = 8
			ai_will_do = {
					factor = 100
				}
			available = {
					TUR = {
							NOT = {
									has_war_with = ROOT
								}
							exists = yes
							is_puppet = no
							is_in_faction = no
							has_government = communism
						}
					is_faction_leader = yes
				}
			bypass = {
					TUR = {
							OR = {
									exists = no
									is_puppet_of = ROOT
									is_in_faction = yes
									has_country_flag = banned_communism_flag
									AND = {
											NOT = {
													has_government = communism
												}
											hidden_trigger = {
													has_country_flag = had_yugo_civil_war_flag
												}
											has_civil_war = no
										}
								}
						}
				}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_POLITICAL }
			complete_tooltip = {

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

	}
	focus = {
		id = YUG_recognize_the_soviet_union
		icon = GFX_focus_generic_soviet_politics
		cost = 10
		prerequisite = {
			focus = YUG_abolish_the_monarchy
		}
		mutually_exclusive = {
			focus = YUG_yugoslavian_path_to_communism
		}
		x = 18
		y = 2
			ai_will_do = {
					factor = 50
				}
			available = {
					SOV = {
							NOT = {
									has_war_with = ROOT
								}
							exists = yes
							has_capitulated = no
						}
				}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_POLITICAL }
			completion_reward = {
					kill_country_leader = yes
					create_country_leader = {
							name = "Sreten Žujović"
							picture = gfx/leaders/Europe/portrait_europe_generic_land_17.dds
							expire = "1965.1.1"
							ideology = stalinism
							traits = { staunch_stalinist }
						}
					SOV = {
							add_opinion_modifier = {
									target = ROOT
									modifier = medium_increase
								}
						}
					if = {
							every_other_country = {
									limit = {
											has_opinion_modifier = BFTB_balkan_pact_ally
										}
									remove_opinion_modifier = {
											target = YUG
											modifier = BFTB_balkan_pact_ally
										}
									hidden_effect = {
											ROOT = {
													remove_opinion_modifier = {
															target = PREV
															modifier = BFTB_balkan_pact_ally
														}
												}
										}
								}
						}
					hidden_effect = {
							news_event = {
									id = news.329
									days = 3
									random = 6
								}
						}
				}

	}
	focus = {
		id = YUG_form_the_federal_republic
		icon = GFX_goal_generic_forceful_treaty
		cost = 10
		prerequisite = {
			focus = YUG_recognize_the_soviet_union
		}
		x = 17
		y = 3
			ai_will_do = {
					factor = 100
				}
			available = {

}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_POLITICAL  FOCUS_FILTER_STABILITY  FOCUS_FILTER_INDUSTRY }
			completion_reward = {
					add_manpower = 250000
					if = {
							limit = {
									has_idea = YUG_idea_serbian_general_staff
								}
							swap_ideas = {
									remove_idea = YUG_idea_serbian_general_staff
									add_idea = YUG_idea_yugoslavian_general_staff
								}
						}
				}

	}
	focus = {
		id = YUG_mutual_economic_aid
		icon = GFX_goal_generic_soviet_construction
		cost = 10
		prerequisite = {
			focus = YUG_recognize_the_soviet_union
		}
		x = 19
		y = 3
			ai_will_do = {
					factor = 200
				}
			available = {
					SOV = {
							NOT = {
									has_war_with = ROOT
								}
							exists = yes
							has_capitulated = no
						}
				}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_INDUSTRY }
			completion_reward = {
					random_owned_controlled_state = {
							limit = {
									OR = {
											has_state_category = town
											has_state_category = large_town
											has_state_category = city
										}
									is_core_of = ROOT
									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
								}
						}
					random_owned_controlled_state = {
							limit = {
									OR = {
											has_state_category = town
											has_state_category = large_town
											has_state_category = city
										}
									is_core_of = ROOT
									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
								}
						}
					add_timed_idea = {
							idea = YUG_idea_economic_aid
							days = 1825
						}
					SOV = {
							add_political_power = 50
						}
					SOV = {
							add_ai_strategy = {
									type = support
									id = "YUG"
									value = 50
								}
						}
				}

	}
	focus = {
		id = YUG_join_comintern
		icon = GFX_focus_generic_join_comintern
		cost = 10
		prerequisite = {
			focus = YUG_form_the_federal_republic
		}
		prerequisite = {
			focus = YUG_mutual_economic_aid
		}
		x = 18
		y = 4
			ai_will_do = {
					factor = 40
				}
			available = {
					has_stability > 0.5
					threat > 0.15
					is_in_faction = no
					OR = {
							SOV = {
									NOT = {
											has_war_with = ROOT
										}
									exists = yes
									has_capitulated = no
								}
							any_other_country = {
									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
				}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_POLITICAL }
			completion_reward = {
					if = {
							limit = {
									SOV = {
											exists = yes
											has_government = communism
											is_faction_leader = yes
										}
								}
							SOV = {
									country_event = generic.2
								}
						}
					else = {
							get_best_alliance_match_communism_effect = yes
							var:best_leader = {
									country_event = generic.2
								}
						}
				}

	}
	focus = {
		id = YUG_research_collaboration
		icon = GFX_focus_generic_socialist_science
		cost = 10
		prerequisite = {
			focus = YUG_join_comintern
		}
		x = 18
		y = 5
			ai_will_do = {
					factor = 100
				}
			available = {
					is_in_faction_with = SOV
				}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_RESEARCH }
			completion_reward = {
					add_to_tech_sharing_group = YUG_SOV_research_group
					SOV = {
							add_to_tech_sharing_group = YUG_SOV_research_group
						}
				}

	}
	focus = {
		id = YUG_expand_the_mining_industry
		icon = GFX_goal_generic_construct_civilian
		cost = 10
		prerequisite = {
			focus = YUG_industrialization_program
		}
		x = 21
		y = 1
			ai_will_do = {
					factor = 270
					modifier = {
							factor = 1.2
							OR = {
									has_completed_focus = YUG_join_comintern
									has_completed_focus = YUG_yugoslavian_path_to_communism
								}
						}
				}
			available = {

}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = yes
			search_filters = { FOCUS_FILTER_INDUSTRY }
			completion_reward = {
					add_ideas = YUG_idea_expanded_mining_industry
				}

	}
	focus = {
		id = YUG_rare_minerals_exploitation
		icon = GFX_goal_generic_construction2
		cost = 10
		prerequisite = {
			focus = YUG_expand_the_mining_industry
		}
		x = 20
		y = 2
			ai_will_do = {
					factor = 260
					modifier = {
							factor = 1.2
							OR = {
									has_completed_focus = YUG_join_comintern
									has_completed_focus = YUG_yugoslavian_path_to_communism
								}
						}
				}
			available = {

}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_INDUSTRY }
			completion_reward = {
					if = {
							limit = {
									105 = {
											owner = {
													OR = {
															tag = ROOT
															is_subject_of = ROOT
															AND = {
																	tag = MNT
																	is_in_faction_with = ROOT
																}
														}
												}
										}
								}
							105 = {
									add_resource = {
											type = tungsten
											amount = 8
										}
								}
						}
					else = {
							random_owned_controlled_state = {
									prioritize = { 105 }
									add_resource = {
											type = tungsten
											amount = 8
										}
								}
						}
					if = {
							limit = {
									109 = {
											owner = {
													OR = {
															tag = ROOT
															is_subject_of = ROOT
															AND = {
																	tag = MNT
																	is_in_faction_with = ROOT
																}
														}
												}
										}
								}
							109 = {
									add_resource = {
											type = chromium
											amount = 8
										}
								}
						}
					else = {
							random_owned_controlled_state = {
									prioritize = { 109 }
									add_resource = {
											type = chromium
											amount = 8
										}
								}
						}
				}

	}
	focus = {
		id = YUG_exploit_the_pannonian_deposits
		icon = GFX_goal_generic_oil_refinery
		cost = 10
		prerequisite = {
			focus = YUG_expand_the_mining_industry
		}
		x = 22
		y = 2
			ai_will_do = {
					factor = 240
					modifier = {
							factor = 1.2
							OR = {
									has_completed_focus = YUG_join_comintern
									has_completed_focus = YUG_yugoslavian_path_to_communism
								}
						}
				}
			available = {

}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_INDUSTRY }
			completion_reward = {
					random_owned_controlled_state = {
							prioritize = { 45 }
							add_resource = {
									type = oil
									amount = 8
								}
						}
				}

	}
	focus = {
		id = YUG_develop_civilian_industry
		icon = GFX_goal_generic_construct_civ_factory
		cost = 10
		prerequisite = {
			focus = YUG_industrialization_program
		}
		x = 24
		y = 1
			ai_will_do = {
					factor = 260
					modifier = {
							factor = 1.2
							OR = {
									has_completed_focus = YUG_join_comintern
									has_completed_focus = YUG_yugoslavian_path_to_communism
								}
						}
				}
			available = {

}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = yes
			search_filters = { FOCUS_FILTER_INDUSTRY }
			completion_reward = {
					random_owned_controlled_state = {
							prioritize = { 102 }
							limit = {
									ROOT = {
											has_full_control_of_state = PREV
										}
								}
							add_extra_state_shared_building_slots = 1
							add_building_construction = {
									type = industrial_complex
									level = 1
									instant_build = yes
								}
						}
					random_owned_controlled_state = {
							prioritize = { 107 }
							limit = {
									ROOT = {
											has_full_control_of_state = PREV
										}
								}
							add_extra_state_shared_building_slots = 1
							add_building_construction = {
									type = industrial_complex
									level = 1
									instant_build = yes
								}
						}
					random_owned_controlled_state = {
							prioritize = { 109 }
							limit = {
									ROOT = {
											has_full_control_of_state = PREV
										}
								}
							add_extra_state_shared_building_slots = 1
							add_building_construction = {
									type = industrial_complex
									level = 1
									instant_build = yes
								}
						}
				}

	}
	focus = {
		id = YUG_develop_military_industry
		icon = GFX_goal_generic_construct_mil_factory
		cost = 10
		prerequisite = {
			focus = YUG_develop_civilian_industry
		}
		x = 24
		y = 2
			ai_will_do = {
					factor = 40
					modifier = {
							factor = 2
							is_in_faction_with = GER
						}
				}
			available = {

}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = yes
			search_filters = { FOCUS_FILTER_INDUSTRY }
			completion_reward = {
					random_owned_controlled_state = {
							prioritize = { 107 }
							limit = {
									ROOT = {
											has_full_control_of_state = PREV
										}
								}
							add_extra_state_shared_building_slots = 3
							add_building_construction = {
									type = arms_factory
									level = 3
									instant_build = yes
								}
						}
				}

	}
	focus = {
		id = YUG_ikarus
		icon = GFX_focus_YUG_ikarus
		cost = 10
		prerequisite = {
			focus = YUG_develop_military_industry
		}
		x = 22
		y = 3
			ai_will_do = {
					factor = 50
				}
			available = {

}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_INDUSTRY }
			completion_reward = {
					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
		cost = 10
		prerequisite = {
			focus = YUG_develop_military_industry
		}
		x = 24
		y = 3
			ai_will_do = {
					factor = 50
				}
			available = {

}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_INDUSTRY }
			completion_reward = {
					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
		cost = 10
		prerequisite = {
			focus = YUG_develop_military_industry
		}
		x = 26
		y = 3
			ai_will_do = {
					factor = 50
				}
			available = {

}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_INDUSTRY }
			completion_reward = {
					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_expand_the_sarajevo_arsenals
		icon = GFX_goal_generic_build_tank
		cost = 10
		prerequisite = {
			focus = YUG_ikarus
			focus = YUG_rogozarski
			focus = YUG_zmaj
		}
		x = 24
		y = 4
			ai_will_do = {
					factor = 100
				}
			available = {

}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = yes
			search_filters = { FOCUS_FILTER_INDUSTRY }
			completion_reward = {
					if = {
							limit = {
									104 = {
											owner = {
													OR = {
															tag = ROOT
															is_subject_of = ROOT
															AND = {
																	tag = BOS
																	is_in_faction_with = ROOT
																}
														}
												}
										}
								}
							104 = {
									add_extra_state_shared_building_slots = 3
									add_building_construction = {
											type = industrial_complex
											level = 1
											instant_build = yes
										}
									add_building_construction = {
											type = arms_factory
											level = 2
											instant_build = yes
										}
								}
						}
					else = {
							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_improve_light_industry
		icon = GFX_goal_generic_construct_civ_factory
		cost = 10
		prerequisite = {
			focus = YUG_expand_the_sarajevo_arsenals
		}
		x = 23
		y = 5
			ai_will_do = {
					factor = 240
					modifier = {
							factor = 1.2
							OR = {
									has_completed_focus = YUG_join_comintern
									has_completed_focus = YUG_yugoslavian_path_to_communism
								}
						}
				}
			available = {

}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = yes
			search_filters = { FOCUS_FILTER_INDUSTRY }
			completion_reward = {
					random_owned_controlled_state = {
							prioritize = { 104 }
							limit = {
									ROOT = {
											has_full_control_of_state = PREV
										}
								}
							add_extra_state_shared_building_slots = 1
							add_building_construction = {
									type = industrial_complex
									level = 1
									instant_build = yes
								}
						}
					random_owned_controlled_state = {
							prioritize = { 106 }
							limit = {
									ROOT = {
											has_full_control_of_state = PREV
										}
								}
							add_extra_state_shared_building_slots = 1
							add_building_construction = {
									type = industrial_complex
									level = 1
									instant_build = yes
								}
						}
				}

	}
	focus = {
		id = YUG_expand_the_university_of_zagreb
		icon = GFX_focus_research
		cost = 10
		prerequisite = {
			focus = YUG_expand_the_sarajevo_arsenals
		}
		x = 25
		y = 5
			ai_will_do = {
					factor = 200
				}
			available = {
					NOT = {
							has_idea = YUG_idea_croatian_opposition
						}
				}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = yes
			search_filters = { FOCUS_FILTER_RESEARCH }
			completion_reward = {
					add_research_slot = 1
				}

	}
	focus = {
		id = YUG_supremacy_of_offense
		icon = GFX_goal_generic_major_war
		cost = 10
		prerequisite = {
			focus = YUG_army_modernization
		}
		mutually_exclusive = {
			focus = YUG_supremacy_of_defense
		}
		x = 30
		y = 1
			ai_will_do = {
					factor = 30
				}
			available = {

}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_RESEARCH }
			completion_reward = {
					add_doctrine_cost_reduction = {
							name = YUG_supremacy_of_offense
							cost_reduction = 0.5
							uses = 2
							category = cat_mobile_warfare
							category = cat_superior_firepower
						}
				}

	}
	focus = {
		id = YUG_supremacy_of_defense
		icon = GFX_goal_generic_position_armies
		cost = 10
		prerequisite = {
			focus = YUG_army_modernization
		}
		mutually_exclusive = {
			focus = YUG_supremacy_of_offense
		}
		x = 32
		y = 1
			ai_will_do = {
					factor = 60
				}
			available = {

}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_RESEARCH }
			completion_reward = {
					add_doctrine_cost_reduction = {
							name = YUG_supremacy_of_defense
							cost_reduction = 0.5
							uses = 2
							category = cat_grand_battle_plan
							category = cat_mass_assault
						}
				}

	}
	focus = {
		id = YUG_army_maneuvers
		icon = GFX_goal_generic_army_doctrines
		cost = 10
		prerequisite = {
			focus = YUG_supremacy_of_offense
			focus = YUG_supremacy_of_defense
		}
		x = 31
		y = 2
			ai_will_do = {
					factor = 70
				}
			available = {

}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_RESEARCH }
			completion_reward = {
					add_doctrine_cost_reduction = {
							name = YUG_army_maneuvers
							cost_reduction = 0.5
							uses = 1
							category = land_doctrine
						}
				}

	}
	focus = {
		id = YUG_motorize_the_cavalry
		icon = GFX_goal_generic_cavalry
		cost = 10
		prerequisite = {
			focus = YUG_army_maneuvers
		}
		x = 28
		y = 3
			ai_will_do = {
					factor = 50
					modifier = {
							factor = 1.2
							is_in_faction_with = GER
						}
				}
			available = {

}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_RESEARCH }
			completion_reward = {
					add_tech_bonus = {
							name = YUG_motorize_the_cavalry
							bonus = 1.5
							technology = motorised_infantry
						}
				}

	}
	focus = {
		id = YUG_motorized_logistics
		icon = GFX_goal_generic_army_motorized
		cost = 10
		prerequisite = {
			focus = YUG_motorize_the_cavalry
		}
		x = 27
		y = 4
			ai_will_do = {
					factor = 40
					modifier = {
							factor = 1.2
							is_in_faction_with = GER
						}
				}
			available = {

}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_RESEARCH }
			completion_reward = {
					add_tech_bonus = {
							name = YUG_motorized_logistics
							bonus = 0.75
							uses = 4
							category = hospital_tech
							category = logistics_tech
						}
				}

	}
	focus = {
		id = YUG_armored_cavalry
		icon = GFX_goal_generic_build_tank
		cost = 10
		prerequisite = {
			focus = YUG_motorize_the_cavalry
		}
		x = 29
		y = 4
			ai_will_do = {
					factor = 40
					modifier = {
							factor = 1.5
							is_in_faction_with = GER
						}
				}
			available = {

}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_RESEARCH }
			completion_reward = {
					add_tech_bonus = {
							name = YUG_armored_cavalry
							bonus = 0.75
							uses = 2
							category = cat_mechanized_equipment
						}
				}

	}
	focus = {
		id = YUG_local_militias
		icon = GFX_goal_generic_allies_build_infantry
		cost = 10
		prerequisite = {
			focus = YUG_army_maneuvers
		}
		x = 33
		y = 3
			ai_will_do = {
					factor = 80
				}
			available = {

}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_MANPOWER }
			completion_reward = {
					add_ideas = YUG_idea_local_militias
				}

	}
	focus = {
		id = YUG_domestic_artillery_production
		icon = GFX_goal_generic_construct_military
		cost = 10
		prerequisite = {
			focus = YUG_local_militias
		}
		mutually_exclusive = {
			focus = YUG_anti_tank_defenses
		}
		x = 31
		y = 4
			ai_will_do = {
					factor = 70
				}
			available = {

}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_RESEARCH }
			completion_reward = {
					add_tech_bonus = {
							name = YUG_domestic_artillery_production
							bonus = 1.5
							uses = 2
							category = artillery
						}
				}

	}
	focus = {
		id = YUG_anti_tank_defenses
		icon = GFX_goal_generic_army_artillery2
		cost = 10
		prerequisite = {
			focus = YUG_local_militias
		}
		mutually_exclusive = {
			focus = YUG_domestic_artillery_production
		}
		x = 33
		y = 4
			ai_will_do = {
					factor = 60
				}
			available = {

}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_RESEARCH }
			completion_reward = {
					add_tech_bonus = {
							name = YUG_anti_tank_defenses
							bonus = 1.5
							uses = 2
							category = cat_anti_tank
						}
				}

	}
	focus = {
		id = YUG_artillery_regiments
		icon = GFX_goal_generic_army_artillery
		cost = 10
		prerequisite = {
			focus = YUG_domestic_artillery_production
			focus = YUG_anti_tank_defenses
		}
		x = 32
		y = 5
			ai_will_do = {
					factor = 70
				}
			available = {

}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			completion_reward = {
					add_ideas = YUG_artillery_regiments
				}

	}
	focus = {
		id = YUG_small_arms
		icon = GFX_goal_generic_small_arms
		cost = 10
		prerequisite = {
			focus = YUG_local_militias
		}
		x = 35
		y = 4
			ai_will_do = {
					factor = 70
				}
			available = {

}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_RESEARCH }
			completion_reward = {
					add_tech_bonus = {
							name = YUG_small_arms
							bonus = 1.00
							uses = 2
							category = infantry_weapons
						}
				}

	}
	focus = {
		id = YUG_motorized_recon_companies
		icon = GFX_goal_generic_military_sphere
		cost = 10
		prerequisite = {
			focus = YUG_small_arms
		}
		mutually_exclusive = {
			focus = YUG_independent_engineer_regiments
		}
		x = 34
		y = 5
			ai_will_do = {
					factor = 40
				}
			available = {

}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_RESEARCH }
			completion_reward = {
					add_tech_bonus = {
							name = YUG_motorized_recon_companies
							bonus = 0.5
							uses = 3
							category = recon_tech
						}
				}

	}
	focus = {
		id = YUG_independent_engineer_regiments
		icon = GFX_goal_generic_production
		cost = 10
		prerequisite = {
			focus = YUG_small_arms
		}
		mutually_exclusive = {
			focus = YUG_motorized_recon_companies
		}
		x = 36
		y = 5
			ai_will_do = {
					factor = 50
				}
			available = {

}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_RESEARCH }
			completion_reward = {
					add_tech_bonus = {
							name = YUG_independent_engineer_regiments
							bonus = 0.5
							uses = 3
							category = engineers_tech
						}
				}

	}
	focus = {
		id = YUG_form_parachute_battalions
		icon = GFX_focus_generic_paratrooper
		cost = 10
		prerequisite = {
			focus = YUG_motorized_recon_companies
			focus = YUG_independent_engineer_regiments
		}
		mutually_exclusive = {
			focus = YUG_mountain_brigades
		}
		x = 34
		y = 6
			ai_will_do = {
					factor = 10
				}
			available = {

}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_RESEARCH }
			completion_reward = {
					add_tech_bonus = {
							name = YUG_form_parachute_battalions
							bonus = 0.75
							uses = 3
							category = para_tech
						}
				}

	}
	focus = {
		id = YUG_mountain_brigades
		icon = GFX_goal_generic_special_forces
		cost = 10
		prerequisite = {
			focus = YUG_independent_engineer_regiments
			focus = YUG_motorized_recon_companies
		}
		mutually_exclusive = {
			focus = YUG_form_parachute_battalions
		}
		x = 36
		y = 6
			ai_will_do = {
					factor = 70
				}
			available = {

}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_RESEARCH }
			completion_reward = {
					add_tech_bonus = {
							name = YUG_mountain_brigades
							bonus = 0.75
							uses = 3
							category = mountaineers_tech
						}
				}

	}
	focus = {
		id = YUG_modernize_the_air_force
		icon = GFX_goal_generic_air_doctrine
		cost = 10
		prerequisite = {
			focus = YUG_purchase_foreign
		}
		x = 40
		y = 1
			ai_will_do = {
					factor = 60
					modifier = {
							factor = 1.2
							is_in_faction_with = GER
						}
				}
			available = {

}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_RESEARCH }
			completion_reward = {
					air_experience = 75
				}

	}
	focus = {
		id = YUG_local_developers
		icon = GFX_goal_generic_air_production
		cost = 10
		prerequisite = {
			focus = YUG_modernize_the_air_force
		}
		mutually_exclusive = {
			focus = YUG_license_production
		}
		x = 38
		y = 2
			ai_will_do = {
					factor = 60
				}
			available = {

}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_RESEARCH }
			completion_reward = {
					add_ideas = HUN_indigenous_designs
				}

	}
	focus = {
		id = YUG_the_ik_3
		icon = GFX_goal_generic_air_fighter2
		cost = 10
		prerequisite = {
			focus = YUG_local_developers
		}
		x = 38
		y = 3
			ai_will_do = {
					factor = 50
				}
			available = {

}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_RESEARCH }
			completion_reward = {
					add_tech_bonus = {
							name = YUG_the_ik_3
							bonus = 1.5
							ahead_reduction = 1
							uses = 1
							category = light_fighter
						}
				}

	}
	focus = {
		id = YUG_heavy_fighter_project
		icon = GFX_goal_generic_air_fighter
		cost = 10
		prerequisite = {
			focus = YUG_the_ik_3
		}
		x = 37
		y = 4
			ai_will_do = {
					factor = 40
				}
			available = {

}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_RESEARCH }
			completion_reward = {
					add_tech_bonus = {
							name = YUG_heavy_fighter_project
							bonus = 0.5
							uses = 2
							category = cat_heavy_fighter
						}
				}

	}
	focus = {
		id = YUG_bomber_project
		icon = GFX_goal_generic_air_bomber
		cost = 10
		prerequisite = {
			focus = YUG_the_ik_3
		}
		x = 39
		y = 4
			ai_will_do = {
					factor = 20
				}
			available = {

}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_RESEARCH }
			completion_reward = {
					add_tech_bonus = {
							name = YUG_bomber_project
							bonus = 0.5
							uses = 2
							category = tactical_bomber
						}
				}

	}
	focus = {
		id = YUG_license_production
		icon = GFX_focus_generic_license_production
		cost = 10
		prerequisite = {
			focus = YUG_modernize_the_air_force
		}
		mutually_exclusive = {
			focus = YUG_local_developers
		}
		x = 41
		y = 2
			ai_will_do = {
					factor = 50
				}
			available = {

}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			completion_reward = {
					add_ideas = YUG_license_production
				}

	}
	focus = {
		id = YUG_fighter_license
		icon = GFX_goal_generic_air_fighter
		cost = 10
		prerequisite = {
			focus = YUG_license_production
		}
		mutually_exclusive = {
			focus = YUG_bomber_license
		}
		x = 40
		y = 3
			ai_will_do = {
					factor = 50
				}
			available = {
					NOT = {
							has_tech = fighter3
							has_tech = heavy_fighter3
						}
					OR = {
							GER = {
									custom_trigger_tooltip = {
											tooltip = fighter_tt
											OR = {
													is_available_fighter_YUG = yes
													is_available_heavy_fighter_YUG = yes
												}
										}
								}
							FRA = {
									custom_trigger_tooltip = {
											tooltip = fighter_tt
											OR = {
													is_available_fighter_YUG = yes
													is_available_heavy_fighter_YUG = yes
												}
										}
								}
							ITA = {
									custom_trigger_tooltip = {
											tooltip = fighter_tt
											OR = {
													is_available_fighter_YUG = yes
													is_available_heavy_fighter_YUG = yes
												}
										}
								}
							ENG = {
									custom_trigger_tooltip = {
											tooltip = fighter_tt
											OR = {
													is_available_fighter_YUG = yes
													is_available_heavy_fighter_YUG = yes
												}
										}
								}
							USA = {
									custom_trigger_tooltip = {
											tooltip = fighter_tt
											OR = {
													is_available_fighter_YUG = yes
													is_available_heavy_fighter_YUG = yes
												}
										}
								}
						}
				}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			completion_reward = {
					country_event = DOD_yugoslavia.150
				}

	}
	focus = {
		id = YUG_bomber_license
		icon = GFX_goal_generic_air_bomber
		cost = 10
		prerequisite = {
			focus = YUG_license_production
		}
		mutually_exclusive = {
			focus = YUG_fighter_license
		}
		x = 42
		y = 3
			ai_will_do = {
					factor = 25
				}
			available = {
					NOT = {
							has_tech = CAS3
							has_tech = tactical_bomber3
						}
					OR = {
							GER = {
									custom_trigger_tooltip = {
											tooltip = bomber_tt
											OR = {
													is_available_cas_YUG = yes
													is_available_tac_YUG = yes
												}
										}
								}
							FRA = {
									custom_trigger_tooltip = {
											tooltip = bomber_tt
											OR = {
													is_available_cas_YUG = yes
													is_available_tac_YUG = yes
												}
										}
								}
							ITA = {
									custom_trigger_tooltip = {
											tooltip = bomber_tt
											OR = {
													is_available_cas_YUG = yes
													is_available_tac_YUG = yes
												}
										}
								}
							ENG = {
									custom_trigger_tooltip = {
											tooltip = bomber_tt
											OR = {
													is_available_cas_YUG = yes
													is_available_tac_YUG = yes
												}
										}
								}
							USA = {
									custom_trigger_tooltip = {
											tooltip = bomber_tt
											OR = {
													is_available_cas_YUG = yes
													is_available_tac_YUG = yes
												}
										}
								}
						}
				}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			completion_reward = {
					country_event = DOD_yugoslavia.160
				}

	}
	focus = {
		id = YUG_expand_the_split_shipyards
		icon = GFX_goal_generic_construct_naval_dockyard
		cost = 10
		prerequisite = {
			focus = YUG_contest_the_adriatic
			focus = YUG_coastal_defense
		}
		x = 45
		y = 1
			ai_will_do = {
					factor = 40
				}
			available = {
					OR = {
							has_full_control_of_state = 103
							any_other_country = {
									OR = {
											is_in_faction_with = ROOT
											is_subject_of = ROOT
										}
									has_full_control_of_state = 103
								}
						}
				}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_INDUSTRY }
			completion_reward = {
					103 = {
							add_extra_state_shared_building_slots = 2
							add_building_construction = {
									type = dockyard
									level = 2
									instant_build = yes
								}
						}
				}

	}
	focus = {
		id = YUG_naval_bombers
		icon = GFX_goal_generic_air_naval_bomber
		cost = 10
		prerequisite = {
			focus = YUG_modernize_the_air_force
		}
		prerequisite = {
			focus = YUG_expand_the_split_shipyards
		}
		x = 43
		y = 2
			ai_will_do = {
					factor = 30
				}
			available = {
					any_owned_state = {
							is_coastal = yes
						}
				}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_RESEARCH }
			completion_reward = {
					add_tech_bonus = {
							name = YUG_naval_bombers
							bonus = 1.0
							uses = 1
							category = naval_bomber
						}
				}

	}
	focus = {
		id = YUG_expand_the_serbian_shipyards
		icon = GFX_goal_generic_construct_naval_dockyard
		cost = 10
		prerequisite = {
			focus = YUG_expand_the_split_shipyards
		}
		x = 45
		y = 2
			ai_will_do = {
					factor = 40
				}
			available = {
					OR = {
							has_full_control_of_state = 105
							any_other_country = {
									OR = {
											is_in_faction_with = ROOT
											is_subject_of = ROOT
										}
									has_full_control_of_state = 105
								}
						}
				}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_INDUSTRY }
			completion_reward = {
					105 = {
							add_extra_state_shared_building_slots = 2
							add_building_construction = {
									type = dockyard
									level = 2
									instant_build = yes
								}
						}
				}

	}
	focus = {
		id = YUG_replace_the_dalmacija
		icon = GFX_goal_generic_navy_cruiser
		cost = 10
		prerequisite = {
			focus = YUG_expand_the_serbian_shipyards
		}
		x = 44
		y = 3
			ai_will_do = {
					factor = 20
				}
			available = {
					any_owned_state = {
							is_coastal = yes
						}
				}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_RESEARCH }
			completion_reward = {
					add_tech_bonus = {
							name = YUG_replace_the_dalmacija
							bonus = 1.0
							uses = 1
							category = cl_tech
						}
				}

	}
	focus = {
		id = YUG_heavy_cruiser_project
		icon = GFX_goal_generic_navy_battleship
		cost = 10
		prerequisite = {
			focus = YUG_replace_the_dalmacija
		}
		x = 44
		y = 4
			ai_will_do = {
					factor = 20
				}
			available = {
					any_owned_state = {
							is_coastal = yes
						}
				}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_RESEARCH }
			completion_reward = {
					add_tech_bonus = {
							name = YUG_heavy_cruiser_project
							bonus = 1.0
							uses = 1
							category = ca_tech
						}
				}

	}
	focus = {
		id = YUG_modern_destroyers
		icon = GFX_goal_generic_navy_anti_submarine
		cost = 10
		prerequisite = {
			focus = YUG_expand_the_serbian_shipyards
		}
		mutually_exclusive = {
			focus = YUG_expand_the_submarine_fleet
		}
		x = 46
		y = 3
			ai_will_do = {
					factor = 20
				}
			available = {
					any_owned_state = {
							is_coastal = yes
						}
				}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_RESEARCH }
			completion_reward = {
					add_tech_bonus = {
							name = YUG_modern_destroyers
							bonus = 1.0
							uses = 1
							category = dd_tech
						}
				}

	}
	focus = {
		id = YUG_concessions_for_macedonians
		icon = GFX_focus_generic_concessions
		cost = 10
		prerequisite = {
			focus = YUG_ban_slovene_nationalist_parties
			focus = YUG_slovenia_for_support
		}
		mutually_exclusive = {
			focus = YUG_surrender_macedonia
		}
		x = 4
		y = 10
			ai_will_do = {
					factor = 40
				}
			available = {

}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_POLITICAL }
			completion_reward = {
					remove_ideas = YUG_idea_macedonian_opposition
					add_timed_idea = {
							idea = YUG_idea_macedonian_opposition_1
							days = 1095
						}
				}

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

	}
	focus = {
		id = YUG_united_kingdom
		icon = GFX_goal_tfv_strengthen_commonwealth_ties
		cost = 10
		prerequisite = {
			focus = YUG_autonomous_transylvania
			focus = YUG_banat_for_support
		}
		mutually_exclusive = {
			focus = YUG_towards_independence
		}
		x = 12
		y = 12
			ai_will_do = {
					factor = 40
				}
			available = {
					NOT = {
							has_government = communism
						}
				}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_POLITICAL }
			completion_reward = {
					every_other_country = {
							limit = {
									capital_scope = {
											is_on_continent = europe
										}
									NOT = {
											original_tag = YUG
										}
									is_subject_of = ROOT
								}
							add_autonomy_score = {
									value = -25
									localization = YUG_towards_independence_mod
								}
							add_opinion_modifier = {
									target = ROOT
									modifier = medium_decrease
								}
						}
				}

	}
	focus = {
		id = YUG_tank_licenses
		icon = GFX_focus_generic_license_production
		cost = 10
		prerequisite = {
			focus = YUG_motorized_logistics
			focus = YUG_armored_cavalry
		}
		mutually_exclusive = {
			focus = YUG_modern_tanks
		}
		x = 27
		y = 5
			ai_will_do = {
					factor = 60
					modifier = {
							factor = 1.2
							is_in_faction_with = GER
						}
				}
			available = {

}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			completion_reward = {
					add_ideas = YUG_tank_licenses
				}

	}
	focus = {
		id = YUG_surrender_italian_claims
		icon = GFX_goal_support_fascism
		cost = 10
		prerequisite = {
			focus = YUG_invite_german_military_mission
			focus = YUG_friendship_treaty_with_italy
		}
		mutually_exclusive = {
			focus = YUG_zara_for_axis
		}
		x = 3
		y = 4
			ai_will_do = {
					factor = 100
				}
			available = {
					has_stability > 0.5
					threat > 0.15
					OR = {
							GER = {
									NOT = {
											has_war_with = ROOT
										}
									has_government = fascism
									has_capitulated = no
									is_faction_leader = yes
								}
							any_other_country = {
									is_major = yes
									has_government = fascism
									is_faction_leader = yes
								}
						}
					NOT = {
							any_other_country = {
									is_in_faction_with = GER
									has_war_with = YUG
								}
						}
					NOT = {
							has_completed_focus = YUG_end_the_regency
						}
				}
			bypass = {
					is_in_faction_with = GER
				}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_POLITICAL }
			completion_reward = {
					163 = {
							remove_core_of = ROOT
						}
					736 = {
							remove_core_of = ROOT
						}
					if = {
							limit = {
									GER = {
											exists = yes
											has_capitulated = no
											has_government = fascism
											is_faction_leader = yes
										}
								}
							GER = {
									country_event = generic.2
								}
						}
					else = {
							get_best_alliance_match_fascism_effect = yes
							var:best_leader = {
									country_event = generic.2
								}
						}
				}

	}
	focus = {
		id = YUG_invite_italian_naval_experts
		icon = GFX_goal_generic_occupy_states_coastal
		cost = 10
		prerequisite = {
			focus = YUG_surrender_italian_claims
			focus = YUG_zara_for_axis
		}
		x = 4
		y = 5
			ai_will_do = {
					factor = 100
				}
			available = {
					ITA = {
							is_in_faction_with = ROOT
							NOT = {
									has_war_with = ROOT
								}
							exists = yes
							has_capitulated = no
						}
				}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			completion_reward = {
					add_to_tech_sharing_group = YUG_naval_research_group
					ITA = {
							add_to_tech_sharing_group = YUG_naval_research_group
						}
					navy_experience = 50
				}

	}
	focus = {
		id = YUG_fortify_banat
		icon = GFX_goal_generic_fortify_city
		cost = 5
		prerequisite = {
			focus = YUG_surrender_macedonia
			focus = YUG_concessions_for_macedonians
		}
		x = 3
		y = 11
			ai_will_do = {
					factor = 10
				}
			available = {
					OR = {
							controls_state = 764
							controls_state = 45
						}
				}
			bypass = {
					NOT = {
							controls_state = 764
						}
					NOT = {
							controls_state = 45
						}
				}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_INDUSTRY }
			completion_reward = {
					if = {
							limit = {
									controls_state = 764
								}
							764 = {
									add_building_construction = {
											type = bunker
											level = 3
											instant_build = yes
											province = {
													all_provinces = yes
													limit_to_border = yes
												}
										}
								}
						}
					if = {
							limit = {
									controls_state = 45
								}
							45 = {
									add_building_construction = {
											type = bunker
											level = 3
											instant_build = yes
											province = {
													all_provinces = yes
													limit_to_border = yes
												}
										}
								}
						}
					hidden_effect = {
							set_cosmetic_tag = SER
							every_state = {
									limit = {
											is_core_of = YUG
											NOT = {
													is_core_of = SER
												}
										}
									remove_core_of = YUG
								}
							every_state = {
									limit = {
											is_core_of = SER
										}
									remove_core_of = SER
								}
						}
				}

	}
	focus = {
		id = YUG_claim_macedonia
		icon = GFX_goal_generic_territory_or_war
		cost = 10
		prerequisite = {
			focus = YUG_greater_yugoslavia
		}
		x = 5
		y = 13
			ai_will_do = {
					factor = 50
				}
			available = {
					OR = {
							owns_state = 106
							any_country = {
									is_subject_of = ROOT
									owns_state = 106
								}
							MAC = {
									is_in_faction_with = ROOT
								}
						}
					NOT = {
							has_completed_focus = YUG_end_the_regency
						}
				}
			bypass = {
					NOT = {
							owns_state = 106
							any_country = {
									is_subject_of = ROOT
									owns_state = 106
								}
							MAC = {
									is_in_faction_with = ROOT
								}
						}
				}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_ANNEXATION }
			completion_reward = {
					if = {
							limit = {
									owns_state = 106
								}
							add_state_core = 731
						}
					else_if = {
							limit = {
									any_country = {
											is_subject_of = ROOT
											owns_state = 106
										}
								}
							random_country = {
									limit = {
											is_subject_of = ROOT
											owns_state = 106
										}
									add_state_core = 731
								}
						}
					else = {
							MAC = {
									add_state_core = 731
								}
						}
					news_event = {
							id = news.327
						}
				}

	}
	focus = {
		id = YUG_greater_yugoslavia
		icon = GFX_goal_generic_occupy_states_ongoing_war
		cost = 10
		prerequisite = {
			focus = YUG_all_yugoslavian_regiments
		}
		prerequisite = {
			focus = YUG_fortify_banat
		}
		x = 5
		y = 12
			ai_will_do = {
					factor = 60
				}
			available = {

}
			bypass = {

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

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

	}
	focus = {
		id = YUG_fortress_yugoslavia
		icon = GFX_goal_generic_fortify_city
		cost = 10
		prerequisite = {
			focus = YUG_enforced_neutrality
		}
		x = 7
		y = 5
			ai_will_do = {
					factor = 40
				}
			available = {

}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_MANPOWER }
			completion_reward = {
					if = {
							limit = {
									has_idea = YUG_idea_serbian_general_staff
								}
							swap_ideas = {
									remove_idea = YUG_idea_serbian_general_staff
									add_idea = YUG_idea_yugoslavian_general_staff
								}
						}
					if = {
							limit = {
									controls_state = 102
								}
							102 = {
									add_building_construction = {
											type = bunker
											province = 9627
											level = 3
											instant_build = yes
										}
									add_building_construction = {
											type = bunker
											province = 3631
											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
										}
								}
							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 = {
							103 = {
									add_building_construction = {
											type = bunker
											province = 11564
											level = 3
											instant_build = yes
										}
									add_building_construction = {
											type = bunker
											province = 11901
											level = 3
											instant_build = yes
										}
									add_building_construction = {
											type = bunker
											province = 984
											level = 3
											instant_build = yes
										}
									add_building_construction = {
											type = bunker
											province = 3974
											level = 3
											instant_build = yes
										}
									add_building_construction = {
											type = bunker
											province = 3924
											level = 3
											instant_build = yes
										}
									add_building_construction = {
											type = bunker
											province = 3601
											level = 3
											instant_build = yes
										}
								}
							109 = {
									add_building_construction = {
											type = bunker
											province = 11564
											level = 3
											instant_build = yes
										}
									add_building_construction = {
											type = bunker
											province = 9611
											level = 3
											instant_build = yes
										}
									add_building_construction = {
											type = bunker
											province = 3627
											level = 3
											instant_build = yes
										}
									add_building_construction = {
											type = bunker
											province = 11581
											level = 3
											instant_build = yes
										}
									add_building_construction = {
											type = bunker
											province = 3592
											level = 3
											instant_build = yes
										}
								}
						}
				}

	}
	focus = {
		id = YUG_towards_independence
		icon = GFX_goal_tfv_sever_ties_with_uk
		cost = 10
		prerequisite = {
			focus = YUG_banat_for_support
			focus = YUG_autonomous_transylvania
		}
		mutually_exclusive = {
			focus = YUG_united_kingdom
		}
		x = 10
		y = 12
			ai_will_do = {
					factor = 40
				}
			available = {
					NOT = {
							has_government = communism
						}
				}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_POLITICAL }
			completion_reward = {
					every_other_country = {
							limit = {
									capital_scope = {
											is_on_continent = europe
										}
									NOT = {
											original_tag = YUG
										}
									is_subject_of = ROOT
								}
							add_autonomy_score = {
									value = 25
									localization = YUG_towards_independence_mod
								}
							add_opinion_modifier = {
									target = ROOT
									modifier = huge_increase
								}
						}
				}

	}
	focus = {
		id = YUG_defence_army_of_yugoslavia
		icon = GFX_goal_generic_national_unity
		cost = 10
		prerequisite = {
			focus = YUG_towards_independence
		}
		x = 10
		y = 13
			ai_will_do = {
					factor = 40
				}
			available = {
					NOT = {
							has_government = communism
						}
				}
			bypass = {

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

	}
	focus = {
		id = YUG_defence_league
		icon = GFX_goal_generic_alliance
		cost = 10
		prerequisite = {
			focus = YUG_defence_army_of_yugoslavia
		}
		x = 10
		y = 14
			ai_will_do = {
					factor = 40
				}
			available = {
					NOT = {
							has_government = communism
						}
				}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_MANPOWER }
			completion_reward = {
					set_rule = {
							can_create_factions = yes
						}
					if = {
							limit = {
									is_in_faction = no
								}
							create_faction = YUGOSLAV_DEFENCE_LEAGUE
						}
					set_division_template_lock = {
							division_template = "Yugoslavian Defence Army"
							is_locked = no
						}
					random_owned_controlled_state = {
							limit = {
									PREV = {
											has_full_control_of_state = PREV
										}
								}
							create_unit = {
									division = "name = \"Yugoslavian Defence Army\" division_template = \"Yugoslavian Defence Army\" start_experience_factor = 0.9"
									owner = PREV
								}
						}
					every_other_country = {
							limit = {
									capital_scope = {
											is_on_continent = europe
										}
									NOT = {
											original_tag = YUG
										}
									is_subject_of = ROOT
								}
							PREV = {
									set_autonomy = {
											target = PREV
											autonomy_state = autonomy_free
										}
								}
							if = {
									limit = {
											PREV = {
													is_faction_leader = no
												}
										}
									random_other_country = {
											limit = {
													is_in_faction_with = PREV.PREV
													is_faction_leader = yes
												}
											add_to_faction = PREV
										}
								}
							else = {
									PREV = {
											add_to_faction = PREV
										}
								}
							hidden_effect = {
									add_ai_strategy = {
											type = alliance
											id = ROOT
											value = 200
										}
								}
							set_division_template_lock = {
									division_template = "Yugoslavian Defence Army"
									is_locked = no
								}
							random_owned_controlled_state = {
									limit = {
											PREV = {
													has_full_control_of_state = PREV
												}
										}
									create_unit = {
											division = "name = \"Yugoslavian Defence Army\" division_template = \"Yugoslavian Defence Army\" start_experience_factor = 0.9"
											owner = PREV
										}
								}
						}
				}

	}
	focus = {
		id = YUG_reunite_the_kingdom
		icon = GFX_focus_generic_home_defense
		cost = 10
		prerequisite = {
			focus = YUG_united_kingdom
		}
		x = 12
		y = 13
			ai_will_do = {
					factor = 40
				}
			available = {
					NOT = {
							has_government = communism
						}
				}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_POLITICAL }
			completion_reward = {
					drop_cosmetic_tag = yes
					every_other_country = {
							limit = {
									OR = {
											original_tag = SER
											original_tag = SLV
											original_tag = CRO
											original_tag = MNT
											original_tag = KOS
											original_tag = BOS
											original_tag = HRZ
											original_tag = MAC
											original_tag = TRA
											original_tag = HUN
											original_tag = BUL
										}
									is_subject_of = ROOT
								}
							every_state = {
									limit = {
											is_core_of = PREV
										}
									add_core_of = PREV.PREV
								}
							PREV = {
									annex_country = {
											target = PREV
											transfer_troops = yes
										}
								}
						}
				}

	}
	focus = {
		id = YUG_tank_conversions
		icon = GFX_goal_generic_production2
		cost = 10
		prerequisite = {
			focus = YUG_tank_licenses
			focus = YUG_modern_tanks
		}
		x = 28
		y = 6
			ai_will_do = {
					factor = 50
					modifier = {
							factor = 1.5
							is_in_faction_with = GER
						}
				}
			available = {

}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			completion_reward = {
					add_ideas = YUG_idea_tank_conversions
				}

	}
	focus = {
		id = YUG_modern_tanks
		icon = GFX_goal_generic_army_tanks
		cost = 10
		prerequisite = {
			focus = YUG_armored_cavalry
			focus = YUG_motorized_logistics
		}
		mutually_exclusive = {
			focus = YUG_tank_licenses
		}
		x = 29
		y = 5
			ai_will_do = {
					factor = 25
					modifier = {
							factor = 3
							is_in_faction_with = GER
						}
				}
			available = {

}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_RESEARCH }
			completion_reward = {
					add_tech_bonus = {
							name = YUG_modern_tanks
							bonus = 1.0
							uses = 2
							category = armor
						}
				}

	}
	focus = {
		id = YUG_expand_the_submarine_fleet
		icon = GFX_goal_generic_navy_submarine
		cost = 10
		prerequisite = {
			focus = YUG_expand_the_serbian_shipyards
		}
		mutually_exclusive = {
			focus = YUG_modern_destroyers
		}
		x = 48
		y = 3
			ai_will_do = {
					factor = 20
				}
			available = {
					any_owned_state = {
							is_coastal = yes
						}
				}
			bypass = {

}
			cancel_if_invalid = yes
			continue_if_invalid = no
			available_if_capitulated = no
			search_filters = { FOCUS_FILTER_RESEARCH }
			completion_reward = {
					add_tech_bonus = {
							name = YUG_expand_the_submarine_fleet
							bonus = 1.0
							uses = 1
							category = ss_tech
						}
				}

	}
}
