focus_tree = {
	id = crimean_tatars
	
	country = {
		factor = 0

		modifier = {
			add = 10
			tag = CRI
		}
	}
	
	default = no
	reset_on_civilwar = no

	continuous_focus_position = { x = 1400 y = 800 }

	############################
	###  POLITICAL  SECTION  ###
	############################	

	focus = {
		id = CRI_second_kurultai
		icon = GFX_focus_CRI_second_kurultai
		x = 8
		y = 0

		cost = 5

		available_if_capitulated = no

		ai_will_do = {
			factor = 10
		}

		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			add_political_power = 100
			if = {
				limit = {
					NOT = { has_government = democratic }
				}
				set_politics = {
					ruling_party = democratic
					last_election = "1936.1.1"
					election_frequency = 48
					elections_allowed = yes
				}
			}
			set_province_name = { id = 3686 name = UKR_aqyar }
			set_province_name = { id = 3722 name = CRI_or_qapu }
			if = {
				limit = { is_subject = yes }
				country_event = qirimlar.5
			}
			hidden_effect = {
				country_event = { id = qirimlar.9 days = 730 }
				set_popularities = {
					fascism = 25
					democratic = 35
					neutrality = 25
					communism = 15
				}
				set_victory_points  = {
					province = 705
					value = 10
				}
				set_victory_points  = {
					province = 3686
					value = 10
				}
			}
		}
	}

	focus = {
		id = CRI_change_government
		icon = GFX_focus_generic_strike_at_democracy2
		prerequisite = { focus = CRI_second_kurultai }
		mutually_exclusive = { focus = CRI_keep_government }
		x = -4
		y = 1
		relative_position_id = CRI_second_kurultai

		cost = 5

		available_if_capitulated = no


		ai_will_do = {
			factor = 10
		}

		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			country_event = qirimlar.6
		}
	}

	focus = {
		id = CRI_red_mejlis
		icon = GFX_goal_support_communism
		prerequisite = { focus = CRI_change_government }
		mutually_exclusive = { focus = CRI_mejlis_of_nationalists focus = CRI_mejlis_of_traditionalists }
		x = -3
		y = 1
		relative_position_id = CRI_change_government

		cost = 0

		available_if_capitulated = no

		available = {
			always = no
		}

		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			set_politics = {
				ruling_party = communism
				elections_allowed = no
			}
			remove_ideas = CRI_russians_debuff_basic
			add_timed_idea = {
				idea = CRI_russians_debuff_communism
				days = 730
			}
			hidden_effect = {
				set_popularities = {
					fascism = 15
					democratic = 20
					neutrality = 14
					communism = 51
				}
			}
		}
	}

	focus = {
		id = CRI_red_terror
		icon = GFX_focus_SOV_the_last_purge
		prerequisite = { focus = CRI_red_mejlis }
		x = 0
		y = 1
		relative_position_id = CRI_red_mejlis

		cost = 10

		available_if_capitulated = no

		available = {
			has_government = communism
		}

		ai_will_do = {
			factor = 10
		}

		search_filters = { FOCUS_FILTER_WAR_SUPPORT }
		completion_reward = {
			add_war_support = 0.10
			hidden_effect = {
				if = {
					limit = {
						has_character = CRI_veli_ibraimov
						has_character = CRI_ablyakim_gafarov
					}
					country_event = { id = qirimlar.13 days = 7 }
				}
			}
		}
	}

	focus = {
		id = CRI_collectivisation
		icon = GFX_focus_prc_agrarian_socialism
		prerequisite = { focus = CRI_red_terror }
		x = 0
		y = 1
		relative_position_id = CRI_red_terror

		cost = 10

		available_if_capitulated = no

		available = {
			has_government = communism
		}

		ai_will_do = {
			factor = 10
		}

		search_filters = { FOCUS_FILTER_STABILITY }
		completion_reward = {
			add_political_power = 75
			add_stability = 0.10
			add_popularity = {
				ideology = communism
				popularity = 0.1
			}
			137 = { custom_effect_tooltip = crm_water_coming_increase_sm_tt }
			986 = { custom_effect_tooltip = crm_water_coming_increase_sm_tt }
			add_to_variable = { global.north_crimea_water_coming = 50 }
			add_to_variable = { global.south_crimea_water_coming = 50 }
		}
	}

	focus = {
		id = CRI_secularization
		icon = GFX_focus_por_workers_of_iberia
		prerequisite = { focus = CRI_collectivisation }
		x = 0
		y = 1
		relative_position_id = CRI_collectivisation

		cost = 10

		available_if_capitulated = no

		available = {
			has_government = communism
		}

		ai_will_do = {
			factor = 10
		}

		search_filters = { FOCUS_FILTER_RESEARCH }
		completion_reward = {
			add_stability = -0.05
			add_war_support = -0.05
			add_ideas = CRI_secularization_idea
		}
	}

	focus = {
		id = CRI_international_support
		icon = GFX_focus_generic_manpower
		prerequisite = { focus = CRI_secularization }
		x = 0
		y = 1
		relative_position_id = CRI_secularization

		cost = 10

		available_if_capitulated = no

		available = {
			has_government = communism
		}

		ai_will_do = {
			factor = 10
		}

		search_filters = { FOCUS_FILTER_MANPOWER }
		completion_reward = {
			if = {
				limit = {
					has_dlc = "No Step Back"
				}
				add_manpower = 2000
			}
			else = {
				add_manpower = 5000 #dont have Political loyality traditions for compensation 
			}
			add_doctrine_cost_reduction = {
				name = CRI_international_support
				cost_reduction = 0.5
				uses = 1
				category = land_doctrine
			}
			custom_effect_tooltip = available_chief_of_army
			show_ideas_tooltip = CRI_vladimir_kolpakchi
		}
	}

	focus = {
		id = CRI_join_to_comintern
		icon = GFX_focus_generic_join_comintern
		prerequisite = { focus = CRI_international_support }
		x = 0
		y = 1
		relative_position_id = CRI_international_support

		cost = 10

		available_if_capitulated = no

		available = {
			has_government = communism
		}
	
		ai_will_do = {
			factor = 10
		}

		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			add_political_power = 100
			if = {
				limit = {
					is_subject = no
					NOT = { is_in_faction_with = SOV }
					any_other_country = {
						original_tag = SOV
						has_government = communism
						NOT = { has_war_with = ROOT }
					}
				}
				random_other_country = {
					limit = {
						original_tag = SOV
						has_government = communism
						NOT = { has_war_with = ROOT }
					}
					country_event = qirimlar.24
				}
			}
			if = {
				limit = {
					is_subject = yes
					OVERLORD = { has_government = communism }
				}
				add_autonomy_score = {
					value = 150
				}
			}
			if = {
				limit = {
					is_subject = yes
					NOT = { is_in_faction_with = SOV }
					any_other_country = {
						original_tag = SOV
						has_government = communism
						NOT = { has_war_with = ROOT }
					}
					OVERLORD = { NOT = { has_government = communism } }
				}
				random_other_country = {
					limit = {
						original_tag = SOV
						has_government = communism
						NOT = { has_war_with = ROOT }
					}
					country_event = qirimlar.27
				}
			}
		}
	}

	focus = {
		id = CRI_soviet_academy_of_science
		icon = GFX_focus_generic_socialist_science
		prerequisite = { focus = CRI_join_to_comintern }
		x = 0
		y = 1
		relative_position_id = CRI_join_to_comintern

		cost = 10

		available = {
			any_other_country = {
				original_tag = SOV
				has_government = communism
				OR = {
					has_subject = ROOT
					is_in_faction_with = ROOT
				}
			}
		}

		available_if_capitulated = yes

		ai_will_do = {
			factor = 10
		}

		search_filters = { FOCUS_FILTER_RESEARCH }
		completion_reward = {
			add_research_slot = 1
		}
	}

	focus = {
		id = CRI_expansion_of_the_republic
		icon = GFX_goal_generic_more_territorial_claims
		prerequisite = { focus = CRI_soviet_academy_of_science }
		x = 0
		y = 1
		relative_position_id = CRI_soviet_academy_of_science

		cost = 10

		available = {
			any_other_country = {
				original_tag = SOV
				has_government = communism
				OR = {
					has_subject = ROOT
					is_in_faction_with = ROOT
				}
			}
		}

		available_if_capitulated = no

		ai_will_do = {
			factor = 10
		}

		search_filters = { FOCUS_FILTER_ANNEXATION }
		completion_reward = {
			add_state_claim = 196
			if = {
				limit = {
					196 = {
						controller = {
							NOT = { is_in_faction_with = ROOT }
							NOT = { is_subject_of = ROOT }
							NOT = { has_war_with = ROOT }
							NOT = { original_tag = SOV }
							NOT = { original_tag = CRI }
						}
					}
				}
				random_other_country = {
					limit = {
						original_tag = SOV
						has_government = communism
						NOT = { has_war_with = ROOT }
					}
					country_event =  qirimlar.31
				}
			}
			else_if = {	
				limit = {
					SOV = { is_faction_leader = yes }
					196 = {
						controller = {
							is_in_faction_with = ROOT
							NOT = { original_tag = SOV }
							NOT = { original_tag = CRI }
						}
					}
				}
				random_other_country = {
					limit = {
						original_tag = SOV
						has_government = communism
						NOT = { has_war_with = ROOT }
					}
					country_event =  qirimlar.38
				}
			}
			else_if = {
				limit = {
					196 = {
						is_controlled_by = SOV
					}
				}
				random_other_country = {
					limit = {
						original_tag = SOV
						has_government = communism
						NOT = { has_war_with = ROOT }
					}
					country_event =  qirimlar.36
				}
			}
			else = {
				add_war_support = 0.05
			}
		}
	}

	focus = {
		id = CRI_mejlis_of_traditionalists
		icon = GFX_focus_TUR_loosen_the_laws_on_secularism
		prerequisite = { focus = CRI_change_government }
		mutually_exclusive = { focus = CRI_mejlis_of_nationalists focus = CRI_red_mejlis }
		x = 0
		y = 1
		relative_position_id = CRI_change_government

		cost = 0

		available_if_capitulated = no

		available = {
			always = no
		}

		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			set_politics = {
				ruling_party = neutrality
				elections_allowed = no
			}
			remove_ideas = CRI_russians_debuff_basic
			add_timed_idea = {
				idea = CRI_russians_debuff_escalation
				days = 730
			}
			hidden_effect = {
				set_popularities = {
					fascism = 15
					democratic = 20
					neutrality = 51
					communism = 14
				}
			}
		}
	}

	focus = {
		id = CRI_education_in_madrasas
		icon = GFX_focus_CRI_education_in_madrasas
		prerequisite = { focus = CRI_mejlis_of_traditionalists }
		x = -1
		y = 1
		relative_position_id = CRI_mejlis_of_traditionalists

		cost = 10

		available_if_capitulated = no

		available = {
			has_government = neutrality
		}

		ai_will_do = {
			factor = 10
		}

		search_filters = { FOCUS_FILTER_STABILITY }
		completion_reward = {
			add_ideas = CRI_religious_education
		}
	}

	focus = {
		id = CRI_recreate_muftiate
		icon = GFX_focus_TUR_turanist_ambition
		prerequisite = { focus = CRI_mejlis_of_traditionalists }
		x = 1
		y = 1
		relative_position_id = CRI_mejlis_of_traditionalists

		cost = 10

		available_if_capitulated = no

		available = {
			has_government = neutrality
		}

		ai_will_do = {
			factor = 10
		}

		search_filters = { FOCUS_FILTER_STABILITY }
		completion_reward = {
			add_country_leader_trait = mufti_of_crimea
			#add_political_power = 100
			custom_effect_tooltip = UKR_additional_decisions
		}
	}

	focus = {
		id = CRI_house_of_giray
		icon = GFX_focus_CRI_giray_coat
		prerequisite = { focus = CRI_recreate_muftiate }
		prerequisite = { focus = CRI_education_in_madrasas }
		x = 1
		y = 1
		relative_position_id = CRI_education_in_madrasas

		cost = 10

		available_if_capitulated = no

		available = {
			has_government = neutrality
		}

		ai_will_do = {
			factor = 10
		}

		search_filters = { FOCUS_FILTER_WAR_SUPPORT }
		completion_reward = {
			country_event = qirimlar.7
			if = {
				limit = {
					has_any_power_balance = no
				}
				set_power_balance = {
					id = CRI_power_balance
					left_side = CRI_mufti_side	
					right_side = CRI_khan_side	
					set_default = no
					set_value = -0.50
				}
			}
			effect_tooltip = {
				add_ideas = CRI_sultan_kadir_giray
				if = {
					limit = {
						is_subject = yes
					}
					add_autonomy_score = {
						value = 150
					}
				}
			}
		}
	}

	focus = {
		id = CRI_khan_cavalry
		icon = GFX_focus_CRI_house_of_giray
		prerequisite = { focus = CRI_house_of_giray }
		x = 0
		y = 1
		relative_position_id = CRI_house_of_giray

		cost = 10

		available_if_capitulated = no

		ai_will_do = {
			factor = 10
		}

		search_filters = { FOCUS_FILTER_MANPOWER }
		completion_reward = {
			add_ideas = CRI_khan_guards
			add_power_balance_value = {
				id = CRI_power_balance
				value = 0.05
			}
			137 = { custom_effect_tooltip = crm_water_flow_increase_sm_tt }
			add_to_variable = { global.south_crimea_water_flow = 50 }
		}
	}

	focus = {
		id = CRI_mejlis_of_nationalists
		icon = GFX_focus_generic_military_dictatorship
		prerequisite = { focus = CRI_change_government }
		mutually_exclusive = { focus = CRI_mejlis_of_traditionalists focus = CRI_red_mejlis }
		x = 4
		y = 1
		relative_position_id = CRI_change_government

		cost = 0

		available_if_capitulated = no

		available = {
			always = no
		}

		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			set_politics = {
				ruling_party = fascism
				elections_allowed = no
			}
			remove_ideas = CRI_russians_debuff_basic
			add_timed_idea = {
				idea = CRI_russians_debuff_escalation
				days = 730
			}
			hidden_effect = {
				set_popularities = {
					fascism = 51
					democratic = 20
					neutrality = 15
					communism = 14
				}
			}
		}
	}

	focus = {
		id = CRI_fair_land_distribution
		icon = GFX_focus_generic_concessions
		prerequisite = { focus = CRI_mejlis_of_nationalists }
		x = 0
		y = 1
		relative_position_id = CRI_mejlis_of_nationalists

		cost = 10

		available = {
			has_government = fascism
		}

		available_if_capitulated = no

		ai_will_do = {
			factor = 10
		}

		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			add_stability = 0.10
			add_popularity = {
				ideology = fascism
				popularity = 0.1
			}
			986 = { custom_effect_tooltip = crm_water_flow_increase_sm_tt }
			add_to_variable = { global.north_crimea_water_flow = 50 }
		}
	}

	focus = {
		id = CRI_house_for_turks
		icon = GFX_focus_UKR_invite_crimea
		prerequisite = { focus = CRI_fair_land_distribution focus = CRI_recreate_muftiate }
		x = 1
		y = 1
		relative_position_id = CRI_recreate_muftiate

		cost = 10

		available = {
			OR = {
				has_government = fascism
				has_government = neutrality
			}
		}

		available_if_capitulated = no

		ai_will_do = {
			factor = 20
		}

		search_filters = { FOCUS_FILTER_MANPOWER }
		completion_reward = {
			add_timed_idea = {
				idea = CRI_homecoming
				days = 730
			}
		}
	}

	focus = {
		id = CRI_confiscation
		icon = GFX_goal_generic_political_pressure
		prerequisite = { focus = CRI_house_for_turks }
		x = 0
		y = 1
		relative_position_id = CRI_house_for_turks

		cost = 10

		available = {
			OR = {
				has_government = fascism
				has_government = neutrality
			}
		}

		available_if_capitulated = no

		ai_will_do = {
			factor = 10
		}

		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			add_stability = -0.05
			if = {
				limit = {
					986 = { is_owned_and_controlled_by = ROOT }
				}
				986 = { add_extra_state_shared_building_slots = 1 }
			}
			if = {
				limit = {
					137 = { 
						is_owned_and_controlled_by = ROOT 
						free_building_slots = {
							building = industrial_complex
							size > 0
							include_locked = yes
						}
					}
				}
				137 = { 
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = industrial_complex
						level = 1
						instant_build = yes
					}
				}
			}
		}
	}

	focus = {
		id = CRI_pan_turkic_congress
		icon = GFX_focus_CRI_pan_turkic_congress
		prerequisite = { focus = CRI_fair_land_distribution }
		x = 0
		y = 1
		relative_position_id = CRI_fair_land_distribution

		cost = 10

		available = {
			has_government = fascism
		}

		available_if_capitulated = no

		ai_will_do = {
			factor = 10
		}

		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_WAR_SUPPORT }
		completion_reward = {
			
			add_political_power = 100
			add_war_support = 0.05
			add_country_leader_trait = fuhrer_of_crimea
			if = {
				limit = {
					is_subject = yes
				}
				add_autonomy_score = {
					value = 150
				}
			}
			custom_effect_tooltip = UKR_additional_decisions
		}
	}

	focus = {
		id = CRI_young_tatars
		icon = GFX_goal_generic_wolf_pack
		prerequisite = { focus = CRI_pan_turkic_congress }
		x = 0
		y = 1
		relative_position_id = CRI_pan_turkic_congress

		cost = 10

		available = {
			has_government = fascism
		}

		available_if_capitulated = no

		ai_will_do = {
			factor = 10
		}

		search_filters = { FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_MANPOWER }
		completion_reward = {
			add_war_support = 0.05
			add_ideas = CRI_young_tatars_squads
		}
	}

	focus = {
		id = CRI_keep_government
		icon = GFX_goal_support_democracy
		prerequisite = { focus = CRI_second_kurultai }
		mutually_exclusive = { focus = CRI_change_government }
		x = 4
		y = 1
		relative_position_id = CRI_second_kurultai

		cost = 5

		available_if_capitulated = no

		ai_will_do = {
			factor = 10
			modifier = {
				factor = 2
				is_subject_of = UKR
				UKR = { has_completed_focus = UKR_democratic_reforms }
			}
		}

		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			add_political_power = 50
			add_popularity = {
				ideology = democratic
				popularity = 0.2
			}
			if = {
				limit = { has_idea = CRI_russians_debuff_basic }
				swap_ideas = {
	    			add_idea = CRI_russians_debuff_renew
	    			remove_idea = CRI_russians_debuff_basic
				}
			}
			if = {
				limit = {
					NOT = { has_government = democratic }
				}
				set_politics = {
					ruling_party = democratic
					last_election = "1936.1.1"
					election_frequency = 48
					elections_allowed = yes
				}
			}
		}
	}

	focus = {
		id = CRI_invite_russians_in_government
		icon = GFX_focus_POL_complete_april_constitution
		prerequisite = { focus = CRI_keep_government }
		x = 0
		y = 2
		relative_position_id = CRI_keep_government

		cost = 10

		available_if_capitulated = yes

		ai_will_do = {
			factor = 10
		}

		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			if = {
				limit = { has_idea = CRI_russians_debuff_renew }
				swap_ideas = {
	    			add_idea = CRI_russians_debuff_intermediate
	    			remove_idea = CRI_russians_debuff_renew
				}
			}
			hidden_effect = {
				CRM = {
					if = {
						limit = { has_character = CRM_alexandr_bart }
						CRM_alexandr_bart = { set_nationality = ROOT }
					}
					if = {
						limit = { has_character = CRM_pyotr_struve }
						CRM_pyotr_struve = { set_nationality = ROOT }
					}
				}
			}
			custom_effect_tooltip = CRI_invite_russians_in_government_tt
		}
	}

	focus = {
		id = CRI_new_constitution
		icon = GFX_focus_generic_treaty
		prerequisite = { focus = CRI_invite_russians_in_government }
		x = -1
		y = 1
		relative_position_id = CRI_invite_russians_in_government

		cost = 10

		available_if_capitulated = yes

		ai_will_do = {
			factor = 10
		}

		search_filters = { FOCUS_FILTER_STABILITY }
		completion_reward = {
			add_stability = 0.05
			if = {
				limit = {
					is_subject = yes
				}
				add_autonomy_score = {
					value = 150
				}
			}
			custom_effect_tooltip = available_political_advisor
			show_ideas_tooltip = CRI_samuil_hojash
		}
	}
	focus = {
		id = CRI_control_for_media
		icon = GFX_goal_generic_propaganda
		prerequisite = { focus = CRI_invite_russians_in_government }
		x = 1
		y = 1
		relative_position_id = CRI_invite_russians_in_government

		cost = 10

		available_if_capitulated = yes

		ai_will_do = {
			factor = 10
		}

		search_filters = { FOCUS_FILTER_WAR_SUPPORT }
		completion_reward = {
			add_war_support = 0.05
			if = {
				limit = { has_idea = CRI_russians_debuff_intermediate }
				remove_ideas = CRI_russians_debuff_intermediate
				add_timed_idea = {
					idea = CRI_russians_debuff_final
					days = 1825
				}
			}
		}
	}

	focus = {
		id = CRI_hire_russian_advisors
		icon = GFX_focus_generic_military_mission
		prerequisite = { focus = CRI_new_constitution }
		x = -1
		y = 1
		relative_position_id = CRI_new_constitution

		cost = 10

		available_if_capitulated = yes

		bypass = {
			CRM = { exists = yes }
		}

		ai_will_do = {
			factor = 10
		}

		completion_reward = {
			army_experience = 15
			air_experience = 15
			navy_experience = 15
			hidden_effect = {
				CRM = {
					if = {
						limit = { has_character = CRM_pavel_shatilov }
						CRM_pavel_shatilov = { set_nationality = ROOT }
					}
					if = {
						limit = { has_character = CRM_michael_berens }
						CRM_michael_berens = { set_nationality = ROOT }
					}
					if = {
						limit = { has_character = CRM_leonid_zelenin }
						CRM_leonid_zelenin = { set_nationality = ROOT }
					}
					if = {
						limit = { has_character = CRM_Petr_Pisarev }
						CRM_Petr_Pisarev = { set_nationality = ROOT }
					}
				}
			}
			custom_effect_tooltip = CRI_invite_russians_advisors_tt
		}
	}

	focus = {
		id = CRI_form_national_guard
		icon = GFX_focus_generic_little_entente
		prerequisite = { focus = CRI_control_for_media }
		prerequisite = { focus = CRI_new_constitution }
		x = -1
		y = 1
		relative_position_id = CRI_control_for_media

		cost = 10

		available_if_capitulated = yes

		available = {
			137 = { is_owned_and_controlled_by = ROOT }
			986 = { is_owned_and_controlled_by = ROOT }
			has_completed_focus = CRI_self_defence_squads
		}

		ai_will_do = {
			factor = 10
		}

		search_filters = { FOCUS_FILTER_MANPOWER }
		completion_reward = {
			add_stability = 0.05
			division_template = {
				name = "Krimskaya gvardia"
				regiments = {
					infantry = { x = 0	y = 0 }
					infantry = { x = 0	y = 1 }
					infantry = { x = 1	y = 0 }
					infantry = { x = 1	y = 1 }
				}
				support = {
					recon = { x = 0 y = 0 }     
				}
			}
			986 = {
				create_unit = {
					division = "name = \"1ya druzhina\" division_template = \"Krimskaya gvardia\" start_experience_factor = 0.3 start_equipment_factor = 0.75"
					owner = ROOT
					prioritize_location = 705
				}
			}
			137 = {	
				create_unit = {
					division = "name = \"2ya druzhina\" division_template = \"Krimskaya gvardia\" start_experience_factor = 0.3 start_equipment_factor = 0.75"
					owner = ROOT
					prioritize_location = 3686
				}
			}
		}
	}

	focus = {
		id = CRI_jadid_education
		icon = GFX_focus_generic_military_academy
		prerequisite = { focus = CRI_keep_government focus = CRI_mejlis_of_nationalists }
		x = 2
		y = 1
		relative_position_id = CRI_mejlis_of_nationalists

		cost = 10

		available_if_capitulated = no

		ai_will_do = {
			factor = 5
		}

		search_filters = { FOCUS_FILTER_RESEARCH }
		completion_reward = {
			add_ideas = CRI_jadids_idea
		}
	}

	focus = {
		id = CRI_third_kurultai
		icon = GFX_focus_CRI_third_kurultai
		prerequisite = { focus = CRI_khan_cavalry focus = CRI_young_tatars focus = CRI_form_national_guard }
		x = 0
		y = 1
		relative_position_id = CRI_young_tatars

		cost = 10

		available_if_capitulated = no

		available = {
			has_country_flag = CRI_two_years_after_second_kurultai
		}
		
		ai_will_do = {
			factor = 10
		}

		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			add_political_power = 100
			if = {
				limit = { is_subject = no }
				country_event = qirimlar.41
			}
			hidden_effect = {
				country_event = { id = qirimlar.9 days = 730 }
			}
		}
	}

	focus = {
		id = CRI_proturkish_course
		icon = GFX_focus_generic_befriend_turkey
		prerequisite = { focus = CRI_third_kurultai }
		mutually_exclusive = { focus = CRI_proukrainian_course focus = CRI_revive_crimean_glory }
		x = -1
		y = 1
		relative_position_id = CRI_third_kurultai

		cost = 10
		offset = {
			x = -2
			y = 0
			trigger = {
				has_country_flag = CRI_secret_patch_is_allowed
			}
		}

		available_if_capitulated = yes

		available = {
			country_exists = TUR
			NOT = { has_war_with = TUR }
		}
		
		ai_will_do = {
			factor = 10
			modifier = {
				factor = 2
				has_government = neutrality
				TUR = { has_completed_focus = TUR_return_of_the_sultan }
			}
			modifier = {
				factor = 2
				has_government = fascism
				TUR = { NOT = { has_government = communism } }
			}
			modifier = {
				factor = 0.5
				has_government = democratic
				TUR = { NOT = { has_government = democratic  } }
			}
			modifier = {
				add = -5
				has_country_flag = CRI_ukrainian_retention_1
			}
			modifier = {
				add = -5
				has_country_flag = CRI_ukrainian_retention_2
			}
			modifier = {
				add = -5
				has_country_flag = CRI_ukrainian_retention_3
			}
			modifier = {
				add = -5
				has_country_flag = CRI_ukrainian_retention_4
			}
		}

		select_effect = { 
			UKR = { clr_country_flag = UKR_influence_on_crimean_political_choice }
		}

		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			TUR = { add_opinion_modifier = { target = ROOT modifier = TUR_valued_strategic_partners } }
			custom_effect_tooltip = available_political_advisor
			show_ideas_tooltip = CRI_jemil_abdureshidov
			if = {
				limit = {
					NOT = { is_subject_of = TUR }
				}
				TUR = {
					add_ai_strategy = {
						type = send_volunteers_desire
						id = CRI
						value = 200
					}
					add_ai_strategy = {
						type = support
						id = CRI
						value = 200
					}
				}
			}
		}
	}

	focus = {
		id = CRI_new_muslim_university
		icon = GFX_goal_generic_scientific_exchange
		prerequisite = { focus = CRI_proturkish_course }
		x = 0
		y = 1
		relative_position_id = CRI_proturkish_course

		cost = 10

		available_if_capitulated = yes

		available = {
			country_exists = TUR
			NOT = { has_war_with = TUR }
		}
		
		ai_will_do = {
			factor = 10
		}

		search_filters = { FOCUS_FILTER_RESEARCH }
		completion_reward = {
			add_research_slot = 1
		}
	}

	focus = {
		id = CRI_trade_with_turkey
		icon = GFX_focus_SOV_reinforce_southern_naval_bases
		prerequisite = { focus = CRI_new_muslim_university }
		x = 0
		y = 1
		relative_position_id = CRI_new_muslim_university

		cost = 10

		available_if_capitulated = yes

		available = {
			country_exists = TUR
			NOT = { has_war_with = TUR }
		}
		
		ai_will_do = {
			factor = 10
		}

		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			TUR = { add_ideas = CRI_black_sea_trade }
			add_offsite_building = { type = industrial_complex level = 2 }
			add_equipment_to_stockpile = {
			    type = convoy
			    amount = 10
			    producer = TUR
			}
		}
	}

	focus = {
		id = CRI_turkish_protectorate
		icon = GFX_focus_TUR_misak_i_milli
		prerequisite = { focus = CRI_new_muslim_university }
		x = -2
		y = 1
		relative_position_id = CRI_new_muslim_university

		cost = 10

		available_if_capitulated = no

		available = {
			has_army_manpower = { size > 24999 }
			NOT = { is_subject_of = TUR }
			NOT = { is_in_faction_with = TUR }
			NOT = { has_war_with = TUR }
			TUR = { is_puppet = no }
			country_exists = TUR
		}
		
		ai_will_do = {
			factor = 10
		}

		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			if = {
				limit = { is_subject = no }
				TUR = { country_event = { id = qirimlar.15 days = 1 } }
			}
			if = {
				limit = {
					is_subject = yes
					OVERLORD = { NOT = { has_war_with = TUR } }
				}
				OVERLORD = { country_event = { id = qirimlar.18 days = 1 } }
			}
		}
	}

	focus = {
		id = CRI_proukrainian_course
		icon = GFX_focus_UKR_befriend_ukraine
		prerequisite = { focus = CRI_third_kurultai }
		mutually_exclusive = { focus = CRI_proturkish_course focus = CRI_revive_crimean_glory }
		x = 1
		y = 1
		relative_position_id = CRI_third_kurultai

		cost = 10
		offset = {
			x = 2
			y = 0
			trigger = {
				has_country_flag = CRI_secret_patch_is_allowed
			}
		}

		available_if_capitulated = yes

		available = {
			OR = {
				AND = {
					country_exists = UKR
					NOT = { country_exists = DKR }
					NOT = { has_war_with = UKR }
				}
				AND = {
					country_exists = DKR
					NOT = { has_war_with = DKR }
					DKR = { has_government = neutrality }
				}	
			}
		}
		
		ai_will_do = {
			factor = 10
			modifier = {
				factor = 2
				has_government = neutrality
				TUR = { NOT = { has_completed_focus = TUR_loosen_the_laws_on_secularism } }
			}
			modifier = {
				factor = 2
				has_government = neutrality
				TUR = { NOT = { has_completed_focus = TUR_return_of_the_sultan } }
			}
		}

		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			if = {
				limit = {
					DKR = {
						exists = yes
						has_government = neutrality
					}
				}
				DKR = { add_opinion_modifier = { target = ROOT modifier = TUR_valued_strategic_partners } }
			}
			else = {
				UKR = { add_opinion_modifier = { target = ROOT modifier = TUR_valued_strategic_partners } }
			}
			custom_effect_tooltip = available_political_advisor
			show_ideas_tooltip = CRI_yakim_khristich
			custom_effect_tooltip = available_chief_of_navy
			show_ideas_tooltip = CRI_grigoryi_butakov
			if = {
				limit = {
					NOT = { is_subject_of = UKR }
				}
				UKR = {
					add_ai_strategy = {
						type = send_volunteers_desire
						id = CRI
						value = 200
					}
					add_ai_strategy = {
						type = support
						id = CRI
						value = 200
					}
				}
			}
			else = {
				hidden_effect = {
					country_event = { id = qirimlar.52 days = 30 random_days = 15 }
				}
			}
		}
	}

	focus = {
		id = CRI_scientific_connections
		icon = GFX_goal_tfv_generic_tech_sharing
		prerequisite = { focus = CRI_proukrainian_course }
		x = 0
		y = 1
		relative_position_id = CRI_proukrainian_course

		cost = 10

		available_if_capitulated = yes

		available = {
			OR = {
				AND = {
					country_exists = UKR
					NOT = { country_exists = DKR }
					NOT = { has_war_with = UKR }
				}
				AND = {
					country_exists = DKR
					NOT = { has_war_with = DKR }
					DKR = { has_government = neutrality }
				}	
			}
		}
		
		ai_will_do = {
			factor = 10
		}

		search_filters = { FOCUS_FILTER_RESEARCH }
		completion_reward = {
			if = {
				limit = { 
					DKR = {
						exists = yes
						has_government = neutrality
					}
				}
				add_to_tech_sharing_group = UKR_crimean_research_group
				DKR = { add_to_tech_sharing_group = UKR_crimean_research_group }
			}
			else = {
				add_to_tech_sharing_group = UKR_crimean_research_group
				UKR = { add_to_tech_sharing_group = UKR_crimean_research_group }
			}
		}
	}

	focus = {
		id = CRI_dnieper_water
		icon = GFX_focus_hol_prepare_the_inundation_lines
		prerequisite = { focus = CRI_scientific_connections }
		x = 0
		y = 1
		relative_position_id = CRI_scientific_connections

		cost = 10

		available_if_capitulated = yes

		available = {
			NOT = { has_country_flag = CRI_north_crimean_canal_is_built }
			NOT = { has_decision = CRI_build_north_crimean_canal }
			196 = {
				OR = {
					is_owned_and_controlled_by = UKR
					is_owned_and_controlled_by = DKR
				}
			}
			986 = { is_owned_and_controlled_by = CRI }
			OR = {
				AND = {
					country_exists = UKR
					NOT = { country_exists = DKR }
					NOT = { has_war_with = UKR }
				}
				AND = {
					country_exists = DKR
					NOT = { has_war_with = DKR }
					DKR = { has_government = neutrality }
				}	
			}
		}
		
		ai_will_do = {
			factor = 10
		}

		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			activate_decision = CRI_build_north_crimean_canal
		}
	}

	focus = {
		id = CRI_connection_through_all_times
		icon = GFX_focus_UKR_ukrainian_deal
		prerequisite = { focus = CRI_scientific_connections }
		x = 2
		y = 1
		relative_position_id = CRI_scientific_connections

		cost = 10

		available_if_capitulated = yes

		available = {
			NOT = { is_subject_of = UKR }
			NOT = { is_subject_of = DKR }
			NOT = { is_in_faction_with = UKR }
			NOT = { has_war_with = UKR }
			UKR = { is_puppet = no }
			OR = {
				AND = {
					country_exists = UKR
					UKR = { is_puppet = no }
				}
				AND = {
					is_subject = yes
					country_exists = DKR
					DKR = { 
						has_government = neutrality
						is_puppet = no 
						NOT = { has_war_with = ROOT }
					}
				}
			}
		}
		
		ai_will_do = {
			factor = 10
		}

		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			if = {
				limit = { 
					is_subject = no 
					UKR = {	is_faction_leader = yes	}
				}
				UKR = { country_event = { id = generic.2 days = 1 } } #generic join to ukrainian alliance
			}
			else_if = {
				limit = { 
					is_subject = no 
					UKR = {	is_faction_leader = no }
					country_exists = UKR
				}
				UKR = { country_event = { id = qirimlar.43 days = 1 } } #befriend and guaranties from Ukraine
			}
			else_if = {
				limit = {
					is_subject = yes
					country_exists = UKR
				}
				UKR = { country_event = { id = qirimlar.46 days = 1 } } #Ukraine support independent of Crimea and give guaranties
			}
			if = {
				limit = {
					is_subject = yes
					NOT = { country_exists = UKR }
					country_exists = DKR
					DKR = { 
						has_government = neutrality
						is_puppet = no 
						NOT = { has_war_with = ROOT }
					}
				}
				DKR = { country_event = { id = qirimlar.46 days = 1 } } #Anarchists support independent of Crimea and give guaranties
			}
		}
	}

	focus = {
		id = CRI_revive_crimean_glory
		icon = GFX_focus_UKR_defense_crimea
		prerequisite = { focus = CRI_third_kurultai }
		mutually_exclusive = { focus = CRI_proturkish_course focus = CRI_proukrainian_course }
		x = 0
		y = 1
		relative_position_id = CRI_third_kurultai

		cost = 10

		allow_branch = {
			has_country_flag = CRI_secret_patch_is_allowed
		}

		available_if_capitulated = no

		available = {
			is_subject = no
		}
		
		ai_will_do = {
			factor = 30
		}

		select_effect = { 
			UKR = { clr_country_flag = UKR_influence_on_crimean_political_choice }
		}

		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			add_ideas = CRI_revive_crimean_glory_idea
			add_state_claim = 196
			add_state_claim = 197
			add_state_claim = 192
			add_state_claim = 200
			add_state_claim = 227
			add_state_claim = 218
			add_state_claim = 234
			add_state_claim = 233
			add_state_claim = 985
			add_state_claim = 238
			set_variable = { CRI_numb_of_integration = 0 }
			custom_effect_tooltip = UKR_additional_decisions
		}
	}

	focus = {
		id = CRI_prepare_army
		icon = GFX_focus_generic_manpower
		prerequisite = { focus = CRI_revive_crimean_glory }
		x = 0
		y = 1
		relative_position_id = CRI_revive_crimean_glory

		cost = 10

		available_if_capitulated = no
		
		ai_will_do = {
			factor = 10
		}

		search_filters = { FOCUS_FILTER_MANPOWER }
		completion_reward = {
			add_ideas = CRI_prepare_army_idea
			add_doctrine_cost_reduction = {
				name = CRI_prepare_army
				cost_reduction = 0.5
				uses = 1
				category = land_doctrine
			}
		}
	}

	focus = {
		id = CRI_new_university
		icon = GFX_focus_research2
		prerequisite = { focus = CRI_prepare_army }
		x = 0
		y = 1
		relative_position_id = CRI_prepare_army

		cost = 10

		available_if_capitulated = no
		
		ai_will_do = {
			factor = 10
		}

		search_filters = { FOCUS_FILTER_RESEARCH }
		completion_reward = {
			add_research_slot = 1
		}
	}

	focus = {
		id = CRI_conquer_north_black_sea
		icon = GFX_goal_generic_major_war
		prerequisite = { focus = CRI_new_university }
		x = -1
		y = 1
		relative_position_id = CRI_new_university

		cost = 10

		available_if_capitulated = no

		available = {
			196 = {
				NOT = { is_controlled_by = CRI }
			}
		}
		
		ai_will_do = {
			factor = 10
		}

		search_filters = { FOCUS_FILTER_ANNEXATION }
		completion_reward = {
			196 = {
				controller = {
					ROOT = {
						create_wargoal = {
							type = take_state_focus
							target = PREV
							generator = { 196 }
						}
					}
				}
			}
			if = {
				limit = {
					196 = { is_owned_and_controlled_by = UKR }
					country_exists = POL
					NOT = { has_war_with = POL }
					UKR = { NOT = { has_war_with = POL } }
					POL = {
						is_puppet = no
						NOT = { is_in_faction_with = CRI }
						NOT = { is_in_faction_with = UKR }
					}
				}
				POL = { country_event = { id = qirimlar.60 days = 1 } }
			}
		}
	}

	focus = {
		id = CRI_conquer_kuban
		icon = GFX_goal_generic_occupy_states_ongoing_war
		prerequisite = { focus = CRI_new_university }
		x = 1
		y = 1
		relative_position_id = CRI_new_university

		cost = 10

		available_if_capitulated = no

		available = {
			234 = {
				NOT = { is_controlled_by = CRI }
			}
		}
		
		ai_will_do = {
			factor = 10
		}

		search_filters = { FOCUS_FILTER_ANNEXATION }
		completion_reward = {
			234 = {
				controller = {
					ROOT = {
						create_wargoal = {
							type = take_state_focus
							target = PREV
							generator = { 234 }
						}
					}
				}
			}
			if = {
				limit = {
					234 = { is_owned_and_controlled_by = SOV }
					country_exists = TUR
					NOT = { has_war_with = TUR }
					SOV = { NOT = { has_war_with = TUR } }
					TUR = {
						is_puppet = no
						NOT = { is_in_faction_with = CRI }
						NOT = { is_in_faction_with = SOV }
					}
				}
				TUR = { country_event = { id = qirimlar.53 days = 1 } }
			}
		}
	}

	focus = {
		id = CRI_fourth_kurultai
		icon = GFX_focus_CRI_fourth_kurultai
		x = 0
		y = 5
		relative_position_id = CRI_third_kurultai

		cost = 10

		available_if_capitulated = no

		available = {
			is_puppet = no
			OR = {
				has_country_flag = CRI_two_years_after_third_kurultai
				AND = {
					has_completed_focus = CRI_join_to_comintern
					date > 1940.7.1
				}
			}
			
		}
		
		ai_will_do = {
			factor = 10
		}

		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			add_political_power = 100
		}
	}

	focus = {
		id = CRI_advanced_army
		icon = GFX_goal_generic_army_tanks
		prerequisite = { focus = CRI_fourth_kurultai }
		x = 2
		y = 1
		relative_position_id = CRI_fourth_kurultai

		cost = 10

		available = {
			has_army_manpower = { size > 24999 }
		}

		available_if_capitulated = no

		ai_will_do = {
			factor = 10
		}

		search_filters = { FOCUS_FILTER_RESEARCH }
		completion_reward = {
			army_experience = 25
			add_doctrine_cost_reduction = {
				name = CRI_advanced_army
				cost_reduction = 0.5
				uses = 1
				category = land_doctrine
			}
			add_tech_bonus = {
				name = CRI_advanced_army
				bonus = 1.0
				uses = 1
				category = armor
			}
		}
	}

	focus = {
		id = CRI_might_of_air_and_sea
		icon = GFX_goal_generic_occupy_states_coastal
		prerequisite = { focus = CRI_advanced_army }
		x = 0
		y = 1
		relative_position_id = CRI_advanced_army

		cost = 10

		available_if_capitulated = no

		ai_will_do = {
			factor = 10
		}

		search_filters = { FOCUS_FILTER_RESEARCH }
		completion_reward = {
			air_experience = 25
			navy_experience = 25
			add_tech_bonus = {
				name = CRI_might_of_air_and_sea
				bonus = 1.0
				uses = 2
				category = air_equipment
				category = naval_equipment
			}
		}
	}

	focus = {
		id = CRI_new_economic_politic
		icon = GFX_goal_generic_production2
		prerequisite = { focus = CRI_fourth_kurultai }
		x = -2
		y = 1
		relative_position_id = CRI_fourth_kurultai

		cost = 10

		available_if_capitulated = no

		ai_will_do = {
			factor = 10
		}

		search_filters = { FOCUS_FILTER_RESEARCH }
		completion_reward = {
			add_tech_bonus = {
				name = CRI_new_economic_politic
				bonus = 1.0
				uses = 2
				category = industry
				category = electronics
			}
		}
	}

	focus = {
		id = CRI_advanced_industry
		icon = GFX_goal_generic_construct_civ_factory
		prerequisite = { focus = CRI_new_economic_politic }
		x = 0
		y = 1
		relative_position_id = CRI_new_economic_politic

		cost = 10

		available_if_capitulated = no

		ai_will_do = {
			factor = 10
		}

		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
					OR = {
						is_in_home_area = yes
						NOT = {
							owner = {
								any_owned_state = {
									free_building_slots = {
										building = industrial_complex
										size > 0
										include_locked = yes
									}
									is_in_home_area = yes
								}
							}
						}
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = arms_factory
						size > 0
						include_locked = yes
					}
					OR = {
						is_in_home_area = yes
						NOT = {
							owner = {
								any_owned_state = {
									free_building_slots = {
										building = arms_factory
										size > 0
									include_locked = yes
									}
									is_in_home_area = yes
								}
							}
						}
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
		}
	}

	focus = {
		id = CRI_access_to_straits
		icon = GFX_focus_TUR_the_montreux_convention
		prerequisite = { focus = CRI_fourth_kurultai }
		x = 0
		y = 1
		relative_position_id = CRI_fourth_kurultai

		cost = 10

		available_if_capitulated = no


		bypass = {
			OR = {
				is_in_faction_with = TUR
				is_subject_of = TUR
				has_war_with = TUR
				NOT = { 341 = { is_owned_and_controlled_by = TUR } }
				NOT = { 797 = { is_owned_and_controlled_by = TUR } }
			}
		}

		ai_will_do = {
			factor = 10
		}

		completion_reward = {
			TUR = { country_event = qirimlar.57 }
		}
	}

	focus = {
		id = CRI_justice_for_all
		icon = GFX_focus_generic_court
		prerequisite = { focus = CRI_access_to_straits }
		x = 0
		y = 1
		relative_position_id = CRI_access_to_straits

		cost = 10

		available_if_capitulated = no

		ai_will_do = {
			factor = 10
		}

		search_filters = { FOCUS_FILTER_MANPOWER FOCUS_FILTER_STABILITY }
		completion_reward = {
			add_ideas = CRI_justice_for_all_idea
		}
	}

	focus = {
		id = CRI_final_research_slot
		icon = GFX_focus_research2
		prerequisite = { focus = CRI_advanced_industry focus = CRI_might_of_air_and_sea focus = CRI_justice_for_all }
		x = 2
		y = 1
		relative_position_id = CRI_advanced_industry

		cost = 10

		available_if_capitulated = no

		available = {
			num_of_factories > 12
		}

		ai_will_do = {
			factor = 10
		}

		search_filters = { FOCUS_FILTER_RESEARCH }
		completion_reward = {
			add_research_slot = 1
		}
	}

	############################
	###  INDUSTRIAL SECTION  ###
	############################

	focus = {
		id = CRI_inventory_of_economic
		icon = GFX_goal_generic_consumer_goods
		x = 16
		y = 0

		cost = 10

		available = {
			has_completed_focus = CRI_second_kurultai
		}

		available_if_capitulated = yes

		ai_will_do = {
			factor = 10
		}

		search_filters = { FOCUS_FILTER_RESEARCH }
		completion_reward = {
			add_tech_bonus = {
				name = CRI_inventory_of_economic
				bonus = 0.75
				uses = 2
				category = industry
			}
		}
	}

	focus = {
		id = CRI_develop_own_industry
		icon = GFX_goal_generic_construction
		prerequisite = { focus = CRI_inventory_of_economic }
		mutually_exclusive = { focus = CRI_economic_integration }
		x = -2
		y = 1
		relative_position_id = CRI_inventory_of_economic

		cost = 10

		available_if_capitulated = yes

		ai_will_do = {
			factor = 10
		}

		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			add_ideas = CRI_develop_own_industry_idea
			if = {
				limit = {
					is_subject = yes
				}
				add_autonomy_score = {
					value = 150
				}
			}
		}
	}

	focus = {
		id = CRI_merge_plants
		icon = GFX_focus_SOV_merge_plants
		prerequisite = { focus = CRI_develop_own_industry }
		x = 0
		y = 1
		relative_position_id = CRI_develop_own_industry

		cost = 10

		available = {
			986 = { is_owned_and_controlled_by = ROOT }
		}

		bypass = {
			986 = {
				free_building_slots = {
					building = industrial_complex
					size < 1
					include_locked = yes
				}
			}
		}

		available_if_capitulated = yes

		ai_will_do = {
			factor = 10
		}

		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			986 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
				custom_effect_tooltip = crm_water_flow_increase_sm_tt
			}
			add_to_variable = { global.north_crimea_water_flow = 50 }
			custom_effect_tooltip = available_designer
			show_ideas_tooltip = crimmashstroi
		}
	}

	focus = {
		id = CRI_kerch_steel_plant
		icon = GFX_goal_generic_construct_mil_factory
		prerequisite = { focus = CRI_merge_plants }
		x = 0
		y = 1
		relative_position_id = CRI_merge_plants

		cost = 10

		available = {
			137 = { is_owned_and_controlled_by = ROOT }
		}

		bypass = {
			137 = {
				free_building_slots = {
					building = arms_factory
					size < 1
					include_locked = yes
				}
			}
		}

		available_if_capitulated = yes

		ai_will_do = {
			factor = 10
		}

		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			137 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
				add_resource = {
					type = steel
					amount = 8
				}
				custom_effect_tooltip = crm_water_flow_increase_sm_tt
			}
			add_to_variable = { global.south_crimea_water_flow = 50 }
		}
	}

	focus = {
		id = CRI_economic_integration
		icon = GFX_goal_generic_positive_trade_relations
		prerequisite = { focus = CRI_inventory_of_economic }
		mutually_exclusive = { focus = CRI_develop_own_industry }
		x = 2
		y = 1
		relative_position_id = CRI_inventory_of_economic

		cost = 10

		available_if_capitulated = yes

		available = {
			is_subject = yes
		}

		ai_will_do = {
			factor = 10
		}

		search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			add_tech_bonus = {
				name = CRI_economic_integration
				bonus = 1.0
				uses = 1
				category = industry
			}
			add_ideas = CRI_economic_integration_idea
			if = {
				limit = {
					is_subject = yes
				}
				add_autonomy_score = {
					value = -150
				}
			}
		}
	}

	focus = {
		id = CRI_agricultural_exports
		icon = GFX_focus_hol_abandon_the_gold_standard
		prerequisite = { focus = CRI_economic_integration }
		x = 0
		y = 1
		relative_position_id = CRI_economic_integration

		cost = 10

		available_if_capitulated = yes

		available = {
			is_subject = yes
		}

		ai_will_do = {
			factor = 10
		}

		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			add_offsite_building = { type = industrial_complex level = 2 }
			if = {
				limit = {
					is_subject = yes
				}
				add_autonomy_score = {
					value = -150
				}
			}
			137 = { custom_effect_tooltip = crm_water_flow_increase_sm_tt }
			986 = { custom_effect_tooltip = crm_water_flow_increase_sm_tt }
			add_to_variable = { global.north_crimea_water_flow = 50 }
			add_to_variable = { global.south_crimea_water_flow = 50 }
		}
	}

	focus = {
		id = CRI_increase_military_orders
		icon = GFX_goal_generic_army_artillery
		prerequisite = { focus = CRI_agricultural_exports }
		x = 0
		y = 1
		relative_position_id = CRI_agricultural_exports

		cost = 10

		available_if_capitulated = yes

		available = {
			is_subject = yes
		}

		ai_will_do = {
			factor = 10
		}

		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			add_offsite_building = { type = arms_factory level = 2 }
			if = {
				limit = {
					is_subject = yes
				}
				add_autonomy_score = {
					value = -200
				}
			}
			else = {
				add_political_power = -100
			}
			if = {
				limit = { 
					has_dlc = "Arms Against Tyranny" 
					is_subject = yes
				}
				add_equipment_subsidy = {
					cic = 1000
					equipment_type = infantry_equipment
					seller_tags = { OVERLORD }
				}
			}
		}
	}

	focus = {
		id = CRI_integrate_research
		icon = GFX_focus_research
		prerequisite = { focus = CRI_economic_integration focus = CRI_develop_own_industry }
		x = -2
		y = 1
		relative_position_id = CRI_economic_integration

		cost = 10

		available_if_capitulated = yes

		ai_will_do = {
			factor = 10
		}

		search_filters = { FOCUS_FILTER_RESEARCH }
		completion_reward = {
			add_research_slot = 1
		}
	}

	focus = {
		id = CRI_treaty_with_dockowners
		icon = GFX_goal_generic_construct_naval_dockyard
		prerequisite = { focus = CRI_integrate_research }
		x = 0
		y = 1
		relative_position_id = CRI_integrate_research

		cost = 10

		available_if_capitulated = yes

		ai_will_do = {
			factor = 10
		}

		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			remove_ideas = CRI_shipyards_without_control
			if = {
				limit = {
					num_of_naval_factories < 3 
					137 = {
						free_building_slots = {
							building = dockyard
							size > 2
							include_locked = yes
						}
					}
				}
				137 = {
					set_building_level = {
						type = dockyard
						level = 3
						instant_build = yes
					}
				}
			}
		}
	}

	focus = {
		id = CRI_new_investments
		icon = GFX_goal_generic_intelligence_exchange
		prerequisite = { focus = CRI_increase_military_orders focus = CRI_kerch_steel_plant }
		x = 2
		y = 1
		relative_position_id = CRI_kerch_steel_plant

		cost = 10

		available = {
			OR = {
				has_completed_focus = CRI_change_government
				has_completed_focus = CRI_keep_government
			}
		}

		available_if_capitulated = yes

		ai_will_do = {
			factor = 10
		}

		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			if = {
				limit = {
					NOT = { has_government = communism }
				}
				unlock_decision_category_tooltip = CRI_investmens
				if = {
					limit = {
						NOT = { has_idea = free_trade }
					}
					add_ideas = free_trade
				}
			}
			else = {
				random_owned_controlled_state = {
					limit = {
						free_building_slots = {
							building = industrial_complex
							size > 0
							include_locked = yes
						}
						OR = {
							is_in_home_area = yes
							NOT = {
								owner = {
									any_owned_state = {
										free_building_slots = {
											building = industrial_complex
											size > 0
											include_locked = yes
										}
										is_in_home_area = yes
									}
								}
							}
						}
					}
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = industrial_complex
						level = 1
						instant_build = yes
					}
				}
				random_owned_controlled_state = {
					limit = {
						free_building_slots = {
							building = arms_factory
							size > 0
							include_locked = yes
						}
						OR = {
							is_in_home_area = yes
							NOT = {
								owner = {
									any_owned_state = {
										free_building_slots = {
											building = arms_factory
											size > 0
											include_locked = yes
										}
										is_in_home_area = yes
									}
								}
							}
						}
					}
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes
					}
				}
				country_event = qirimlar.42
			}
		}
	}
		
    ############################
	###   MILITARY SECTION   ###
	############################
	focus = {
		id = CRI_self_defence_squads
		icon = GFX_focus_CRI_self_defence
		x = 21
		y = 0

		cost = 8

		available_if_capitulated = yes

		ai_will_do = {
			factor = 10
			modifier = {
				factor = 5
				has_war = yes
			}
		}

		search_filters = { FOCUS_FILTER_MANPOWER }
		completion_reward = {
			army_experience = 20
			add_command_power = 30
			if = {
				limit = { has_idea = CRI_no_army_organization }
				remove_ideas = CRI_no_army_organization
			}
			division_template = {
				name = "Krimskaya samooborona"
				regiments = {
					militia = { x = 0	y = 0 }
					militia = { x = 0	y = 1 }
					militia = { x = 0	y = 2 }
				}
			}
			if = { limit = { 986 = { is_owned_and_controlled_by = ROOT } } 
				986 = {
					create_unit = {
						division = "name = \"Qirim cenk taqimi I\" division_template = \"Krimskaya samooborona\" start_experience_factor = 0.2 start_equipment_factor = 0.5"
						owner = ROOT
						prioritize_location = 705
					}
					create_unit = {
						division = "name = \"Qirim cenk taqimi II\" division_template = \"Krimskaya samooborona\" start_experience_factor = 0.2 start_equipment_factor = 0.5"
						owner = ROOT
						prioritize_location = 3722
					}
				}
			}
		}
	}

	focus = {
		id = CRI_improve_self_defence
		icon = GFX_goal_generic_military_deal
		prerequisite = { focus = CRI_self_defence_squads }
		x = 0
		y = 1
		relative_position_id = CRI_self_defence_squads

		cost = 8

		available = {
			has_completed_focus = CRI_second_kurultai
		}
		available_if_capitulated = yes

		ai_will_do = {
			factor = 10
		}

		bypass = {
			is_subject = no
		}

		search_filters = { FOCUS_FILTER_RESEARCH }
		completion_reward = {
			if = {
				limit = {
					has_equipment = {
						infantry_equipment < 0
					}
				}
				add_equipment_to_stockpile = {
					type = infantry_equipment
					amount = 1000
				}
			}
			
			add_doctrine_cost_reduction = {
				name = CRI_improve_self_defence
				cost_reduction = 0.5
				uses = 1
				category = land_doctrine
			}
			add_tech_bonus = {
				name = CRI_improve_self_defence
				bonus = 1.0
				uses = 1
				category = infantry_weapons
			}
		}
	}
	focus = {
		id = CRI_nationalisation_of_anatra
		icon = GFX_goal_generic_air_production
		prerequisite = { focus = CRI_improve_self_defence }
		mutually_exclusive = { focus = CRI_buy_the_planes }
		x = -1
		y = 1
		relative_position_id = CRI_improve_self_defence

		cost = 10

		available_if_capitulated = no

		ai_will_do = {
			factor = 10
		}

		search_filters = { FOCUS_FILTER_RESEARCH }
		completion_reward = {
			air_experience = 25
			add_tech_bonus = {
				name = CRI_nationalisation_of_anatra
				bonus = 1.0
				uses = 1
				category = air_equipment
			}
			if = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}	
				custom_effect_tooltip = available_mio_tt
				show_mio_tooltip = CRI_Anatra_simf_organization
			}
			else = {
				custom_effect_tooltip = available_designer
				show_ideas_tooltip = Anatra_simf
			}
		}
	}

	focus = {
		id = CRI_buy_the_planes
		icon = GFX_goal_generic_air_fighter
		prerequisite = { focus = CRI_improve_self_defence }
		mutually_exclusive = { focus = CRI_nationalisation_of_anatra }
		x = 1
		y = 1
		relative_position_id = CRI_improve_self_defence

		cost = 10

		available = {
			is_subject = yes
		}
		available_if_capitulated = yes

		ai_will_do = {
			factor = 10
		}

		completion_reward = {
			add_autonomy_score = {
				value = -150
			}
			if = {
				limit = {
					NOT = { has_dlc = "By Blood Alone" }
					NOT = { has_dlc = "Arms Against Tyranny" }
				}
				add_equipment_to_stockpile = {
		            type = fighter_equipment_1
		            amount = 25
		            producer = CRM
				}
			}
			else_if = {
				limit = { NOT = { has_dlc = "Arms Against Tyranny" } }
				add_equipment_to_stockpile = {
				    type = small_plane_airframe_0
				    amount = 25
				    producer = UKR
				    variant_name = "S-22"
				}	
			}
			if = {
				limit = {
					has_dlc = "Arms Against Tyranny"
					is_subject = yes
				}
				add_equipment_subsidy = {
					cic = 500
					equipment_type = small_plane_airframe
					seller_tags = { OVERLORD }
				}
			}	
					
			if = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}
				custom_effect_tooltip = available_mio_tt
				show_mio_tooltip = CRI_YEARZ_organization
			}
			else = {
				custom_effect_tooltip = available_designer
				show_ideas_tooltip = YEARZ
			}
		}
	}

	focus = {
		id = CRI_naval_infrastructure
		icon = GFX_focus_generic_black_sea_focus
		prerequisite = { focus = CRI_buy_the_planes focus = CRI_nationalisation_of_anatra }
		mutually_exclusive = { focus = CRI_coastal_defense_reinforcement }
		x = 0
		y = 1
		relative_position_id = CRI_nationalisation_of_anatra

		cost = 10

		available_if_capitulated = no

		ai_will_do = {
			factor = 10
		}

		search_filters = { FOCUS_FILTER_RESEARCH }
		completion_reward = {
			navy_experience = 25
			add_doctrine_cost_reduction = {
				name = CRI_naval_infrastructure
				cost_reduction = 0.5
				uses = 1
				category = naval_doctrine
			}
		}
	}

	focus = {
		id = CRI_coastal_defense_reinforcement
		icon = GFX_focus_generic_coastal_fort
		prerequisite = { focus = CRI_buy_the_planes focus = CRI_nationalisation_of_anatra }
		mutually_exclusive = { focus = CRI_naval_infrastructure }
		x = 0
		y = 1
		relative_position_id = CRI_buy_the_planes

		cost = 10

		available = {
			is_subject = yes
			137 = { is_owned_and_controlled_by = ROOT }
		}
		available_if_capitulated = no

		ai_will_do = {
			factor = 10
		}

		completion_reward = {
			add_autonomy_score = {
				value = -150
			}
			if = {
				limit = { has_dlc = "Man the Guns" }
					hidden_effect = {
						create_equipment_variant = {
							name = "Azat Kirim Class"				
							type = ship_hull_cruiser_coastal_defense_ship
							parent_version = 0
							modules = {
								fixed_ship_battery_slot = ship_light_medium_battery_1
								fixed_ship_anti_air_slot = ship_anti_air_1
								fixed_ship_fire_control_system_slot = ship_fire_control_system_0
								fixed_ship_radar_slot = empty
								fixed_ship_engine_slot = cruiser_ship_engine_1
								fixed_ship_armor_slot = empty
								fixed_ship_secondaries_slot = empty
								mid_1_custom_slot = empty
								mid_2_custom_slot = empty
								rear_1_custom_slot = empty
							}
						}
						load_oob = "CRI_coastal_ship"
					}
					custom_effect_tooltip = CRI_coastal_defense_reinforcement_tt
				else = {
					load_oob = "CRI_coastal_ship_legacy"
				}
			}
			if = {
				limit = {
					137 = { is_owned_and_controlled_by = ROOT }
				}
				137 = {
					add_building_construction = {
						type = coastal_bunker
						province = 6704
						level = 1
						instant_build = yes
					}
				}
			}
			if = {
				limit = {
					986 = { is_owned_and_controlled_by = ROOT }
				}
				986 = {
					add_building_construction = {
						type = coastal_bunker
						province = 705
						level = 1
						instant_build = yes
					}
				}
			}
		}
	}

	focus = {
		id = CRI_mountain_regiment
		icon = GFX_goal_generic_special_forces
		prerequisite = { focus = CRI_naval_infrastructure focus = CRI_coastal_defense_reinforcement }
		x = 1
		y = 1
		relative_position_id = CRI_naval_infrastructure

		cost = 10

		available_if_capitulated = yes

		ai_will_do = {
			factor = 10
		}

		search_filters = { FOCUS_FILTER_MANPOWER FOCUS_FILTER_RESEARCH }
		completion_reward = {
			division_template = {
				name = "Gorno-yagerskyi polk"
				regiments = {
					mountaineers = { x = 0 y = 0 }
					mountaineers = { x = 0 y = 1 }
   					mountaineers = { x = 0 y = 2 }
				}
			}
			if = { limit = { 137 = { is_owned_and_controlled_by = ROOT } } 
				17 = {
					create_unit = {
						division = "name = \"Tatarskyi gorno-yagerskyi polk\" division_template = \"Gorno-yagerskyi polk\" start_experience_factor = 0.3 start_equipment_factor = 1"
						owner = ROOT
						prioritize_location = 6704
					}
				}
			}
			if = {
				limit = { has_dlc = "Arms Against Tyranny" }
				add_potential_special_forces_tree = yes
				add_doctrine_cost_reduction = {
					name = CRI_mountain_regiment
					cost_reduction = 0.5
					uses = 1
					category = special_forces_doctrine
				}
			}
			else = {
				add_doctrine_cost_reduction = {
					name = CRI_mountain_regiment
					cost_reduction = 0.5
					uses = 1
					category = land_doctrine
				}
			}
			add_tech_bonus = {
				name = CRI_mountain_regiment
				bonus = 1.0
				uses = 1
				technology = tech_mountaineers2
				technology = tech_mountaineers3
			}
		}
	}

	focus = {
		id = CRI_cooperative_shipbuilding
		icon = GFX_focus_generic_cruiser2
		prerequisite = { focus = CRI_naval_infrastructure focus = CRI_coastal_defense_reinforcement }
		x = -1
		y = 1
		relative_position_id = CRI_naval_infrastructure

		cost = 10

		available = {
			OR = {
				AND = {
					has_completed_focus = CRI_join_to_comintern
					NOT = { has_war_with = SOV }
				}
				AND = {
					has_completed_focus = CRI_proturkish_course
					NOT = { has_war_with = TUR }
				}
			}
		}

		available_if_capitulated = yes

		ai_will_do = {
			factor = 10
		}

		search_filters = { FOCUS_FILTER_RESEARCH }
		completion_reward = {
			navy_experience = 25
			add_tech_bonus = {
				name = CRI_cooperative_shipbuilding
				bonus = 1.0
				uses = 1
				category = cl_tech
			}
			add_tech_bonus = {
				name = CRI_cooperative_shipbuilding
				bonus = 1.0
				uses = 1
				category = ca_tech
			}
		}
	}

	focus = {
		id = CRI_joint_army_innovations
		icon = GFX_goal_generic_allies_build_infantry
		prerequisite = { focus = CRI_naval_infrastructure focus = CRI_coastal_defense_reinforcement }
		x = 3
		y = 1
		relative_position_id = CRI_naval_infrastructure

		cost = 10

		available = {
			has_completed_focus = CRI_proukrainian_course
			NOT = { has_war_with = UKR }
		}

		available_if_capitulated = yes

		ai_will_do = {
			factor = 10
		}

		search_filters = { FOCUS_FILTER_RESEARCH }
		completion_reward = {
			army_experience = 25
			add_tech_bonus = {
				name = CRI_joint_army_innovations
				bonus = 1.0
				uses = 1
				category = artillery
			}
			add_tech_bonus = {
				name = CRI_joint_army_innovations
				bonus = 1.0
				uses = 1
				category = air_equipment
			}
		}
	}

	focus = {
		id = CRI_attack_focus
		icon = GFX_goal_generic_occupy_states_ongoing_war
		prerequisite = { focus = CRI_mountain_regiment focus = CRI_joint_army_innovations focus = CRI_cooperative_shipbuilding }
		mutually_exclusive = { focus = CRI_defense_focus }
		x = -1
		y = 1
		relative_position_id = CRI_mountain_regiment

		cost = 10

		available_if_capitulated = yes

		ai_will_do = {
			factor = 10
		}

		completion_reward = {
			every_unit_leader = {
				add_attack = 1
			}
			if = {
				limit = { has_character = CRI_david_pasha }
				remove_trait = {
					character = CRI_david_pasha
					slot = high_command
					trait = army_artillery_1
				}
				add_trait = {
					character = CRI_david_pasha
					slot = high_command
					trait = army_artillery_2
				}
			}
		}
	}

	focus = {
		id = CRI_defense_focus
		icon = GFX_goal_generic_defence
		prerequisite = { focus = CRI_mountain_regiment focus = CRI_joint_army_innovations focus = CRI_cooperative_shipbuilding }
		mutually_exclusive = { focus = CRI_attack_focus }
		x =1
		y = 1
		relative_position_id = CRI_mountain_regiment

		cost = 10

		available_if_capitulated = yes

		ai_will_do = {
			factor = 10
		}

		completion_reward = {
			every_unit_leader = {
				add_defense = 1
			}
			if = {
				limit = { has_character = CRI_abla_raimov }
				remove_trait = {
					character = CRI_abla_raimov
					slot = high_command
					trait = army_infantry_1
				}
				add_trait = {
					character = CRI_abla_raimov
					slot = high_command
					trait = army_infantry_2
				}
			}
		}
	}
}
