focus_tree = {
	id = deluge_turkey_focus
	
	country = {
		factor = 0
		
		modifier = {
			add = 10
			original_tag = TUR
		}
	}
	
	default = no
	reset_on_civilwar = yes
	
	focus = {
		id = turkey_deluge_meritocracy
		icon = GFX_goal_generic_production2
		mutually_exclusive = { focus = turkey_deluge_aristocracy }
		x = 1
		y = 0
		available_if_capitulated = yes
		cost = 10
		completion_reward = {
			add_ideas = deluge_meritocracy_idea
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.1
				OR = {
					has_government = democratic
					has_government = fascism
				}
			}
			modifier = {
				factor = 0
				has_government = neutrality
			}
			modifier = {
				factor = 0
				date < 1936.5.15
			}
			modifier = {
				factor = 2
				is_historical_focus_on = yes
			}
			modifier = { # political power when at war and needs to change manpower law
				factor = 2
				has_war = yes
				OR = {
					has_idea = volunteer_only
					has_idea = limited_conscription
					has_idea = extensive_conscription
				}
				manpower_per_military_factory < 1000
			}
			modifier = { # political power when at war and needs to change economy law
				factor = 2
				has_war = yes
				OR = {
					has_idea = civilian_economy
					has_idea = low_economic_mobilisation
					has_idea = partial_economic_mobilisation
				}
			}
		}
	}

	focus = {
		id = turkey_deluge_aristocracy
		icon = "GFX_goal_generic_air_doctrine"
		mutually_exclusive = { focus = turkey_deluge_meritocracy }
		x = 3
		y = 0
		available_if_capitulated = yes
		cost = 10
		completion_reward = {
			add_ideas = deluge_aristocracy_idea
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.1
				OR = {
					has_government = democratic
					has_government = fascism
				}
			}
			modifier = {
				factor = 0
				has_government = communism
			}
			modifier = {
				factor = 0
				date < 1936.5.15
			}
			modifier = {
				factor = 2
				is_historical_focus_on = yes
			}
			modifier = { # political power when at war and needs to change manpower law
				factor = 2
				has_war = yes
				OR = {
					has_idea = volunteer_only
					has_idea = limited_conscription
					has_idea = extensive_conscription
				}
				manpower_per_military_factory < 1000
			}
			modifier = { # political power when at war and needs to change economy law
				factor = 2
				has_war = yes
				OR = {
					has_idea = civilian_economy
					has_idea = low_economic_mobilisation
					has_idea = partial_economic_mobilisation
				}
			}
		}
	}

	focus = {
		id = turkey_deluge_popular_sovereignty
		icon = "GFX_goal_support_democracy"
		prerequisite = { focus = turkey_deluge_meritocracy }
		x = 1
		y = 1
		available_if_capitulated = yes
		cost = 10
		completion_reward = {
			add_stability = 0.05
			add_political_power = 150
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.1
				OR = {
					has_government = democratic
					has_government = fascism
					has_government = neutrality
				}
			}
			modifier = {
				factor = 2
				is_historical_focus_on = yes
			}
			modifier = { # political power when at war and needs to change manpower law
				factor = 2
				has_war = yes
				OR = {
					has_idea = volunteer_only
					has_idea = limited_conscription
					has_idea = extensive_conscription
				}
				manpower_per_military_factory < 1000
			}
			modifier = { # political power when at war and needs to change economy law
				factor = 2
				has_war = yes
				OR = {
					has_idea = civilian_economy
					has_idea = low_economic_mobilisation
					has_idea = partial_economic_mobilisation
				}
			}
		}
	}

	focus = {
		id = turkey_depose_monarch
		icon = GFX_goal_generic_war_with_comintern
		prerequisite = { focus = turkey_deluge_popular_sovereignty }
		available = {
			has_idea = ottoman_emperor
			NOT = { has_government = neutrality }
		}
		x = 1
		y = 2
		available_if_capitulated = yes
		cost = 10
		completion_reward = {
			add_political_power = 150
			if = {
				limit = {
					has_idea = ottoman_emperor
				}
				remove_ideas = ottoman_emperor
			}
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				OR = {
					has_government = democratic
					has_government = neutrality
					has_government = fascism
				}
			}
			modifier = {
				factor = 2
				is_historical_focus_on = yes
			}
		}
	}

	focus = {
		id = turkey_deluge_divine_right
		icon = GFX_focus_rom_royal_dictatorship
		prerequisite = { focus = turkey_deluge_aristocracy }
		x = 3
		y = 1
		available_if_capitulated = yes
		cost = 10
		completion_reward = {
			add_stability = 0.05
			add_political_power = 150
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.1
				OR = {
					has_government = democratic
					has_government = fascism
					has_government = communism
				}
			}
			modifier = {
				factor = 2
				is_historical_focus_on = yes
			}
			modifier = { # political power when at war and needs to change manpower law
				factor = 2
				has_war = yes
				OR = {
					has_idea = volunteer_only
					has_idea = limited_conscription
					has_idea = extensive_conscription
				}
				manpower_per_military_factory < 1000
			}
			modifier = { # political power when at war and needs to change economy law
				factor = 2
				has_war = yes
				OR = {
					has_idea = civilian_economy
					has_idea = low_economic_mobilisation
					has_idea = partial_economic_mobilisation
				}
			}
		}
	}
	
	focus = {
		id = turkey_deluge_individualism
		icon = GFX_goal_generic_demand_territory
		mutually_exclusive = { focus = turkey_deluge_corporatism }
		x = 5
		y = 0
		available_if_capitulated = yes
		cost = 10
		completion_reward = {
			add_ideas = deluge_individualism_idea
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.1
				OR = {
					has_government = communism
					has_government = neutrality
				}
			}
			modifier = {
				factor = 0
				has_government = fascism
			}
			modifier = {
				factor = 0
				date < 1936.5.15
			}
			modifier = {
				factor = 2
				is_historical_focus_on = yes
			}
		}
	}

	focus = {
		id = turkey_deluge_corporatism
		icon = GFX_goal_generic_political_pressure
		mutually_exclusive = { focus = turkey_deluge_individualism }
		x = 7
		y = 0
		available_if_capitulated = yes
		cost = 10
		completion_reward = {
			add_ideas = deluge_corporatism_idea
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.1
				OR = {
					has_government = communism
					has_government = neutrality
				}
			}
			modifier = {
				factor = 0
				has_government = democratic
			}
			modifier = {
				factor = 0
				date < 1936.5.15
			}
			modifier = {
				factor = 2
				is_historical_focus_on = yes
			}
		}
	}

	focus = {
		id = turkey_deluge_pluralism
		icon = "GFX_goal_generic_national_unity"
		prerequisite = { focus = turkey_deluge_individualism }
		x = 5
		y = 1
		available_if_capitulated = yes
		cost = 10
		completion_reward = {
			add_ideas = deluge_pluralism_idea
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.1
				OR = {
					has_government = communism
					has_government = neutrality
					has_government = fascism
				}
			}
			modifier = {
				factor = 2
				is_historical_focus_on = yes
			}
		}
	}

	focus = {
		id = turkey_deluge_leader_cult
		icon = "GFX_goal_support_fascism"
		prerequisite = { focus = turkey_deluge_corporatism }
		x = 7
		y = 1
		available_if_capitulated = yes
		cost = 10
		completion_reward = {
			add_ideas = deluge_leader_cult_idea
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.1
				OR = {
					has_government = communism
					has_government = neutrality
					has_government = democratic
				}
			}
			modifier = {
				factor = 2
				is_historical_focus_on = yes
			}
		}
	}

	focus = {
		id = turkey_deluge_youth_organisations
		icon = "GFX_goal_generic_position_armies"
		prerequisite = { focus = turkey_deluge_leader_cult focus = turkey_deluge_pluralism focus = turkey_deluge_divine_right focus = turkey_deluge_popular_sovereignty }
		x = 4
		y = 2
		available_if_capitulated = yes
		cost = 10
		completion_reward = {
			add_ideas = deluge_youth_organisations_idea
		}
		ai_will_do = {
			factor = 3
			modifier = {
				factor = 2
				is_historical_focus_on = yes
			}
			modifier = { # political power when at war and needs to change manpower law
				factor = 2
				has_war = yes
				OR = {
					has_idea = volunteer_only
					has_idea = limited_conscription
					has_idea = extensive_conscription
				}
				manpower_per_military_factory < 1000
			}
			modifier = { # political power when at war and needs to change economy law
				factor = 2
				has_war = yes
				OR = {
					has_idea = civilian_economy
					has_idea = low_economic_mobilisation
					has_idea = partial_economic_mobilisation
				}
			}
		}
	}

	focus = {
		id = turkey_deluge_land_reform
		icon = "GFX_goal_support_communism"
		prerequisite = { focus = turkey_deluge_youth_organisations }
		mutually_exclusive = { focus = turkey_deluge_manorialism }
		x = 1
		y = 3
		available_if_capitulated = yes
		cost = 10
		completion_reward = {
			add_ideas = deluge_land_reform_idea
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.1
				OR = {
					has_government = democratic
					has_government = fascism
				}
			}
			modifier = {
				factor = 0
				has_government = neutrality
			}
			modifier = {
				factor = 2
				is_historical_focus_on = yes
			}
			modifier = { # political power when at war and needs to change manpower law
				factor = 2
				has_war = yes
				OR = {
					has_idea = volunteer_only
					has_idea = limited_conscription
					has_idea = extensive_conscription
				}
				manpower_per_military_factory < 1000
			}
			modifier = { # political power when at war and needs to change economy law
				factor = 2
				has_war = yes
				OR = {
					has_idea = civilian_economy
					has_idea = low_economic_mobilisation
					has_idea = partial_economic_mobilisation
				}
			}
		}
	}

	focus = {
		id = turkey_deluge_manorialism
		icon = GFX_focus_hun_elect_a_king
		prerequisite = { focus = turkey_deluge_youth_organisations }
		mutually_exclusive = { focus = turkey_deluge_land_reform }
		x = 3
		y = 3
		available_if_capitulated = yes
		cost = 10
		completion_reward = {
			add_ideas = deluge_manorialism_idea
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.1
				OR = {
					has_government = democratic
					has_government = fascism
				}
			}
			modifier = {
				factor = 0
				has_government = communism
			}
			modifier = {
				factor = 2
				is_historical_focus_on = yes
			}
			modifier = { # political power when at war and needs to change manpower law
				factor = 2
				has_war = yes
				OR = {
					has_idea = volunteer_only
					has_idea = limited_conscription
					has_idea = extensive_conscription
				}
				manpower_per_military_factory < 1000
			}
			modifier = { # political power when at war and needs to change economy law
				factor = 2
				has_war = yes
				OR = {
					has_idea = civilian_economy
					has_idea = low_economic_mobilisation
					has_idea = partial_economic_mobilisation
				}
			}
		}
	}
	
	focus = {
		id = turkey_deluge_fraternal_nations
		icon = GFX_goal_anschluss
		prerequisite = { focus = turkey_deluge_land_reform }
		x = 1
		y = 4
		available_if_capitulated = yes
		cost = 10
		completion_reward = {
			add_political_power = 150
			if = {
				limit = { has_idea = neutrality_idea }
				remove_ideas = neutrality_idea
			}
			add_stability = 0.05
			set_rule = { can_create_factions = yes }
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.1
				OR = {
					has_government = democratic
					has_government = fascism
					has_government = neutrality
				}
			}
			modifier = {
				factor = 2
				is_historical_focus_on = yes
			}
			modifier = { # political power when at war and needs to change manpower law
				factor = 2
				has_war = yes
				OR = {
					has_idea = volunteer_only
					has_idea = limited_conscription
					has_idea = extensive_conscription
				}
				manpower_per_military_factory < 1000
			}
			modifier = { # political power when at war and needs to change economy law
				factor = 2
				has_war = yes
				OR = {
					has_idea = civilian_economy
					has_idea = low_economic_mobilisation
					has_idea = partial_economic_mobilisation
				}
			}
		}
	}

	focus = {
		id = turkey_deluge_dynastic_politics
		icon = GFX_goal_tfv_strengthen_commonwealth_ties
		prerequisite = { focus = turkey_deluge_manorialism }
		x = 3
		y = 4
		available_if_capitulated = yes
		cost = 10
		completion_reward = {
			add_political_power = 150
			if = {
				limit = { has_idea = neutrality_idea }
				remove_ideas = neutrality_idea
			}
			add_stability = 0.05
			set_rule = { can_create_factions = yes }
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.1
				OR = {
					has_government = democratic
					has_government = fascism
					has_government = communism
				}
			}
			modifier = {
				factor = 2
				is_historical_focus_on = yes
			}
			modifier = { # political power when at war and needs to change manpower law
				factor = 2
				has_war = yes
				OR = {
					has_idea = volunteer_only
					has_idea = limited_conscription
					has_idea = extensive_conscription
				}
				manpower_per_military_factory < 1000
			}
			modifier = { # political power when at war and needs to change economy law
				factor = 2
				has_war = yes
				OR = {
					has_idea = civilian_economy
					has_idea = low_economic_mobilisation
					has_idea = partial_economic_mobilisation
				}
			}
		}
	}

	focus = {
		id = turkey_deluge_police_consent
		icon = GFX_goal_molotov_ribbentrop_pact
		prerequisite = { focus = turkey_deluge_youth_organisations }
		mutually_exclusive = { focus = turkey_deluge_secret_police }
		x = 5
		y = 3
		available_if_capitulated = yes
		cost = 10
		completion_reward = {
			add_ideas = deluge_police_consent_idea
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.1
				OR = {
					has_government = communism
					has_government = neutrality
				}
			}
			modifier = {
				factor = 0
				has_government = fascism
			}
			modifier = {
				factor = 2
				is_historical_focus_on = yes
			}
		}
	}

	focus = {
		id = turkey_deluge_secret_police
		icon = GFX_goal_generic_secret_weapon
		prerequisite = { focus = turkey_deluge_youth_organisations }
		mutually_exclusive = { focus = turkey_deluge_police_consent }
		x = 7
		y = 3
		available_if_capitulated = yes
		cost = 10
		completion_reward = {
			add_ideas = deluge_secret_police_idea
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.1
				OR = {
					has_government = communism
					has_government = neutrality
				}
			}
			modifier = {
				factor = 0
				has_government = democratic
			}
			modifier = {
				factor = 2
				is_historical_focus_on = yes
			}
		}
	}
	focus = {
		id = turkey_deluge_judiciary
		icon = "GFX_goal_generic_neutrality_focus"
		prerequisite = { focus = turkey_deluge_police_consent }
		x = 5
		y = 4
		available_if_capitulated = yes
		cost = 10
		completion_reward = {
			add_ideas = deluge_judiciary_idea
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.1
				OR = {
					has_government = communism
					has_government = neutrality
					has_government = fascism
				}
			}
			modifier = {
				factor = 2
				is_historical_focus_on = yes
			}
		}
	}

	focus = {
		id = turkey_deluge_state_terror
		icon = GFX_focus_boot_scales
		prerequisite = { focus = turkey_deluge_secret_police }
		x = 7
		y = 4
		available_if_capitulated = yes
		cost = 10
		completion_reward = {
			add_ideas = deluge_state_terror_idea
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.1
				OR = {
					has_government = communism
					has_government = neutrality
					has_government = democratic
				}
			}
			modifier = {
				factor = 2
				is_historical_focus_on = yes
			}
		}
	}

	focus = {
		id = turkey_deluge_national_unity
		icon = GFX_goal_generic_propaganda
		prerequisite = { focus = turkey_deluge_fraternal_nations focus = turkey_deluge_dynastic_politics focus = turkey_deluge_judiciary focus = turkey_deluge_state_terror }
		x = 4
		y = 5
		available_if_capitulated = yes
		cost = 10
		completion_reward = {
			add_stability = 0.05
			add_war_support = 0.05
			if = {
				limit = { has_idea = deluge_great_war_horrors_idea }
				remove_ideas = deluge_great_war_horrors_idea
			}
			if = {
				limit = { has_idea = deluge_chinese_sectarianism_idea }
				remove_ideas = deluge_chinese_sectarianism_idea
			}			
			if = {
				limit = { has_idea = deluge_german_civil_war_idea }
				remove_ideas = deluge_german_civil_war_idea
			}
		}
		ai_will_do = {
			factor = 10
			modifier = {
				factor = 2
				is_historical_focus_on = yes
			}
		}
	}
	
	focus = {
		id = turkey_independent_faction
		icon = GFX_goal_generic_dangerous_deal
		prerequisite = { focus = turkey_deluge_national_unity }
		prerequisite = { focus = turkey_deluge_fraternal_nations focus = turkey_deluge_dynastic_politics }
		x = 2
		y = 6
		available_if_capitulated = yes
		cost = 10
		completion_reward = {
			add_political_power = 150
			if = {
				limit = {
					is_in_faction = no
				}
				create_faction = "factionTurkishBloc"
			}
		}
		ai_will_do = {
			factor = 100
			modifier = {
				factor = 2
				is_historical_focus_on = yes
			}
		}
	}
	
	focus = {
		id = turkey_call_to_arms
		icon = GFX_goal_generic_major_alliance
		prerequisite = { focus = turkey_independent_faction }
		x = 4
		y = 8
		available_if_capitulated = yes
		cost = 10
		available = {
			is_faction_leader = yes
			NOT = { has_global_flag = turkish_call_to_arms }
			has_idea = ottoman_emperor
		}
		completion_reward = {
			add_political_power = 150

			custom_effect_tooltip = tooltip_islamic_countries_asked_to_join
			
			news_event = deluge_turkey.10
		}
		ai_will_do = {
			factor = 100
			modifier = {
				factor = 2
				is_historical_focus_on = yes
			}
		}
	}
	
	focus = {
		id = turkey_claim_greece
		icon = GFX_goal_generic_occupy_states_ongoing_war
		prerequisite = { focus = turkey_independent_faction }
		x = 1
		y = 7
		available_if_capitulated = no
		cost = 10
		available = {
			is_subject = no
			NOT = { is_in_faction_with = GRE }
		}
		ai_will_do = {
			factor = 2
			modifier = {
				factor = 5
				has_war_with = GRE
			}
			modifier = {
				factor = 0.1
				has_war = yes
				NOT = { has_war_with = GRE }
			}
			modifier = {
				factor = 0
				has_government = democratic
				NOT = { has_war_with = GRE }
			}
			modifier = {
				factor = 5
				has_government = fascism
			}
			modifier = {
				factor = 2
				has_government = neutrality
			}
			modifier = {
				factor = 0.1
				has_government = communism
			}
			modifier = {
				factor = 0.5
				any_country = {
					ROOT = {
						has_wargoal_against = PREV
					}
				}
			}
			modifier = {
				factor = 2
				is_historical_focus_on = yes
			}
		}
		completion_reward = {
			if = {
				limit = {
					NOT = { has_war_with = GRE }
				}
				news_event = deluge_turkey.11
			}
			
			add_named_threat = { threat = 1 name = turkey_claims_greece }
			
			add_state_claim = 731
			add_state_claim = 47
			add_state_claim = 186
			
			if = { limit = { NOT = { owns_state = 47 } }
				random_country = {
					limit = { owns_state = 47 }
					ROOT = {
						create_wargoal = {
							type = take_claimed_state
							target = PREV
							generator = { 47 731 186 }
						}
					}
				}
			}
		}
		will_lead_to_war_with = GRE
	}
	
	focus = {
		id = turkey_claim_bulgaria
		icon = GFX_goal_generic_occupy_states_ongoing_war
		prerequisite = { focus = turkey_independent_faction }
		x = 3
		y = 7
		available_if_capitulated = no
		cost = 10
		available = {
			is_subject = no
			NOT = { is_in_faction_with = BUL }
		}
		ai_will_do = {
			factor = 2
			modifier = {
				factor = 5
				has_war_with = BUL
			}
			modifier = {
				factor = 0.1
				has_war = yes
				NOT = { has_war_with = BUL }
			}
			modifier = {
				factor = 0
				has_government = democratic
				NOT = { has_war_with = BUL }
			}
			modifier = {
				factor = 5
				has_government = fascism
			}
			modifier = {
				factor = 2
				has_government = neutrality
			}
			modifier = {
				factor = 0.1
				has_government = communism
			}
			modifier = {
				factor = 0.5
				any_country = {
					ROOT = {
						has_wargoal_against = PREV
					}
				}
			}
			modifier = {
				factor = 2
				is_historical_focus_on = yes
			}
		}
		completion_reward = {
			if = {
				limit = {
					NOT = { has_war_with = BUL }
				}
				news_event = deluge_turkey.12
			}
			
			add_named_threat = { threat = 1 name = turkey_claims_bulgaria }
			
			add_state_claim = 211
			add_state_claim = 212
			add_state_claim = 48
			add_state_claim = 106
			
			if = { limit = { NOT = { owns_state = 48 } }
				random_country = {
					limit = { owns_state = 48 }
					ROOT = {
						create_wargoal = {
							type = take_claimed_state
							target = PREV
							generator = { 48 211 212 106 }
						}
					}
				}
			}
		}
		will_lead_to_war_with = BUL
	}
	
	focus = {
		id = turkey_claim_persia
		icon = GFX_goal_generic_occupy_states_ongoing_war
		prerequisite = { focus = turkey_independent_faction }
		x = 5
		y = 7
		available_if_capitulated = no
		cost = 10
		available = {
			is_subject = no
			NOT = { is_in_faction_with = PER }
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 5
				has_war_with = PER
			}
			modifier = {
				factor = 0.1
				has_war = yes
				NOT = { has_war_with = PER }
			}
			modifier = {
				factor = 0
				has_government = democratic
				NOT = { has_war_with = PER }
			}
			modifier = {
				factor = 5
				has_government = fascism
			}
			modifier = {
				factor = 2
				has_government = neutrality
			}
			modifier = {
				factor = 0.1
				has_government = communism
			}
			modifier = {
				factor = 0.5
				any_country = {
					ROOT = {
						has_wargoal_against = PREV
					}
				}
			}
			modifier = {
				factor = 2
				is_historical_focus_on = yes
			}
		}
		completion_reward = {
			if = {
				limit = {
					NOT = { has_war_with = PER }
				}
				news_event = deluge_turkey.13
			}
			
			add_named_threat = { threat = 1 name = turkey_claims_persia }
			
			add_state_claim = 419
			add_state_claim = 421
			add_state_claim = 413
			
			if = { limit = { NOT = { owns_state = 421 } }
				random_country = {
					limit = { owns_state = 421 }
					ROOT = {
						create_wargoal = {
							type = take_claimed_state
							target = PREV
							generator = { 421 419 413 }
						}
					}
				}
			}
		}
		will_lead_to_war_with = PER
	}
	
	focus = {
		id = turkey_claim_caucasia
		icon = GFX_goal_generic_occupy_states_ongoing_war
		prerequisite = { focus = turkey_independent_faction }
		x = 7
		y = 7
		available_if_capitulated = no
		cost = 10
		available = {
			is_subject = no
			NOT = { is_in_faction_with = CAU }
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 5
				has_war_with = CAU
			}
			modifier = {
				factor = 0.1
				has_war = yes
				NOT = { has_war_with = CAU }
			}
			modifier = {
				factor = 0
				has_government = democratic
				NOT = { has_war_with = CAU }
			}
			modifier = {
				factor = 5
				has_government = fascism
			}
			modifier = {
				factor = 2
				has_government = neutrality
			}
			modifier = {
				factor = 0.1
				has_government = communism
			}
			modifier = {
				factor = 0.5
				any_country = {
					ROOT = {
						has_wargoal_against = PREV
					}
				}
			}
			modifier = {
				factor = 2
				is_historical_focus_on = yes
			}
		}
		completion_reward = {
			if = {
				limit = {
					NOT = { has_war_with = CAU }
				}
				news_event = deluge_turkey.14
			}
			
			add_named_threat = { threat = 1 name = turkey_claims_caucasia }
			
			every_state = {
				limit = {
					is_core_of = CAU
				}
				add_claim_by = TUR
			}

			if = { limit = { NOT = { owns_state = 230 } }
				random_country = {
					limit = { owns_state = 230 }
					ROOT = {
						create_wargoal = {
							type = take_claimed_state
							target = PREV
							generator = { 230 229 }
						}
					}
				}
			}
		}
		will_lead_to_war_with = CAU
	}
		
	focus = {
		id = turkey_claim_crimea
		icon = GFX_goal_generic_occupy_states_ongoing_war
		prerequisite = { focus = turkey_claim_caucasia focus = turkey_claim_persia }
		x = 6
		y = 8
		available_if_capitulated = no
		cost = 10
		available = {
			is_subject = no
			NOT = { is_in_faction_with = SOV }
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 5
				has_war_with = SOV
			}
			modifier = {
				factor = 0.1
				has_war = yes
				NOT = { has_war_with = SOV }
			}
			modifier = {
				factor = 0
				has_government = democratic
				NOT = { has_war_with = SOV }
			}
			modifier = {
				factor = 5
				has_government = fascism
			}
			modifier = {
				factor = 2
				has_government = neutrality
			}
			modifier = {
				factor = 0.1
				has_government = communism
			}
			modifier = {
				factor = 0.5
				any_country = {
					ROOT = {
						has_wargoal_against = PREV
					}
				}
			}
			modifier = {
				factor = 2
				is_historical_focus_on = yes
			}
		}
		completion_reward = {
			if = {
				limit = {
					NOT = { has_war_with = SOV }
				}
				news_event = deluge_turkey.15
			}
			
			add_named_threat = { threat = 3 name = turkey_claims_crimea }
			
			add_state_claim = 137
			add_state_claim = 196
			add_state_claim = 200
			add_state_claim = 227
			add_state_claim = 218
			add_state_claim = 234
			
			if = { limit = { NOT = { owns_state = 137 } }
				random_country = {
					limit = { owns_state = 137 }
					ROOT = {
						create_wargoal = {
							type = take_claimed_state
							target = PREV
							generator = { 137 196 200 227 218 234 }
						}
					}
				}
			}
		}
		will_lead_to_war_with = SOV
	}
	
	focus = {
		id = turkey_claim_egypt
		icon = GFX_goal_generic_occupy_states_ongoing_war
		prerequisite = { focus = turkey_claim_bulgaria focus = turkey_claim_greece }
		x = 2
		y = 8
		available_if_capitulated = no
		cost = 10
		available = {
			is_subject = no
			NOT = { is_in_faction_with = EGY }
			any_state = {
				is_core_of = EGY
				NOT = { is_owned_by = ROOT }
			}
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.5
				any_country = {
					ROOT = {
						has_wargoal_against = PREV
					}
				}
			}
			modifier = {
				factor = 5
				OR = {
					has_war_with = FRA
					has_war_with = SPR
				}
			}
			modifier = { # France or Spain must be at war with someone other than Turkey to give her the opportunity to seize the provinces
				factor = 0
				NOT = {
					OR = {
						AND = {
							FRA = { has_war = yes }
							NOT = { has_war_with = FRA }
						}
						AND = {
							SPR = { has_war = yes }
							NOT = { has_war_with = SPR }
						}
					}
				}
			}
			modifier = {
				factor = 2
				is_historical_focus_on = yes
			}
		}
		completion_reward = {
			add_named_threat = { threat = 2 name = turkey_claims_egypt }
			
			every_state = {
				limit = {
					is_core_of = EGY
				}
				add_claim_by = ROOT
			}
			
			if = {
				limit = {
					NOT = { has_war_with = FRA }
					any_state = {
						is_core_of = EGY
						is_owned_by = FRA
					}
				}
				FRA = { country_event = deluge_turkey.4 }
			}
			
			if = {
				limit = {
					NOT = { has_war_with = SPR }
					any_state = {
						is_core_of = EGY
						is_owned_by = SPR
					}
				}
				SPR = { country_event = deluge_turkey.7 }
			}
		}
		will_lead_to_war_with = FRA
		will_lead_to_war_with = SPR
	}
	
	
	focus = {
		id = turkey_league_ratification
		icon = GFX_focus_league_of_nations
		available = {
			OR = {
				has_idea = deluge_league_of_nations_prospective_member
				has_idea = deluge_league_of_nations_lapsing_member
			}
			has_war = no
			has_global_flag = flag_league_international_court_vote_concluded
			has_global_flag = flag_league_relief_union_vote_concluded
			has_global_flag = flag_league_prohibit_poison_gas_vote_concluded
			has_global_flag = flag_league_prisoners_of_war_vote_concluded
			has_global_flag = flag_league_maritime_protections_vote_concluded
			NOT = { has_global_flag = flag_league_of_nations_disbanded }
		}
		x = 9
		y = 0
		available_if_capitulated = yes
		cost = 10
		completion_reward = {
			add_political_power = 80
			
			if = {
				limit = {
					is_major = yes
				}
				add_named_threat = { threat = -3 name = deluge_ratified_league_of_nations_threat }
			}
			
			if = {
				limit = {
					is_major = no
					is_subject = no
				}
				add_named_threat = { threat = -1 name = deluge_ratified_league_of_nations_threat }
			}
			
			hidden_effect = {
				news_event = deluge_league.28
			}
			
			# bitmask is used to determine final attributes of the idea
			# flags are supposedly initialised at 0
			# 1 = court of justice
			# 2 = disaster relief
			# 4 = gas warfare ban
			# 8 = convention on pows
			# 16 = convention on convoys
			# total of 32 variations (including if none of the conventions pass)
			
			if = {
				limit = {
					has_idea = deluge_league_of_nations_prospective_member
				}
				remove_ideas = deluge_league_of_nations_prospective_member
			}
			
			if = {
				limit = {
					has_idea = deluge_league_of_nations_lapsing_member
				}
				remove_ideas = deluge_league_of_nations_lapsing_member
			}
			
			add_to_tech_sharing_group = deluge_league_of_nations_tech_group

			custom_effect_tooltip = tooltip_league_final_effects_depend_on_votes
			
			if = {
				limit = {
					has_global_flag = {
						flag = flag_league_of_nations_bitmask
						value > 0
					}
					NOT = {
						has_global_flag = {
							flag = flag_league_of_nations_bitmask
							value > 1
						}
					}
				}
				add_ideas = deluge_league_of_nations_member_0
			}
			if = {
				limit = {
					has_global_flag = {
						flag = flag_league_of_nations_bitmask
						value > 1
					}
					NOT = {
						has_global_flag = {
							flag = flag_league_of_nations_bitmask
							value > 2
						}
					}
				}
				add_ideas = deluge_league_of_nations_member_1
			}
			if = {
				limit = {
					has_global_flag = {
						flag = flag_league_of_nations_bitmask
						value > 2
					}
					NOT = {
						has_global_flag = {
							flag = flag_league_of_nations_bitmask
							value > 3
						}
					}
				}
				add_ideas = deluge_league_of_nations_member_2
			}
			if = {
				limit = {
					has_global_flag = {
						flag = flag_league_of_nations_bitmask
						value > 3
					}
					NOT = {
						has_global_flag = {
							flag = flag_league_of_nations_bitmask
							value > 4
						}
					}
				}
				add_ideas = deluge_league_of_nations_member_3
			}
			if = {
				limit = {
					has_global_flag = {
						flag = flag_league_of_nations_bitmask
						value > 4
					}
					NOT = {
						has_global_flag = {
							flag = flag_league_of_nations_bitmask
							value > 5
						}
					}
				}
				add_ideas = deluge_league_of_nations_member_4
			}
			if = {
				limit = {
					has_global_flag = {
						flag = flag_league_of_nations_bitmask
						value > 5
					}
					NOT = {
						has_global_flag = {
							flag = flag_league_of_nations_bitmask
							value > 6
						}
					}
				}
				add_ideas = deluge_league_of_nations_member_5
			}
			if = {
				limit = {
					has_global_flag = {
						flag = flag_league_of_nations_bitmask
						value > 6
					}
					NOT = {
						has_global_flag = {
							flag = flag_league_of_nations_bitmask
							value > 7
						}
					}
				}
				add_ideas = deluge_league_of_nations_member_6
			}
			if = {
				limit = {
					has_global_flag = {
						flag = flag_league_of_nations_bitmask
						value > 7
					}
					NOT = {
						has_global_flag = {
							flag = flag_league_of_nations_bitmask
							value > 8
						}
					}
				}
				add_ideas = deluge_league_of_nations_member_7
			}
			if = {
				limit = {
					has_global_flag = {
						flag = flag_league_of_nations_bitmask
						value > 8
					}
					NOT = {
						has_global_flag = {
							flag = flag_league_of_nations_bitmask
							value > 9
						}
					}
				}
				add_ideas = deluge_league_of_nations_member_8
			}
			if = {
				limit = {
					has_global_flag = {
						flag = flag_league_of_nations_bitmask
						value > 9
					}
					NOT = {
						has_global_flag = {
							flag = flag_league_of_nations_bitmask
							value > 10
						}
					}
				}
				add_ideas = deluge_league_of_nations_member_9
			}
			if = {
				limit = {
					has_global_flag = {
						flag = flag_league_of_nations_bitmask
						value > 10
					}
					NOT = {
						has_global_flag = {
							flag = flag_league_of_nations_bitmask
							value > 11
						}
					}
				}
				add_ideas = deluge_league_of_nations_member_10
			}
			if = {
				limit = {
					has_global_flag = {
						flag = flag_league_of_nations_bitmask
						value > 11
					}
					NOT = {
						has_global_flag = {
							flag = flag_league_of_nations_bitmask
							value > 12
						}
					}
				}
				add_ideas = deluge_league_of_nations_member_11
			}
			if = {
				limit = {
					has_global_flag = {
						flag = flag_league_of_nations_bitmask
						value > 12
					}
					NOT = {
						has_global_flag = {
							flag = flag_league_of_nations_bitmask
							value > 13
						}
					}
				}
				add_ideas = deluge_league_of_nations_member_12
			}
			if = {
				limit = {
					has_global_flag = {
						flag = flag_league_of_nations_bitmask
						value > 13
					}
					NOT = {
						has_global_flag = {
							flag = flag_league_of_nations_bitmask
							value > 14
						}
					}
				}
				add_ideas = deluge_league_of_nations_member_13
			}
			if = {
				limit = {
					has_global_flag = {
						flag = flag_league_of_nations_bitmask
						value > 14
					}
					NOT = {
						has_global_flag = {
							flag = flag_league_of_nations_bitmask
							value > 15
						}
					}
				}
				add_ideas = deluge_league_of_nations_member_14
			}
			if = {
				limit = {
					has_global_flag = {
						flag = flag_league_of_nations_bitmask
						value > 15
					}
					NOT = {
						has_global_flag = {
							flag = flag_league_of_nations_bitmask
							value > 16
						}
					}
				}
				add_ideas = deluge_league_of_nations_member_15
			}
			if = {
				limit = {
					has_global_flag = {
						flag = flag_league_of_nations_bitmask
						value > 16
					}
					NOT = {
						has_global_flag = {
							flag = flag_league_of_nations_bitmask
							value > 17
						}
					}
				}
				add_ideas = deluge_league_of_nations_member_16
			}
			if = {
				limit = {
					has_global_flag = {
						flag = flag_league_of_nations_bitmask
						value > 17
					}
					NOT = {
						has_global_flag = {
							flag = flag_league_of_nations_bitmask
							value > 18
						}
					}
				}
				add_ideas = deluge_league_of_nations_member_17
			}
			if = {
				limit = {
					has_global_flag = {
						flag = flag_league_of_nations_bitmask
						value > 18
					}
					NOT = {
						has_global_flag = {
							flag = flag_league_of_nations_bitmask
							value > 19
						}
					}
				}
				add_ideas = deluge_league_of_nations_member_18
			}
			if = {
				limit = {
					has_global_flag = {
						flag = flag_league_of_nations_bitmask
						value > 19
					}
					NOT = {
						has_global_flag = {
							flag = flag_league_of_nations_bitmask
							value > 20
						}
					}
				}
				add_ideas = deluge_league_of_nations_member_19
			}
			if = {
				limit = {
					has_global_flag = {
						flag = flag_league_of_nations_bitmask
						value > 20
					}
					NOT = {
						has_global_flag = {
							flag = flag_league_of_nations_bitmask
							value > 21
						}
					}
				}
				add_ideas = deluge_league_of_nations_member_20
			}
			if = {
				limit = {
					has_global_flag = {
						flag = flag_league_of_nations_bitmask
						value > 21
					}
					NOT = {
						has_global_flag = {
							flag = flag_league_of_nations_bitmask
							value > 22
						}
					}
				}
				add_ideas = deluge_league_of_nations_member_21
			}
			if = {
				limit = {
					has_global_flag = {
						flag = flag_league_of_nations_bitmask
						value > 22
					}
					NOT = {
						has_global_flag = {
							flag = flag_league_of_nations_bitmask
							value > 23
						}
					}
				}
				add_ideas = deluge_league_of_nations_member_22
			}
			if = {
				limit = {
					has_global_flag = {
						flag = flag_league_of_nations_bitmask
						value > 23
					}
					NOT = {
						has_global_flag = {
							flag = flag_league_of_nations_bitmask
							value > 24
						}
					}
				}
				add_ideas = deluge_league_of_nations_member_23
			}
			if = {
				limit = {
					has_global_flag = {
						flag = flag_league_of_nations_bitmask
						value > 24
					}
					NOT = {
						has_global_flag = {
							flag = flag_league_of_nations_bitmask
							value > 25
						}
					}
				}
				add_ideas = deluge_league_of_nations_member_24
			}
			if = {
				limit = {
					has_global_flag = {
						flag = flag_league_of_nations_bitmask
						value > 25
					}
					NOT = {
						has_global_flag = {
							flag = flag_league_of_nations_bitmask
							value > 26
						}
					}
				}
				add_ideas = deluge_league_of_nations_member_25
			}
			if = {
				limit = {
					has_global_flag = {
						flag = flag_league_of_nations_bitmask
						value > 26
					}
					NOT = {
						has_global_flag = {
							flag = flag_league_of_nations_bitmask
							value > 27
						}
					}
				}
				add_ideas = deluge_league_of_nations_member_26
			}
			if = {
				limit = {
					has_global_flag = {
						flag = flag_league_of_nations_bitmask
						value > 27
					}
					NOT = {
						has_global_flag = {
							flag = flag_league_of_nations_bitmask
							value > 28
						}
					}
				}
				add_ideas = deluge_league_of_nations_member_27
			}
			if = {
				limit = {
					has_global_flag = {
						flag = flag_league_of_nations_bitmask
						value > 28
					}
					NOT = {
						has_global_flag = {
							flag = flag_league_of_nations_bitmask
							value > 29
						}
					}
				}
				add_ideas = deluge_league_of_nations_member_28
			}
			if = {
				limit = {
					has_global_flag = {
						flag = flag_league_of_nations_bitmask
						value > 29
					}
					NOT = {
						has_global_flag = {
							flag = flag_league_of_nations_bitmask
							value > 30
						}
					}
				}
				add_ideas = deluge_league_of_nations_member_29
			}
			if = {
				limit = {
					has_global_flag = {
						flag = flag_league_of_nations_bitmask
						value > 30
					}
					NOT = {
						has_global_flag = {
							flag = flag_league_of_nations_bitmask
							value > 31
						}
					}
				}
				add_ideas = deluge_league_of_nations_member_30
			}
			if = {
				limit = {
					has_global_flag = {
						flag = flag_league_of_nations_bitmask
						value > 31
					}
				}
				add_ideas = deluge_league_of_nations_member_31
			}
		}
		ai_will_do = {
			factor = 1

			modifier = {
				factor = 0.75
				date < 1937.1.1
			}
			
			modifier = {
				factor = 0.75
				date < 1938.1.1
			}
			
			modifier = {
				factor = 0.75
				date < 1939.1.1
			}
			
			modifier = {
				factor = 0.75
				threat > 25
			}
			
			modifier = {
				factor = 0.75
				threat > 50
			}
			
			modifier = {
				factor = 0.5
				is_subject = yes
			}
			
			modifier = {
				factor = 0
				is_subject = yes
				any_country = {
					ROOT = {
						is_subject_of = PREV
					}
					NOT = {
						OR = {
							has_idea = deluge_league_of_nations_prospective_member
							has_idea = deluge_league_of_nations_lapsing_member
							has_idea = deluge_league_of_nations_member_1
							has_idea = deluge_league_of_nations_member_2
							has_idea = deluge_league_of_nations_member_3
							has_idea = deluge_league_of_nations_member_4
							has_idea = deluge_league_of_nations_member_5
							has_idea = deluge_league_of_nations_member_6
							has_idea = deluge_league_of_nations_member_7
							has_idea = deluge_league_of_nations_member_8
							has_idea = deluge_league_of_nations_member_9
							has_idea = deluge_league_of_nations_member_10
							has_idea = deluge_league_of_nations_member_11
							has_idea = deluge_league_of_nations_member_12
							has_idea = deluge_league_of_nations_member_13
							has_idea = deluge_league_of_nations_member_14
							has_idea = deluge_league_of_nations_member_15
							has_idea = deluge_league_of_nations_member_16
							has_idea = deluge_league_of_nations_member_17
							has_idea = deluge_league_of_nations_member_18
							has_idea = deluge_league_of_nations_member_19
							has_idea = deluge_league_of_nations_member_20
							has_idea = deluge_league_of_nations_member_21
							has_idea = deluge_league_of_nations_member_22
							has_idea = deluge_league_of_nations_member_23
							has_idea = deluge_league_of_nations_member_24
							has_idea = deluge_league_of_nations_member_25
							has_idea = deluge_league_of_nations_member_26
							has_idea = deluge_league_of_nations_member_27
							has_idea = deluge_league_of_nations_member_28
							has_idea = deluge_league_of_nations_member_29
							has_idea = deluge_league_of_nations_member_30
							has_idea = deluge_league_of_nations_member_31
						}
					}
				}
			}
			modifier = {
				factor = 0.5
				is_in_faction = yes
				NOT = { is_in_faction_with = FRA }
			}
			modifier = {
				factor = 2
				is_in_faction_with = FRA
			}
			modifier = {
				factor = 2
				has_government = democratic
			}
			modifier = {
				factor = 0.5
				has_government = fascism
			}
		}
	}
	
	focus = {
		id = turkey_league_leave
		icon = GFX_focus_league_of_nations
		prerequisite = { focus = turkey_league_ratification }
		available = {
			NOT = { has_global_flag = flag_league_of_nations_disbanded }
		}
		x = 9
		y = 1
		available_if_capitulated = yes
		cost = 5
		completion_reward = {
			add_political_power = 80
			
			if = {
				limit = {
					is_major = yes
				}
				add_named_threat = { threat = 1 name = deluge_left_league_of_nations_threat }
			}
		
			remove_from_tech_sharing_group = deluge_league_of_nations_tech_group
			
			remove_ideas = deluge_league_of_nations_member_0
			
			hidden_effect = {
				news_event = deluge_league.29
				remove_ideas = deluge_league_of_nations_prospective_member
				remove_ideas = deluge_league_of_nations_member_1
				remove_ideas = deluge_league_of_nations_member_2
				remove_ideas = deluge_league_of_nations_member_3
				remove_ideas = deluge_league_of_nations_member_4
				remove_ideas = deluge_league_of_nations_member_5
				remove_ideas = deluge_league_of_nations_member_6
				remove_ideas = deluge_league_of_nations_member_7
				remove_ideas = deluge_league_of_nations_member_8
				remove_ideas = deluge_league_of_nations_member_9
				remove_ideas = deluge_league_of_nations_member_10
				remove_ideas = deluge_league_of_nations_member_11
				remove_ideas = deluge_league_of_nations_member_12
				remove_ideas = deluge_league_of_nations_member_13
				remove_ideas = deluge_league_of_nations_member_14
				remove_ideas = deluge_league_of_nations_member_15
				remove_ideas = deluge_league_of_nations_member_16
				remove_ideas = deluge_league_of_nations_member_17
				remove_ideas = deluge_league_of_nations_member_18
				remove_ideas = deluge_league_of_nations_member_19
				remove_ideas = deluge_league_of_nations_member_20
				remove_ideas = deluge_league_of_nations_member_21
				remove_ideas = deluge_league_of_nations_member_22
				remove_ideas = deluge_league_of_nations_member_23
				remove_ideas = deluge_league_of_nations_member_24
				remove_ideas = deluge_league_of_nations_member_25
				remove_ideas = deluge_league_of_nations_member_26
				remove_ideas = deluge_league_of_nations_member_27
				remove_ideas = deluge_league_of_nations_member_28
				remove_ideas = deluge_league_of_nations_member_29
				remove_ideas = deluge_league_of_nations_member_30
				remove_ideas = deluge_league_of_nations_member_31
			}
		}
		ai_will_do = {
			factor = 1
			
			modifier = {
				factor = 0
				is_in_faction_with = FRA
			}
			modifier = {
				factor = 0
				is_subject = yes
				any_country = {
					ROOT = {
						is_subject_of = PREV
					}
					is_in_tech_sharing_group = deluge_league_of_nations_tech_group
				}
			}
			modifier = {
				factor = 0.5
				has_government = democratic
			}
			modifier = {
				factor = 0
				has_war = no
			}
			modifier = {
				factor = 0
				NOT = {
					any_enemy_country = {
						is_in_tech_sharing_group = deluge_league_of_nations_tech_group
					}
				}
			}
			modifier = {
				factor = 2
				any_enemy_country = {
					is_major = yes
				}
			}
		}
	}	
	
	# Economic/industrial
	
	shared_focus = deluge_architects
	
	shared_focus = deluge_resource_efficiency
	
	shared_focus = deluge_infrastructure
	
	shared_focus = deluge_electronics_research
	
	# Military

	shared_focus = deluge_naval_infrastructure
	
	shared_focus = deluge_great_war_lessons
	
	shared_focus = deluge_aircraft_industry
	
}