focus_tree = {
	id = deluge_france_focus
	
	country = {
		factor = 0
		
		modifier = {
			add = 10
			original_tag = FRA
		}
	}
	
	default = no
	reset_on_civilwar = yes
	
	# Social/political
	
	focus = {
		id = france_deluge_meritocracy
		icon = GFX_goal_generic_production2
		mutually_exclusive = { focus = france_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 = france_deluge_aristocracy
		icon = "GFX_goal_generic_air_doctrine"
		mutually_exclusive = { focus = france_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 = france_deluge_popular_sovereignty
		icon = "GFX_goal_support_democracy"
		prerequisite = { focus = france_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 = france_depose_monarch
		icon = GFX_goal_generic_war_with_comintern
		prerequisite = { focus = france_deluge_popular_sovereignty }
		available = {
			has_idea = emperor_napoleon
			NOT = { has_government = neutrality }
		}
		x = 1
		y = 2
		available_if_capitulated = yes
		cost = 10
		completion_reward = {
			add_political_power = 150
			if = {
				limit = {
					has_idea = emperor_napoleon
				}
				remove_ideas = emperor_napoleon
			}
			
			hidden_effect = {
				if = {
					limit = {
						NOT = { has_cosmetic_tag = FRA_DARK }
					}
					set_cosmetic_tag = FRA_REPUB
				}
				if = {
					limit = {
						has_cosmetic_tag = FRA_DARK
					}
					set_cosmetic_tag = FRA_DARK_REPUB
				}
			}
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				OR = {
					has_government = democratic
					has_government = neutrality
					has_government = fascism
				}
			}
		}
	}

	focus = {
		id = france_deluge_divine_right
		icon = GFX_focus_rom_royal_dictatorship
		prerequisite = { focus = france_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 = france_deluge_individualism
		icon = GFX_goal_generic_demand_territory
		mutually_exclusive = { focus = france_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 = france_deluge_corporatism
		icon = GFX_goal_generic_political_pressure
		mutually_exclusive = { focus = france_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 = france_deluge_pluralism
		icon = "GFX_goal_generic_national_unity"
		prerequisite = { focus = france_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 = france_deluge_leader_cult
		icon = "GFX_goal_support_fascism"
		prerequisite = { focus = france_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 = france_deluge_youth_organisations
		icon = "GFX_goal_generic_position_armies"
		prerequisite = { focus = france_deluge_leader_cult focus = france_deluge_pluralism focus = france_deluge_divine_right focus = france_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 = france_deluge_land_reform
		icon = "GFX_goal_support_communism"
		prerequisite = { focus = france_deluge_youth_organisations }
		mutually_exclusive = { focus = france_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 = france_deluge_manorialism
		icon = GFX_focus_hun_elect_a_king
		prerequisite = { focus = france_deluge_youth_organisations }
		mutually_exclusive = { focus = france_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 = france_deluge_fraternal_nations
		icon = GFX_goal_anschluss
		prerequisite = { focus = france_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 = france_deluge_dynastic_politics
		icon = GFX_goal_tfv_strengthen_commonwealth_ties
		prerequisite = { focus = france_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 = france_deluge_police_consent
		icon = GFX_goal_molotov_ribbentrop_pact
		prerequisite = { focus = france_deluge_youth_organisations }
		mutually_exclusive = { focus = france_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 = france_deluge_secret_police
		icon = GFX_goal_generic_secret_weapon
		prerequisite = { focus = france_deluge_youth_organisations }
		mutually_exclusive = { focus = france_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 = france_deluge_judiciary
		icon = "GFX_goal_generic_neutrality_focus"
		prerequisite = { focus = france_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 = france_deluge_state_terror
		icon = GFX_focus_boot_scales
		prerequisite = { focus = france_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 = france_deluge_national_unity
		icon = GFX_goal_generic_propaganda
		prerequisite = { focus = france_deluge_fraternal_nations focus = france_deluge_dynastic_politics focus = france_deluge_judiciary focus = france_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 = france_league_of_nations
		icon = GFX_focus_league_of_nations
		available = {
			is_faction_leader = yes
			has_war = no
		}
		x = 10
		y = 0
		available_if_capitulated = yes
		cost = 5
		completion_reward = {
		
			hidden_effect = {
				set_global_flag = flag_league_of_nations_bitmask
				news_event = deluge_league.1
			}
			
			# 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
			
			add_political_power = 80
			add_ideas = deluge_league_of_nations_prospective_member
		}
		ai_will_do = {
			factor = 10
		}
	}
	
	focus = {
		id = france_league_prohibit_poison_gas
		icon = GFX_focus_league_of_nations
		prerequisite = { focus = france_league_of_nations }
		available = {
			is_faction_leader = yes
			has_war = no
		}
		x = 10
		y = 2
		available_if_capitulated = yes
		cost = 3
		completion_reward = {
			add_political_power = 80
			
			custom_effect_tooltip = tooltip_league_voting_lasts_3_months
			
			hidden_effect = {
				news_event = deluge_league.13
				set_global_flag = flag_league_prohibit_poison_gas_ayes
				set_global_flag = flag_league_prohibit_poison_gas_nays
				country_event = { days = 90 id = deluge_league.15 }
				if = {
					limit = {
						has_completed_focus = france_league_relief_union
						has_completed_focus = france_league_maritime_protections
					}
					country_event = { days = 15 id = deluge_league.32 }
				}
			}
		}
		ai_will_do = {
			factor = 5
		}
	}
	
	focus = {
		id = france_league_international_court
		icon = GFX_focus_league_of_nations
		prerequisite = { focus = france_league_of_nations }
		available = {
			is_faction_leader = yes
			has_war = no
		}
		x = 9
		y = 1
		available_if_capitulated = yes
		cost = 3
		completion_reward = {
			add_political_power = 80
			
			custom_effect_tooltip = tooltip_league_voting_lasts_3_months
			
			hidden_effect = {
				news_event = deluge_league.3
				set_global_flag = flag_league_international_court_ayes
				set_global_flag = flag_league_international_court_nays
				country_event = { days = 90 id = deluge_league.5 }
			}
		}
		ai_will_do = {
			factor = 5
		}
	}
	focus = {
		id = france_league_relief_union
		icon = GFX_focus_league_of_nations
		prerequisite = { focus = france_league_international_court }
		available = {
			is_faction_leader = yes
			has_war = no
			has_global_flag = flag_league_international_court_vote_concluded
		}
		x = 9
		y = 3
		available_if_capitulated = yes
		cost = 3
		completion_reward = {
			add_political_power = 80
			
			custom_effect_tooltip = tooltip_league_voting_lasts_3_months
			
			hidden_effect = {
				news_event = deluge_league.8
				set_global_flag = flag_league_relief_union_ayes
				set_global_flag = flag_league_relief_union_nays
				country_event = { days = 90 id = deluge_league.10 }
				if = {
					limit = {
						has_completed_focus = france_league_prohibit_poison_gas
						has_completed_focus = france_league_maritime_protections
					}
					country_event = { days = 15 id = deluge_league.32 }
				}
			}
		}
		ai_will_do = {
			factor = 5
		}
	}
	
	focus = {
		id = france_league_prisoners_of_war
		icon = GFX_focus_league_of_nations
		prerequisite = { focus = france_league_of_nations }
		available = {
			is_faction_leader = yes
			has_war = no
		}
		x = 11
		y = 1
		available_if_capitulated = yes
		cost = 3
		completion_reward = {
			add_political_power = 80
			
			custom_effect_tooltip = tooltip_league_voting_lasts_3_months
			
			hidden_effect = {
				news_event = deluge_league.18
				set_global_flag = flag_league_prisoners_of_war_ayes
				set_global_flag = flag_league_prisoners_of_war_nays
				country_event = { days = 90 id = deluge_league.20 }
			}
		}
		ai_will_do = {
			factor = 5
		}
	}
	
	focus = {
		id = france_league_maritime_protections
		icon = GFX_focus_league_of_nations
		prerequisite = { focus = france_league_prisoners_of_war }
		available = {
			is_faction_leader = yes
			has_war = no
			has_global_flag = flag_league_prisoners_of_war_vote_concluded
		}
		x = 11
		y = 3
		available_if_capitulated = yes
		cost = 3
		completion_reward = {
			add_political_power = 80
			
			custom_effect_tooltip = tooltip_league_voting_lasts_3_months
			
			hidden_effect = {
				news_event = deluge_league.23
				set_global_flag = flag_league_maritime_protections_ayes
				set_global_flag = flag_league_maritime_protections_nays
				country_event = { days = 90 id = deluge_league.25 }
				if = {
					limit = {
						has_completed_focus = france_league_relief_union
						has_completed_focus = france_league_prohibit_poison_gas
					}
					country_event = { days = 15 id = deluge_league.32 }
				}
			}
		}
		ai_will_do = {
			factor = 5
		}
	}
	
	focus = {
		id = france_league_ratification
		icon = GFX_focus_league_of_nations
		prerequisite = { focus = france_league_relief_union }
		prerequisite = { focus = france_league_prohibit_poison_gas }
		prerequisite = { focus = france_league_maritime_protections }
		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 = 10
		y = 4
		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
				}
				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 = 5
			
			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 = france_league_leave
		icon = GFX_focus_league_of_nations
		prerequisite = { focus = france_league_ratification }
		available = {
			NOT = { has_global_flag = flag_league_of_nations_disbanded }
		}
		x = 10
		y = 5
		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 = 0
		}
	}
	
	focus = {
		id = france_punish_britain
		icon = GFX_goal_generic_major_war
		prerequisite = { focus = france_deluge_national_unity }
		available = {
			country_exists = ENG
			ENG = { has_added_tension_amount > 20 }
			NOT = { is_in_faction_with = ENG }
			is_subject = no
		}
		x = 1
		y = 6
		available_if_capitulated = yes
		cost = 10
		completion_reward = {
			create_wargoal = {
				type = puppet_wargoal_focus
				target = ENG
			}
			news_event = deluge_france.3
		}
		ai_will_do = {
			factor = 5
			modifier = {
				factor = 0.1
				has_war = yes
			}
			modifier = {
				factor = 0.1
				any_enemy_country = {
					is_major = yes
				}
			}
			modifier = {
				factor = 2
				ENG = { has_added_tension_amount > 25 }
			}
			modifier = {
				factor = 2
				ENG = { has_added_tension_amount > 30 }
			}
			modifier = {
				factor = 2
				ENG = { has_added_tension_amount > 35 }
			}
			modifier = {
				factor = 0.5
				any_country = {
					ROOT = {
						has_wargoal_against = PREV
					}
				}
			}
			modifier = {
				factor = 2
				is_historical_focus_on = yes
			}
		}
		will_lead_to_war_with = ENG
	}

	focus = {
		id = france_punish_poland
		icon = GFX_goal_generic_major_war
		prerequisite = { focus = france_deluge_national_unity }
		available = {
			country_exists = POL
			POL = { has_added_tension_amount > 20 }
			NOT = { is_in_faction_with = POL }
			is_subject = no
		}
		x = 3
		y = 6
		available_if_capitulated = yes
		cost = 10
		completion_reward = {
			create_wargoal = {
				type = puppet_wargoal_focus
				target = POL
			}
			news_event = deluge_france.4
		}
		ai_will_do = {
			factor = 5
			modifier = {
				factor = 0.1
				has_war = yes
			}
			modifier = {
				factor = 0.1
				any_enemy_country = {
					is_major = yes
				}
			}
			modifier = {
				factor = 2
				POL = { has_added_tension_amount > 25 }
			}
			modifier = {
				factor = 2
				POL = { has_added_tension_amount > 30 }
			}
			modifier = {
				factor = 2
				POL = { has_added_tension_amount > 35 }
			}
			modifier = {
				factor = 0.5
				any_country = {
					ROOT = {
						has_wargoal_against = PREV
					}
				}
			}
			modifier = {
				factor = 2
				is_historical_focus_on = yes
			}
		}
		will_lead_to_war_with = POL
	}

	focus = {
		id = france_punish_russia
		icon = GFX_goal_generic_major_war
		prerequisite = { focus = france_deluge_national_unity }
		available = {
			country_exists = SOV
			SOV = { has_added_tension_amount > 20 }
			NOT = { is_in_faction_with = SOV }
			is_subject = no
		}
		x = 5
		y = 6
		available_if_capitulated = yes
		cost = 10
		completion_reward = {
			create_wargoal = {
				type = puppet_wargoal_focus
				target = SOV
			}
			news_event = deluge_france.5
		}
		ai_will_do = {
			factor = 5
			modifier = {
				factor = 0.1
				has_war = yes
			}
			modifier = {
				factor = 0.1
				any_enemy_country = {
					is_major = yes
				}
			}
			modifier = {
				factor = 2
				SOV = { has_added_tension_amount > 25 }
			}
			modifier = {
				factor = 2
				SOV = { has_added_tension_amount > 30 }
			}
			modifier = {
				factor = 2
				SOV = { has_added_tension_amount > 35 }
			}
			modifier = {
				factor = 0.5
				any_country = {
					ROOT = {
						has_wargoal_against = PREV
					}
				}
			}
			modifier = {
				factor = 2
				is_historical_focus_on = yes
			}
		}
		will_lead_to_war_with = SOV
	}

	focus = {
		id = france_punish_japan
		icon = GFX_goal_generic_major_war
		prerequisite = { focus = france_deluge_national_unity }
		available = {
			country_exists = JAP
			JAP = { has_added_tension_amount > 20 }
			NOT = { is_in_faction_with = JAP }
			is_subject = no
		}
		x = 7
		y = 6
		available_if_capitulated = yes
		cost = 10
		completion_reward = {
			create_wargoal = {
				type = puppet_wargoal_focus
				target = JAP
			}
			news_event = deluge_france.6
		}
		ai_will_do = {
			factor = 5
			modifier = {
				factor = 0.1
				has_war = yes
			}
			modifier = {
				factor = 0.1
				any_enemy_country = {
					is_major = yes
				}
			}
			modifier = {
				factor = 2
				JAP = { has_added_tension_amount > 25 }
			}
			modifier = {
				factor = 2
				JAP = { has_added_tension_amount > 30 }
			}
			modifier = {
				factor = 2
				JAP = { has_added_tension_amount > 35 }
			}
			modifier = {
				factor = 0.5
				any_country = {
					ROOT = {
						has_wargoal_against = PREV
					}
				}
			}
			modifier = {
				factor = 2
				is_historical_focus_on = yes
			}
		}
		will_lead_to_war_with = JAP
	}

	focus = {
		id = france_punish_america
		icon = GFX_goal_generic_major_war
		prerequisite = { focus = france_deluge_national_unity }
		available = {
			country_exists = USA
			USA = { has_added_tension_amount > 20 }
			NOT = { is_in_faction_with = USA }
			is_subject = no
		}
		x = 2
		y = 7
		available_if_capitulated = yes
		cost = 10
		completion_reward = {
			create_wargoal = {
				type = puppet_wargoal_focus
				target = USA
			}
			news_event = deluge_france.7
		}
		ai_will_do = {
			factor = 5
			modifier = {
				factor = 0.1
				has_war = yes
			}
			modifier = {
				factor = 0.1
				any_enemy_country = {
					is_major = yes
				}
			}
			modifier = {
				factor = 2
				USA = { has_added_tension_amount > 25 }
			}
			modifier = {
				factor = 2
				USA = { has_added_tension_amount > 30 }
			}
			modifier = {
				factor = 2
				USA = { has_added_tension_amount > 35 }
			}
			modifier = {
				factor = 0.5
				any_country = {
					ROOT = {
						has_wargoal_against = PREV
					}
				}
			}
			modifier = {
				factor = 2
				is_historical_focus_on = yes
			}
		}
		will_lead_to_war_with = USA
	}

	focus = {
		id = france_punish_turkey
		icon = GFX_goal_generic_major_war
		prerequisite = { focus = france_deluge_national_unity }
		available = {
			country_exists = TUR
			TUR = { has_added_tension_amount > 20 }
			NOT = { is_in_faction_with = TUR }
			is_subject = no
		}
		x = 4
		y = 7
		available_if_capitulated = yes
		cost = 10
		completion_reward = {
			create_wargoal = {
				type = puppet_wargoal_focus
				target = TUR
			}
			news_event = deluge_france.8
		}
		ai_will_do = {
			factor = 5
			modifier = {
				factor = 0.1
				has_war = yes
			}
			modifier = {
				factor = 0.1
				any_enemy_country = {
					is_major = yes
				}
			}
			modifier = {
				factor = 2
				TUR = { has_added_tension_amount > 25 }
			}
			modifier = {
				factor = 2
				TUR = { has_added_tension_amount > 30 }
			}
			modifier = {
				factor = 2
				TUR = { has_added_tension_amount > 35 }
			}
			modifier = {
				factor = 0.5
				any_country = {
					ROOT = {
						has_wargoal_against = PREV
					}
				}
			}
			modifier = {
				factor = 2
				is_historical_focus_on = yes
			}
		}
		will_lead_to_war_with = TUR
	}

	focus = {
		id = france_punish_austria
		icon = GFX_goal_generic_major_war
		prerequisite = { focus = france_deluge_national_unity }
		available = {
			country_exists = AUS
			AUS = { has_added_tension_amount > 20 }
			NOT = { is_in_faction_with = AUS }
			is_subject = no
		}
		x = 6
		y = 7
		available_if_capitulated = yes
		cost = 10
		completion_reward = {
			create_wargoal = {
				type = puppet_wargoal_focus
				target = AUS
			}
			news_event = deluge_france.9
		}
		ai_will_do = {
			factor = 5
			modifier = {
				factor = 0.1
				has_war = yes
			}
			modifier = {
				factor = 0.1
				any_enemy_country = {
					is_major = yes
				}
			}
			modifier = {
				factor = 2
				AUS = { has_added_tension_amount > 25 }
			}
			modifier = {
				factor = 2
				AUS = { has_added_tension_amount > 30 }
			}
			modifier = {
				factor = 2
				AUS = { has_added_tension_amount > 35 }
			}
			modifier = {
				factor = 0.5
				any_country = {
					ROOT = {
						has_wargoal_against = PREV
					}
				}
			}
			modifier = {
				factor = 2
				is_historical_focus_on = yes
			}
		}
		will_lead_to_war_with = AUS
	}
	
	focus = {
		id = france_punish_germany
		icon = GFX_goal_generic_major_war
		prerequisite = { focus = france_deluge_national_unity }
		available = {
			is_subject = no
			OR = {
				AND = {
					country_exists = GER
					GER = { has_added_tension_amount > 20 }
					NOT = { is_in_faction_with = GER }
				}
				AND = {
					country_exists = WGR
					WGR = { has_added_tension_amount > 20 }
					NOT = { is_in_faction_with = WGR }
				}
				AND = {
					country_exists = DDR
					DDR = { has_added_tension_amount > 20 }
					NOT = { is_in_faction_with = DDR }
				}
			}
		}
		x = 8
		y = 7
		available_if_capitulated = yes
		cost = 10
		completion_reward = {
			news_event = deluge_france.23

			if = {
				limit = {
					country_exists = GER
					NOT = {
						is_in_faction_with = GER
					}
				}
				create_wargoal = {
					type = puppet_wargoal_focus
					target = GER
				}
			}
			if = {
				limit = {
					country_exists = WGR
					NOT = {
						is_in_faction_with = WGR
					}
				}
				create_wargoal = {
					type = puppet_wargoal_focus
					target = WGR
				}
			}
			if = {
				limit = {
					country_exists = DDR
					NOT = {
						is_in_faction_with = DDR
					}
				}
				create_wargoal = {
					type = puppet_wargoal_focus
					target = DDR
				}
			}
		}
		ai_will_do = {
			factor = 5
			modifier = {
				factor = 0.1
				has_war = yes
			}
			modifier = {
				factor = 0.1
				any_enemy_country = {
					is_major = yes
				}
			}
			modifier = {
				factor = 2
				OR = {
					GER = { has_added_tension_amount > 25 }
					WGR = { has_added_tension_amount > 25 }
					DDR = { has_added_tension_amount > 25 }
				}
			}
			modifier = {
				factor = 2
				OR = {
					GER = { has_added_tension_amount > 30 }
					WGR = { has_added_tension_amount > 30 }
					DDR = { has_added_tension_amount > 30 }
				}
			}
			modifier = {
				factor = 2
				OR = {
					GER = { has_added_tension_amount > 35 }
					WGR = { has_added_tension_amount > 35 }
					DDR = { has_added_tension_amount > 35 }
				}
			}
			modifier = {
				factor = 0.5
				any_country = {
					ROOT = {
						has_wargoal_against = PREV
					}
				}
			}
			modifier = {
				factor = 2
				is_historical_focus_on = yes
			}
		}
		will_lead_to_war_with = GER
		will_lead_to_war_with = WGR
		will_lead_to_war_with = DDR
	}

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