focus_tree = {
	id = radical_focus
	
	country = {
		factor = 0
		
		modifier = {
			add = 10
			original_tag = BAL
		}
		modifier = {
			add = 10
			original_tag = BLR
		}
		modifier = {
			add = 10
			original_tag = CAU
		}
		modifier = {
			add = 10
			original_tag = UKR
		}
		modifier = {
			add = 10
			original_tag = CAN
		}
		modifier = {
			add = 10
			original_tag = FRR
		}
	}
	
	default = no
	reset_on_civilwar = yes
	
	focus = {
		id = radical_deluge_new_bureaucracy
		icon = GFX_goal_generic_production2
		available_if_capitulated = yes
		cost = 10
		mutually_exclusive = {
			focus = radical_deluge_old_bureaucracy
		}
		x = 1
		y = 0
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				NOT = { has_government = communism }
			}
			modifier = {
				factor = 0
				date < 1936.5.15
			}
			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
				}
			}
		}
		completion_reward = {
			add_ideas = deluge_new_bureaucracy_idea
		}
	}
	
	focus = {
		id = radical_deluge_old_bureaucracy
		icon = GFX_focus_generic_diplomatic_treaty
		available_if_capitulated = yes
		cost = 10
		mutually_exclusive = {
			focus = radical_deluge_new_bureaucracy
		}
		x = 3
		y = 0
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_government = communism
			}
			modifier = {
				factor = 0
				date < 1936.5.15
			}
			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
				}
			}
		}
		completion_reward = {
			add_political_power = 200
			add_ideas = deluge_old_bureaucracy_idea
		}
	}
	
	focus = {
		id = radical_deluge_communes
		icon = GFX_goal_generic_construction2
		available_if_capitulated = yes
		cost = 10
		mutually_exclusive = {
			focus = radical_deluge_collectives
			focus = radical_deluge_cooperatives
		}
		x = 9
		y = 0
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				OR = {
					has_government = communism
					has_government = democratic
				}
			}
			modifier = {
				factor = 0
				date < 1936.5.15
			}
		}
		completion_reward = {
			add_ideas = deluge_communes_idea
		}
	}
	
	focus = {
		id = radical_deluge_collectives
		icon = GFX_goal_generic_soviet_construction
		available_if_capitulated = yes
		cost = 10
		mutually_exclusive = {
			focus = radical_deluge_communes
			focus = radical_deluge_cooperatives
		}
		x = 5
		y = 0
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				OR = {
					has_government = democratic
					has_government = neutrality
				}
			}
			modifier = {
				factor = 0
				date < 1936.5.15
			}
		}
		completion_reward = {
			add_ideas = deluge_collectives_idea
		}
	}
	
	focus = {
		id = radical_deluge_cooperatives
		icon = GFX_goal_generic_construct_civilian
		available_if_capitulated = yes
		cost = 10
		mutually_exclusive = {
			focus = radical_deluge_collectives
			focus = radical_deluge_communes
		}
		x = 7
		y = 0
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				OR = {
					has_government = communism
					has_government = neutrality
				}
			}
			modifier = {
				factor = 0
				date < 1936.5.15
			}
		}
		completion_reward = {
			add_ideas = deluge_cooperatives_idea
		}
	}
	
	focus = {
		id = radical_deluge_political_purge
		icon = GFX_goal_generic_war_with_comintern
		available_if_capitulated = yes
		cost = 10
		prerequisite = {
			focus = radical_deluge_new_bureaucracy
		}
		x = 1
		y = 1
		ai_will_do = {
			factor = 2
			modifier = {
				factor = 2
				has_war = 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
				}
			}
		}
		completion_reward = {
			add_stability = 0.05
			add_political_power = 150
		}
	}
	focus = {
		id = radical_deluge_glasnost
		icon = GFX_goal_tripartite_pact
		available_if_capitulated = yes
		cost = 10
		prerequisite = {
			focus = radical_deluge_old_bureaucracy
		}
		x = 3
		y = 1
		ai_will_do = {
			factor = 2
			modifier = {
				factor = 2
				has_war = 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
				}
			}
		}
		completion_reward = {
			add_stability = 0.05
			add_political_power = 150
		}
	}

	focus = {
		id = radical_deluge_industrial_cartels
		icon = GFX_goal_generic_construct_civ_factory
		available_if_capitulated = yes
		cost = 10
		prerequisite = {
			focus = radical_deluge_collectives
			focus = radical_deluge_cooperatives
			focus = radical_deluge_communes
		}
		mutually_exclusive = {
			focus = radical_deluge_new_economic_policy
			focus = radical_deluge_synarchism
		}
		x = 5
		y = 1
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				OR = {
					has_government = fascism
					has_government = democratic
				}
			}
		}
		completion_reward = {
			add_ideas = deluge_industrial_cartels_idea
		}
	}
	focus = {
		id = radical_deluge_synarchism
		icon = GFX_goal_generic_national_unity
		available_if_capitulated = yes
		cost = 10
		prerequisite = {
			focus = radical_deluge_communes
			focus = radical_deluge_cooperatives
			focus = radical_deluge_collectives
		}
		mutually_exclusive = {
			focus = radical_deluge_new_economic_policy
			focus = radical_deluge_industrial_cartels
		}
		x = 9
		y = 1
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				OR = {
					has_government = communism
					has_government = democratic
				}
			}
		}
		completion_reward = {
			add_ideas = deluge_synarchism_idea
		}
	}
	
	focus = {
		id = radical_deluge_new_economic_policy
		icon = GFX_goal_generic_trade
		available_if_capitulated = yes
		cost = 10
		prerequisite = {
			focus = radical_deluge_cooperatives
			focus = radical_deluge_collectives
			focus = radical_deluge_communes
		}
		mutually_exclusive = {
			focus = radical_deluge_industrial_cartels
			focus = radical_deluge_synarchism
		}
		x = 7
		y = 1
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				OR = {
					has_government = communism
					has_government = fascism
				}
			}
		}
		completion_reward = {
			add_ideas = deluge_new_economic_policy_idea
		}
	}
	
	focus = {
		id = radical_deluge_politburo
		icon = GFX_focus_generic_soviet_politics
		available_if_capitulated = yes
		cost = 10
		prerequisite = {
			focus = radical_deluge_synarchism
			focus = radical_deluge_new_economic_policy
			focus = radical_deluge_glasnost
			focus = radical_deluge_political_purge
			focus = radical_deluge_industrial_cartels
		}
		x = 5
		y = 2
		ai_will_do = {
			factor = 1
		}
		completion_reward = {
			add_ideas = deluge_politburo_idea
		}
	}
	
	focus = {
		id = radical_deluge_party_run_courts
		icon = GFX_focus_boot_scales
		available_if_capitulated = yes
		cost = 10
		prerequisite = {
			focus = radical_deluge_politburo
		}
		mutually_exclusive = {
			focus = radical_deluge_independent_courts
		}
		x = 1
		y = 3
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_government = democratic
			}
		}
		completion_reward = {
			add_ideas = deluge_party_run_courts_idea
		}
	}
	
	focus = {
		id = radical_deluge_independent_courts
		icon = GFX_goal_generic_neutrality_focus
		available_if_capitulated = yes
		cost = 10
		prerequisite = {
			focus = radical_deluge_politburo
		}
		mutually_exclusive = {
			focus = radical_deluge_party_run_courts
		}
		x = 3
		y = 3
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				NOT = { has_government = democratic }
			}
		}
		completion_reward = {
			add_ideas = deluge_independent_courts_idea
		}
	}
	
	focus = {
		id = radical_deluge_women_in_the_workforce
		icon = GFX_focus_generic_support_the_left_right
		available_if_capitulated = yes
		cost = 10
		prerequisite = {
			focus = radical_deluge_politburo
		}
		x = 5
		y = 3
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 2
				has_government = communism
			}
			modifier = {
				factor = 0.1
				OR = {
					has_government = democratic
					has_government = neutrality
					has_government = fascism
				}
			}
		}
		completion_reward = {
			add_ideas = deluge_women_in_the_workforce_idea
			set_rule = { can_generate_female_aces = yes }
		}
	}
	
	focus = {
		id = radical_deluge_housing_collectives
		icon = GFX_goal_generic_consumer_goods
		available_if_capitulated = yes
		cost = 10
		prerequisite = {
			focus = radical_deluge_women_in_the_workforce
		}
		x = 5
		y = 4
		completion_reward = {
			add_ideas = deluge_housing_collectives
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 2
				has_war = yes
			}
		}
	}
	
	focus = {
		id = radical_deluge_state_run_press
		icon = GFX_goal_generic_forceful_treaty
		available_if_capitulated = yes
		cost = 10
		prerequisite = {
			focus = radical_deluge_party_run_courts
		}
		x = 1
		y = 4
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 2
				has_war = 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
				}
			}
		}
		completion_reward = {
			add_stability = 0.05
			add_political_power = 150
		}
	}
	
	focus = {
		id = radical_deluge_censorship
		icon = GFX_focus_renounce_the_treaty_of_trianon
		available_if_capitulated = yes
		cost = 10
		prerequisite = {
			focus = radical_deluge_independent_courts
		}
		x = 3
		y = 4
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 2
				has_war = 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
				}
			}
		}
		completion_reward = {
			add_stability = 0.05
			add_political_power = 150
		}
	}
	
	focus = {
		id = radical_deluge_universal_education
		icon = GFX_focus_generic_socialist_science
		available_if_capitulated = yes
		cost = 10
		prerequisite = {
			focus = radical_deluge_state_run_press
			focus = radical_deluge_censorship
			focus = radical_deluge_housing_collectives
		}
		x = 3
		y = 5
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 2
				date < 1938.1.1
			}
			modifier = {
				factor = 2
				date < 1940.1.1
			}
		}
		completion_reward = {
			add_ideas = deluge_universal_education_idea
		}
	}
	
	focus = {
		id = radical_deluge_great_leap_forwards
		icon = GFX_goal_generic_soviet_construction
		available_if_capitulated = yes
		cost = 10
		prerequisite = {
			focus = radical_deluge_industrial_cartels
			focus = radical_deluge_new_economic_policy
			focus = radical_deluge_synarchism
		}
		mutually_exclusive = {
			focus = radical_deluge_attract_foreign_credit
		}
		x = 7
		y = 2
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				NOT = { has_government = communism }
			}
		}
			completion_reward = {
					add_ideas = deluge_great_leap_forwards_idea
					random_owned_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 = radical_deluge_autonomy_for_minorities
		icon = GFX_goal_molotov_ribbentrop_pact
		available_if_capitulated = yes
		cost = 10
		prerequisite = {
			focus = radical_deluge_politburo
		}
		mutually_exclusive = {
			focus = radical_deluge_assimilate_minorities
		}
		x = 7
		y = 3
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.1
				NOT = { has_government = communism }
			}
			modifier = {
				factor = 0
				has_government = fascism
			}
		}
		completion_reward = {
			add_ideas = deluge_autonomy_for_minorities_idea
		}
	}
	
	focus = {
		id = radical_deluge_internationalism
		icon = GFX_goal_support_communism
		available_if_capitulated = yes
		cost = 10
		prerequisite = {
			focus = radical_deluge_autonomy_for_minorities
		}
		x = 7
		y = 4
			ai_will_do = {
				factor = 3
			}
		completion_reward = {
		
			add_ideas = deluge_radical_internationalism_idea
				
			if = {
				limit = {
					has_idea = neutrality_idea
				}
				remove_ideas = neutrality_idea
			}
			set_rule = { can_create_factions = yes }
		}
	}
	
	focus = {
		id = radical_deluge_attract_foreign_credit
		icon = GFX_goal_generic_positive_trade_relations
		available_if_capitulated = yes
		cost = 10
		prerequisite = {
			focus = radical_deluge_industrial_cartels
			focus = radical_deluge_new_economic_policy
			focus = radical_deluge_synarchism
		}
		mutually_exclusive = {
			focus = radical_deluge_great_leap_forwards
		}
		x = 9
		y = 2
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_government = communism
			}
		}
			completion_reward = {
					add_ideas = deluge_attract_foreign_credit_idea
					add_tech_bonus = {
							bonus = 1.0
							uses = 1
							name = industrial_bonus
							category = industry
						}
					random_owned_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
								}
						}
				}

	}
	
	focus = {
		id = radical_deluge_assimilate_minorities
		icon = GFX_goal_tfv_saf_anti_colonialist_crusade
		available_if_capitulated = yes
		cost = 10
		prerequisite = {
			focus = radical_deluge_politburo
		}
		mutually_exclusive = {
			focus = radical_deluge_autonomy_for_minorities
		}
		x = 9
		y = 3
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.1
				NOT = { has_government = fascism }
			}
			modifier = {
				factor = 0
				has_government = communism
			}
		}
		completion_reward = {
			add_ideas = deluge_assimilate_minorities_idea
		}
	}
	
	focus = {
		id = radical_deluge_social_patriotism
		icon = GFX_focus_generic_little_entente
		available_if_capitulated = yes
		cost = 10
		prerequisite = {
			focus = radical_deluge_assimilate_minorities
		}
		x = 9
		y = 4
			ai_will_do = {
				factor = 3
			}
		completion_reward = {
		
			add_ideas = deluge_radical_social_patriotism_idea
				
			if = {
				limit = {
					has_idea = neutrality_idea
				}
				remove_ideas = neutrality_idea
			}
			set_rule = { can_create_factions = yes }
		}
	}
	
	focus = {
		id = radical_deluge_tech_sharing
		icon = GFX_focus_generic_join_comintern
		available_if_capitulated = yes
		cost = 10
		prerequisite = {
			focus = radical_deluge_internationalism
			focus = radical_deluge_social_patriotism
		}
		available = {
			has_government = communism
			has_dlc = "Together for Victory"
		}
		x = 8
		y = 5
		ai_will_do = {
			factor = 10
		}
		completion_reward = {
			add_to_tech_sharing_group = deluge_comecon_tech_group
		}
	}
	
	focus = {
		id = radical_deluge_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 = 11
		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 = radical_deluge_league_leave
		icon = GFX_focus_league_of_nations
		prerequisite = { focus = radical_deluge_league_ratification }
		available = {
			NOT = { has_global_flag = flag_league_of_nations_disbanded }
		}
		x = 11
		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
	
}
