focus_tree = {
	id = radical_germany_focus
	
	country = {
		factor = 0
		
		modifier = {
			add = 10
			original_tag = DDR
		}
	}
	
	default = no
	reset_on_civilwar = yes
	
	focus = {
		id = germany_radical_deluge_new_bureaucracy
		icon = GFX_goal_generic_production2
		available_if_capitulated = yes
		cost = 10
		mutually_exclusive = {
			focus = germany_radical_deluge_old_bureaucracy
		}
		x = 1
		y = 0
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 2
				has_government = communism
			}
			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 = germany_radical_deluge_old_bureaucracy
		icon = GFX_focus_generic_diplomatic_treaty
		available_if_capitulated = yes
		cost = 10
		mutually_exclusive = {
			focus = germany_radical_deluge_new_bureaucracy
		}
		x = 3
		y = 0
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 2
				NOT = { has_government = communism }
			}
			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 = germany_radical_deluge_communes
		icon = GFX_goal_generic_construction2
		available_if_capitulated = yes
		cost = 10
		mutually_exclusive = {
			focus = germany_radical_deluge_collectives
			focus = germany_radical_deluge_cooperatives
		}
		x = 9
		y = 0
		ai_will_do = {
		factor = 1
			modifier = {
				factor = 2
				has_government = neutrality
			}
			modifier = {
				factor = 0
				date < 1936.5.15
			}
		}
		completion_reward = {
			add_ideas = deluge_communes_idea
		}
	}
	
	focus = {
		id = germany_radical_deluge_collectives
		icon = GFX_goal_generic_soviet_construction
		available_if_capitulated = yes
		cost = 10
		mutually_exclusive = {
			focus = germany_radical_deluge_communes
			focus = germany_radical_deluge_cooperatives
		}
		x = 5
		y = 0
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 2
				has_government = communism
			}
			modifier = {
				factor = 0
				date < 1936.5.15
			}
		}
		completion_reward = {
			add_ideas = deluge_collectives_idea
		}
	}
	
	focus = {
		id = germany_radical_deluge_architects
		icon = GFX_goal_generic_position_armies
		available_if_capitulated = yes
		cost = 10
		x = 13
		y = 0
			ai_will_do = {
					factor = 1
					modifier = {
							factor = 0.5
							has_war = yes
						}
				}
			completion_reward = {
					add_tech_bonus = {
							bonus = 1.0
							uses = 1
							name = construction_tech
							category = construction_tech
						}
				}

	}
	focus = {
		id = germany_radical_deluge_resource_efficiency
		icon = GFX_goal_generic_construction2
		available_if_capitulated = yes
		cost = 10
		x = 15
		y = 0
			ai_will_do = {
					factor = 1
					modifier = {
							factor = 0.5
							has_war = yes
						}
				}
			completion_reward = {
					add_tech_bonus = {
							bonus = 1.0
							uses = 1
							name = construction_tech
							category = construction_tech
						}
				}

	}
	focus = {
		id = germany_radical_deluge_infrastructure
		icon = GFX_goal_generic_construct_infrastructure
		available_if_capitulated = yes
		cost = 10
		x = 17
		y = 0
			ai_will_do = {
					factor = 1
					modifier = {
							factor = 0.5
							has_war = yes
						}
				}
			completion_reward = {
					random_owned_state = {
							limit = {
									free_building_slots = {
											building = infrastructure
											size > 0
										}
									OR = {
											is_in_home_area = yes
											NOT = {
													owner = {
															any_owned_state = {
																	free_building_slots = {
																			building = infrastructure
																			size > 0
																		}
																	is_in_home_area = yes
																}
														}
												}
										}
								}
							add_building_construction = {
									type = infrastructure
									level = 2
									instant_build = yes
								}
						}
					random_owned_state = {
							limit = {
									free_building_slots = {
											building = infrastructure
											size > 0
										}
									OR = {
											is_in_home_area = yes
											NOT = {
													owner = {
															any_owned_state = {
																	free_building_slots = {
																			building = infrastructure
																			size > 0
																		}
																	is_in_home_area = yes
																}
														}
												}
										}
								}
							add_building_construction = {
									type = infrastructure
									level = 2
									instant_build = yes
								}
						}
					random_owned_state = {
							limit = {
									free_building_slots = {
											building = infrastructure
											size > 0
										}
									OR = {
											is_in_home_area = yes
											NOT = {
													owner = {
															any_owned_state = {
																	free_building_slots = {
																			building = infrastructure
																			size > 0
																		}
																	is_in_home_area = yes
																}
														}
												}
										}
								}
							add_building_construction = {
									type = infrastructure
									level = 2
									instant_build = yes
								}
						}
				}
			bypass = {
					all_owned_state = {
							free_building_slots = {
									building = infrastructure
									size < 1
								}
						}
				}

	}
	focus = {
		id = germany_radical_deluge_electronics_research
		icon = GFX_focus_research
		available_if_capitulated = yes
		cost = 10
		x = 19
		y = 0
			ai_will_do = {
					factor = 1
					modifier = {
							factor = 0.5
							has_war = yes
						}
				}
			completion_reward = {
					add_tech_bonus = {
							bonus = 1.0
							uses = 1
							name = electronics
							category = electronics
						}
				}

	}
	
	focus = {
		id = germany_radical_deluge_cooperatives
		icon = GFX_goal_generic_construct_civilian
		available_if_capitulated = yes
		cost = 10
		mutually_exclusive = {
			focus = germany_radical_deluge_collectives
			focus = germany_radical_deluge_communes
		}
		x = 7
		y = 0
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 2
				has_government = democratic
			}
			modifier = {
				factor = 0
				date < 1936.5.15
			}
		}
		completion_reward = {
			add_ideas = deluge_cooperatives_idea
		}
	}
	
	focus = {
		id = germany_radical_deluge_political_purge
		icon = GFX_goal_generic_war_with_comintern
		available_if_capitulated = yes
		cost = 10
		prerequisite = {
			focus = germany_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 = germany_radical_deluge_glasnost
		icon = GFX_goal_tripartite_pact
		available_if_capitulated = yes
		cost = 10
		prerequisite = {
			focus = germany_radical_deluge_old_bureaucracy
		}
		x = 3
		y = 1
			ai_will_do = {
				factor = 2
				modifier = {
					factor = 2
					has_war = yes
				}
			}
			completion_reward = {
					add_stability = 0.05
					add_political_power = 150
				}

	}
	
	focus = {
		id = germany_radical_deluge_industrial_cartels
		icon = GFX_goal_generic_construct_civ_factory
		available_if_capitulated = yes
		cost = 10
		prerequisite = {
			focus = germany_radical_deluge_collectives
			focus = germany_radical_deluge_cooperatives
			focus = germany_radical_deluge_communes
		}
		mutually_exclusive = {
			focus = germany_radical_deluge_new_economic_policy
			focus = germany_radical_deluge_synarchism
		}
		x = 5
		y = 1
			ai_will_do = {
					factor = 1
					modifier = {
							factor = 0
							OR = {
									has_government = fascism
									has_government = democratic
									has_government = neutrality
								}
						}
					modifier = {
							factor = 0
							date < 1936.5.15
						}
				}
			completion_reward = {
					add_ideas = deluge_industrial_cartels_idea
				}

	}
	focus = {
		id = germany_radical_deluge_synarchism
		icon = GFX_goal_generic_national_unity
		available_if_capitulated = yes
		cost = 10
		prerequisite = {
			focus = germany_radical_deluge_communes
			focus = germany_radical_deluge_cooperatives
			focus = germany_radical_deluge_collectives
		}
		mutually_exclusive = {
			focus = germany_radical_deluge_new_economic_policy
			focus = germany_radical_deluge_industrial_cartels
		}
		x = 9
		y = 1
			ai_will_do = {
					factor = 1
					modifier = {
							factor = 0
							has_government = democratic
						}
				}
			completion_reward = {
					add_ideas = deluge_synarchism_idea
				}

	}
	focus = {
		id = germany_radical_deluge_new_economic_policy
		icon = GFX_goal_generic_trade
		available_if_capitulated = yes
		cost = 10
		prerequisite = {
			focus = germany_radical_deluge_cooperatives
			focus = germany_radical_deluge_collectives
			focus = germany_radical_deluge_communes
		}
		mutually_exclusive = {
			focus = germany_radical_deluge_industrial_cartels
			focus = germany_radical_deluge_synarchism
		}
		x = 7
		y = 1
			ai_will_do = {
					factor = 1
					modifier = {
							factor = 0
							OR = {
									has_government = fascism
								}
						}
				}
			completion_reward = {
					add_ideas = deluge_new_economic_policy_idea
				}

	}
	
	focus = {
		id = germany_radical_deluge_politburo
		icon = GFX_focus_generic_soviet_politics
		available_if_capitulated = yes
		cost = 10
		prerequisite = {
			focus = germany_radical_deluge_synarchism
			focus = germany_radical_deluge_new_economic_policy
			focus = germany_radical_deluge_glasnost
			focus = germany_radical_deluge_political_purge
			focus = germany_radical_deluge_industrial_cartels
		}
		x = 5
		y = 2
		completion_reward = {
			add_ideas = deluge_politburo_idea
		}
	}
	
	focus = {
		id = germany_radical_deluge_party_run_courts
		icon = GFX_focus_boot_scales
		available_if_capitulated = yes
		cost = 10
		prerequisite = {
			focus = germany_radical_deluge_politburo
		}
		mutually_exclusive = {
			focus = germany_radical_deluge_independent_courts
		}
		x = 1
		y = 3
		ai_will_do = {
			factor = 1.5
			modifier = {
				factor = 0
				OR = {
					has_government = neutrality
					has_government = fascism
					NOT = {
						has_idea = novote
					}
					has_government = democratic
				}
			}
		}
		completion_reward = {
			add_ideas = deluge_party_run_courts_idea
		}
	}
	focus = {
		id = germany_radical_deluge_independent_courts
		icon = GFX_goal_generic_neutrality_focus
		available_if_capitulated = yes
		cost = 10
		prerequisite = {
			focus = germany_radical_deluge_politburo
		}
		mutually_exclusive = {
			focus = germany_radical_deluge_party_run_courts
		}
		x = 3
		y = 3
			ai_will_do = {
					factor = 0.5
					modifier = {
							factor = 10
							has_government = democratic
						}
				}
			completion_reward = {
					add_ideas = deluge_independent_courts_idea
				}

	}
	
	focus = {
		id = germany_radical_deluge_women_in_the_workforce
		icon = GFX_focus_generic_support_the_left_right
		available_if_capitulated = yes
		cost = 10
		prerequisite = {
			focus = germany_radical_deluge_politburo
		}
		x = 5
		y = 3
		ai_will_do = {
			factor = 2
		}
		completion_reward = {
			add_ideas = deluge_women_in_the_workforce_idea
			set_rule = { can_generate_female_aces = yes }
		}
	}
	
	focus = {
		id = germany_radical_deluge_housing_collectives
		icon = GFX_goal_generic_consumer_goods
		available_if_capitulated = yes
		cost = 10
		prerequisite = {
			focus = germany_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 = germany_radical_deluge_state_run_press
		icon = GFX_goal_generic_forceful_treaty
		available_if_capitulated = yes
		cost = 10
		prerequisite = {
			focus = germany_radical_deluge_party_run_courts
		}
		x = 1
		y = 4
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.1
				OR = {
					has_government = democratic
					has_government = fascism
					has_government = neutrality
				}
			}
			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 = germany_radical_deluge_censorship
		icon = GFX_focus_renounce_the_treaty_of_trianon
		available_if_capitulated = yes
		cost = 10
		prerequisite = {
			focus = germany_radical_deluge_independent_courts
		}
		x = 3
		y = 4
			ai_will_do = {
					factor = 1
					modifier = {
							factor = 0.1
							OR = {
									has_government = neutrality
									has_government = fascism
									has_government = communism
								}
						}
				}
			completion_reward = {
					add_stability = 0.05
					add_political_power = 150
				}

	}
	
	focus = {
		id = germany_radical_deluge_universal_education
		icon = GFX_focus_generic_socialist_science
		available_if_capitulated = yes
		cost = 10
		prerequisite = {
			focus = germany_radical_deluge_state_run_press
			focus = germany_radical_deluge_censorship
			focus = germany_radical_deluge_housing_collectives
		}
		x = 3
		y = 5
			ai_will_do = {
					factor = 1
					modifier = {
							factor = 0.5
							has_war = yes
						}
				}
			completion_reward = {
					add_ideas = deluge_universal_education_idea
				}

	}
	
	focus = {
		id = germany_radical_deluge_great_leap_forwards
		icon = GFX_goal_generic_soviet_construction
		available_if_capitulated = yes
		cost = 10
		prerequisite = {
			focus = germany_radical_deluge_industrial_cartels
			focus = germany_radical_deluge_new_economic_policy
			focus = germany_radical_deluge_synarchism
		}
		mutually_exclusive = {
			focus = germany_radical_deluge_attract_foreign_credit
		}
		x = 7
		y = 2
			ai_will_do = {
					factor = 1
					modifier = {
							factor = 2
							has_war = yes
						}
					modifier = {
							factor = 0
							OR = {
									has_government = fascism
									has_government = democratic
									has_government = neutrality
								}
						}
					modifier = {
							factor = 0.5
							date < 1937.10.15
						}
				}
			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 = germany_radical_deluge_autonomy_for_minorities
		icon = GFX_goal_molotov_ribbentrop_pact
		available_if_capitulated = yes
		cost = 10
		prerequisite = {
			focus = germany_radical_deluge_politburo
		}
		mutually_exclusive = {
			focus = germany_radical_deluge_assimilate_minorities
		}
		x = 7
		y = 3
			ai_will_do = {
					factor = 1
					modifier = {
						factor = 2
						has_government = communism
					}
				}
			completion_reward = {
					add_ideas = deluge_autonomy_for_minorities_idea
				}

	}
	
	focus = {
		id = germany_radical_deluge_internationalism
		icon = GFX_goal_support_communism
		available_if_capitulated = yes
		cost = 10
		prerequisite = {
			focus = germany_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 = germany_radical_deluge_attract_foreign_credit
		icon = GFX_goal_generic_positive_trade_relations
		available_if_capitulated = yes
		cost = 10
		prerequisite = {
			focus = germany_radical_deluge_industrial_cartels
			focus = germany_radical_deluge_new_economic_policy
			focus = germany_radical_deluge_synarchism
		}
		mutually_exclusive = {
			focus = germany_radical_deluge_great_leap_forwards
		}
		x = 9
		y = 2
			ai_will_do = {
					factor = 1
					modifier = {
							factor = 0
							has_war = yes
						}
				}
			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 = germany_radical_deluge_assimilate_minorities
		icon = GFX_goal_tfv_saf_anti_colonialist_crusade
		available_if_capitulated = yes
		cost = 10
		prerequisite = {
			focus = germany_radical_deluge_politburo
		}
		mutually_exclusive = {
			focus = germany_radical_deluge_autonomy_for_minorities
		}
		x = 9
		y = 3
			ai_will_do = {
					factor = 1
					modifier = {
						factor = 2
						has_government = fascism
					}
				}
			completion_reward = {
					add_ideas = deluge_assimilate_minorities_idea
				}

	}
	focus = {
		id = germany_radical_deluge_social_patriotism
		icon = GFX_focus_generic_little_entente
		available_if_capitulated = yes
		cost = 10
		prerequisite = {
			focus = germany_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 = germany_radical_deluge_tech_sharing
		icon = GFX_focus_generic_join_comintern
		available_if_capitulated = yes
		cost = 10
		prerequisite = {
			focus = germany_radical_deluge_internationalism
			focus = germany_radical_deluge_social_patriotism
		}
		available = {
			has_government = communism
			has_dlc = "Together for Victory"
		}
		x = 8
		y = 5
		ai_will_do = {
			factor = 10
			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_to_tech_sharing_group = deluge_comecon_tech_group
		}
	}
	
	focus = {
		id = germany_radical_create_faction
		icon = GFX_goal_generic_major_alliance
		prerequisite = { focus = germany_radical_deluge_internationalism focus = germany_radical_deluge_social_patriotism }
		x = 7
		y = 6
		available_if_capitulated = no
		cost = 10
		available = {
			OR = {
				has_global_flag = german_civil_war_ended
				has_war = no
				is_in_faction = yes
			}
		}
		completion_reward = {
			add_political_power = 150
			if = {
				limit = {
					is_in_faction = no
					is_subject = no
					has_government = communism
				}
				create_faction = "factionGermanInternational"
			}
			if = {
				limit = {
					is_in_faction = no
					is_subject = no
					NOT = { has_government = communism }
				}
				create_faction = "factionGermanBloc"
			}
		}
		ai_will_do = {
			factor = 10
			modifier = {
				factor = 2
				is_historical_focus_on = yes
			}
		}
	}
	
	focus = {
		id = germany_radical_claim_holland
		icon = GFX_goal_generic_occupy_states_ongoing_war
		prerequisite = { focus = germany_radical_create_faction }
		x = 10
		y = 7
		available_if_capitulated = no
		cost = 10
		available = {
			OR = {
				has_global_flag = german_civil_war_ended
				has_war = no
				has_war_with = HOL
			}
			NOT = { is_in_faction_with = HOL }
			is_subject = no
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 5
				has_war_with = HOL
			}
			modifier = {
				factor = 0.1
				has_war = yes
				NOT = { has_war_with = HOL }
			}
			modifier = {
				factor = 0
				has_government = democratic
				NOT = { has_war_with = HOL }
			}
			modifier = {
				factor = 0.5
				OR = {
					has_government = communism
					has_government = neutrality
				}
				NOT = { has_war_with = HOL }
			}
			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 = HOL }
				}
				news_event = german_expansion.1
			}
			
			add_named_threat = { threat = 2 name = germany_claims_holland }
			
			add_state_core = 784
			add_state_claim = 36
			add_state_claim = 7
			add_state_claim = 35
			add_state_claim = 6
			
			if = { limit = { NOT = { owns_state = 784 } }
				random_country = {
					limit = { owns_state = 784 }
					ROOT = {
						create_wargoal = {
							type = take_core_state
							target = PREV
							generator = { 784 }
						}
					}
				}
			}
			if = { limit = { NOT = { owns_state = 36 } }
				random_country = {
					limit = { owns_state = 36 }
					ROOT = {
						create_wargoal = {
							type = take_claimed_state
							target = PREV
							generator = { 36 7 35 6 }
						}
					}
				}
			}
		}
		will_lead_to_war_with = HOL
	}
	
	focus = {
		id = germany_radical_claim_france
		icon = GFX_goal_generic_occupy_states_ongoing_war
		prerequisite = { focus = germany_radical_create_faction }
		x = 4
		y = 7
		available_if_capitulated = no
		cost = 10
		available = {
			OR = {
				has_global_flag = german_civil_war_ended
				has_war = no
				has_war_with = FRA
				has_war_with = FRR
			}
			NOT = { is_in_faction_with = FRA }
			NOT = { is_in_faction_with = FRR }
			is_subject = no
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 5
				has_war_with = FRA
			}
			modifier = {
				factor = 5
				has_war_with = FRR
			}
			modifier = {
				factor = 0.1
				has_war = yes
				NOT = {
					OR = {
						has_war_with = FRA
						has_war_with = FRR
					}
				}
			}
			modifier = {
				factor = 0
				has_government = democratic
				NOT = {
					OR = {
						has_war_with = FRA
						has_war_with = FRR
					}
				}
			}
			modifier = {
				factor = 0.1
				OR = {
					has_government = communism
					has_government = neutrality
				}
				NOT = {
					OR = {
						has_war_with = FRA
						has_war_with = FRR
					}
				}
			}
			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 = FRA }
				}
				news_event = german_expansion.2
			}
			
			add_named_threat = { threat = 3 name = germany_claims_france }

			add_state_core = 786
			add_state_core = 42
			add_state_core = 28
			add_state_claim = 8
			add_state_claim = 17
			add_state_claim = 34
			
			if = { limit = { NOT = { owns_state = 42 } }
				random_country = {
					limit = { owns_state = 42 }
					ROOT = {
						create_wargoal = {
							type = take_core_state
							target = PREV
							generator = { 786 42 28 }
						}
					}
				}
			}
			if = { limit = { NOT = { owns_state = 17 } }
				random_country = {
					limit = { owns_state = 17 }
					ROOT = {
						create_wargoal = {
							type = take_claimed_state
							target = PREV
							generator = { 8 17 34 }
						}
					}
				}
			}
		}
		will_lead_to_war_with = FRA
		will_lead_to_war_with = FRR
	}
	
	focus = {
		id = germany_radical_claim_austria
		icon = GFX_goal_generic_occupy_states_ongoing_war
		prerequisite = { focus = germany_radical_create_faction }
		x = 6
		y = 7
		available_if_capitulated = no
		cost = 10
		available = {
			OR = {
				has_global_flag = german_civil_war_ended
				has_war = no
				has_war_with = AUS
			}
			NOT = { is_in_faction_with = AUS }
			is_subject = no
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 5
				has_war_with = AUS
			}
			modifier = {
				factor = 0.1
				has_war = yes
				NOT = { has_war_with = AUS }
			}
			modifier = {
				factor = 0
				has_government = democratic
				NOT = { has_war_with = AUS }
			}
			modifier = {
				factor = 0.1
				OR = {
					has_government = communism
					has_government = neutrality
				}
				NOT = { has_war_with = AUS }
			}
			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 = AUS }
				}
				news_event = german_expansion.3
			}
			
			add_named_threat = { threat = 4 name = germany_claims_austria }
			
			add_state_core = 4
			add_state_core = 152
			add_state_core = 153
			add_state_core = 39
			add_state_claim = 69
			add_state_claim = 72
			add_state_claim = 74
			add_state_claim = 9
			add_state_claim = 75
			add_state_claim = 102
			add_state_claim = 736
			
			if = { limit = { NOT = { owns_state = 4 } }
				random_country = {
					limit = { owns_state = 4 }
					ROOT = {
						create_wargoal = {
							type = take_core_state
							target = PREV
							generator = { 4 152 153 39 }
						}
					}
				}
			}
			if = { limit = { NOT = { owns_state = 72 } }
				random_country = {
					limit = { owns_state = 72 }
					ROOT = {
						create_wargoal = {
							type = take_claimed_state
							target = PREV
							generator = { 72 74 9 75 69 }
						}
					}
				}
			}
		}
		will_lead_to_war_with = AUS
	}
	
	focus = {
		id = germany_radical_claim_poland
		icon = GFX_goal_generic_occupy_states_ongoing_war
		prerequisite = { focus = germany_radical_create_faction }
		x = 8
		y = 7
		available_if_capitulated = no
		cost = 10
		available = {
			OR = {
				has_global_flag = german_civil_war_ended
				has_war = no
				has_war_with = POL
			}
			NOT = { is_in_faction_with = POL }
			is_subject = no
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 5
				has_war_with = POL
			}
			modifier = {
				factor = 0.1
				has_war = yes
				NOT = { has_war_with = POL }
			}
			modifier = {
				factor = 0
				has_government = democratic
				NOT = { has_war_with = POL }
			}
			modifier = {
				factor = 0.1
				OR = {
					has_government = communism
					has_government = neutrality
				}
				NOT = { has_war_with = POL }
			}
			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 = POL }
				}
				news_event = german_expansion.4
			}
			
			add_named_threat = { threat = 3 name = germany_claims_poland }

			add_state_claim = 5
			add_state_claim = 86
			add_state_claim = 66
			add_state_claim = 67
			add_state_claim = 87
			add_state_claim = 98
			
			if = { limit = { NOT = { owns_state = 87 } }
				random_country = {
					limit = { owns_state = 87 }
					ROOT = {
						create_wargoal = {
							type = take_claimed_state
							target = PREV
							generator = { 5 86 66 67 87 98 }
						}
					}
				}
			}
		}
		will_lead_to_war_with = POL
	}
	
	focus = {
		id = germany_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 = germany_radical_deluge_league_leave
		icon = GFX_focus_league_of_nations
		prerequisite = { focus = germany_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
	
}
