focus_tree = {
	id = deluge_china_focus
	
	country = {
		factor = 0
		
		modifier = {
			add = 10
			original_tag = CHI
		}
		modifier = {
			add = 10
			original_tag = PRC
		}
	}
	
	default = no
	reset_on_civilwar = yes
	
	focus = {
		id = china_deluge_meritocracy
		icon = GFX_goal_generic_production2
		mutually_exclusive = { focus = china_deluge_aristocracy }
		x = 1
		y = 0
		available_if_capitulated = yes
		cost = 10
		completion_reward = {
			add_ideas = deluge_meritocracy_idea
		}
		ai_will_do = {
			factor = 3
			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 = china_deluge_aristocracy
		icon = "GFX_goal_generic_air_doctrine"
		mutually_exclusive = { focus = china_deluge_meritocracy }
		x = 3
		y = 0
		available_if_capitulated = yes
		cost = 10
		completion_reward = {
			add_ideas = deluge_aristocracy_idea
		}
		ai_will_do = {
			factor = 3
			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 = china_deluge_popular_sovereignty
		icon = "GFX_goal_support_democracy"
		prerequisite = { focus = china_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 = 3
			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 = china_deluge_divine_right
		icon = GFX_focus_rom_royal_dictatorship
		prerequisite = { focus = china_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 = 3
			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 = china_deluge_individualism
		icon = GFX_goal_generic_demand_territory
		mutually_exclusive = { focus = china_deluge_corporatism }
		x = 5
		y = 0
		available_if_capitulated = yes
		cost = 10
		completion_reward = {
			add_ideas = deluge_individualism_idea
		}
		ai_will_do = {
			factor = 3
			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 = china_deluge_corporatism
		icon = GFX_goal_generic_political_pressure
		mutually_exclusive = { focus = china_deluge_individualism }
		x = 7
		y = 0
		available_if_capitulated = yes
		cost = 10
		completion_reward = {
			add_ideas = deluge_corporatism_idea
		}
		ai_will_do = {
			factor = 3
			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 = china_deluge_pluralism
		icon = "GFX_goal_generic_national_unity"
		prerequisite = { focus = china_deluge_individualism }
		x = 5
		y = 1
		available_if_capitulated = yes
		cost = 10
		completion_reward = {
			add_ideas = deluge_pluralism_idea
		}
		ai_will_do = {
			factor = 3
			modifier = {
				factor = 0.1
				OR = {
					has_government = communism
					has_government = neutrality
					has_government = fascism
				}
			}
			modifier = {
				factor = 2
				is_historical_focus_on = yes
			}
		}
	}

	focus = {
		id = china_deluge_leader_cult
		icon = "GFX_goal_support_fascism"
		prerequisite = { focus = china_deluge_corporatism }
		x = 7
		y = 1
		available_if_capitulated = yes
		cost = 10
		completion_reward = {
			add_ideas = deluge_leader_cult_idea
		}
		ai_will_do = {
			factor = 3
			modifier = {
				factor = 0.1
				OR = {
					has_government = communism
					has_government = neutrality
					has_government = democratic
				}
			}
			modifier = {
				factor = 2
				is_historical_focus_on = yes
			}
		}
	}
	
	focus = {
		id = china_deluge_youth_organisations
		icon = "GFX_goal_generic_position_armies"
		prerequisite = { focus = china_deluge_leader_cult focus = china_deluge_pluralism focus = china_deluge_divine_right focus = china_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 = china_deluge_land_reform
		icon = "GFX_goal_support_communism"
		prerequisite = { focus = china_deluge_youth_organisations }
		mutually_exclusive = { focus = china_deluge_manorialism }
		x = 1
		y = 3
		available_if_capitulated = yes
		cost = 10
		completion_reward = {
			add_ideas = deluge_land_reform_idea
		}
		ai_will_do = {
			factor = 3
			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 = china_deluge_manorialism
		icon = GFX_focus_hun_elect_a_king
		prerequisite = { focus = china_deluge_youth_organisations }
		mutually_exclusive = { focus = china_deluge_land_reform }
		x = 3
		y = 3
		available_if_capitulated = yes
		cost = 10
		completion_reward = {
			add_ideas = deluge_manorialism_idea
		}
		ai_will_do = {
			factor = 3
			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 = china_deluge_fraternal_nations
		icon = GFX_goal_anschluss
		prerequisite = { focus = china_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 = 3
			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 = china_deluge_dynastic_politics
		icon = GFX_goal_tfv_strengthen_commonwealth_ties
		prerequisite = { focus = china_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 = 3
			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 = china_deluge_police_consent
		icon = GFX_goal_molotov_ribbentrop_pact
		prerequisite = { focus = china_deluge_youth_organisations }
		mutually_exclusive = { focus = china_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 = 3
			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 = china_deluge_secret_police
		icon = GFX_goal_generic_secret_weapon
		prerequisite = { focus = china_deluge_youth_organisations }
		mutually_exclusive = { focus = china_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 = 3
			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 = china_deluge_judiciary
		icon = "GFX_goal_generic_neutrality_focus"
		prerequisite = { focus = china_deluge_police_consent }
		x = 5
		y = 4
		available_if_capitulated = yes
		cost = 10
		completion_reward = {
			add_ideas = deluge_judiciary_idea
		}
		ai_will_do = {
			factor = 3
			modifier = {
				factor = 0.1
				OR = {
					has_government = communism
					has_government = neutrality
					has_government = fascism
				}
			}
			modifier = {
				factor = 2
				is_historical_focus_on = yes
			}
		}
	}

	focus = {
		id = china_deluge_state_terror
		icon = GFX_focus_boot_scales
		prerequisite = { focus = china_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 = 3
			modifier = {
				factor = 0.1
				OR = {
					has_government = communism
					has_government = neutrality
					has_government = democratic
				}
			}
			modifier = {
				factor = 2
				is_historical_focus_on = yes
			}
		}
	}

	focus = {
		id = china_deluge_self-strengthening
		icon = GFX_goal_generic_demand_territory
		prerequisite = { focus = china_deluge_fraternal_nations focus = china_deluge_dynastic_politics focus = china_deluge_judiciary focus = china_deluge_state_terror }
		x = 4
		y = 5
		available_if_capitulated = yes
		cost = 10
		available = {
			is_subject = no
		}
		select_effect = {
			hidden_effect = {
				if = {
					limit = {
						tag = CHI
						country_exists = JAP
						NOT = { has_war_with = JAP }
						NOT = { is_in_faction_with = JAP }
					}
					JAP = {
						country_event = { id = japanese_diplomacy.18 days = 25 }
					}
				}
			}
		}
		completion_reward = {
			swap_ideas = {
				remove_idea = deluge_china_vestiges_feudalism
				add_idea = deluge_china_vestiges_feudalism_2
			}
		}
		ai_will_do = {
			factor = 2
			modifier = {
				factor = 2
				is_historical_focus_on = yes
			}
			modifier = {
				factor = 2
				has_war = yes
			}
		}
	}
	
	focus = {
		id = china_deluge_protracted_peoples_war
		icon = GFX_focus_YUG_pan_slavic_congress
		prerequisite = { focus = china_deluge_self-strengthening }
		cancel_if_invalid = no
		continue_if_invalid = yes
		available = {
			any_enemy_country = {
				is_major = yes
			}
		}
		x = 3
		y = 6
		available_if_capitulated = yes
		cost = 10
		completion_reward = {
			add_ideas = deluge_chinese_protracted_peoples_war_idea
		}
		ai_will_do = {
			factor = 5
			
			modifier = {
				factor = 0.2
				OR = {
					has_government = democratic
					has_government = neutrality
					has_government = fascism
				}
			}
		}
	}
	
	focus = {
		id = china_deluge_dare_to_die
		icon = "GFX_goal_generic_attack_allies"
		prerequisite = { focus = china_deluge_self-strengthening }
		cancel_if_invalid = no
		continue_if_invalid = yes
		available = {
			any_enemy_country = {
				is_major = yes
			}
		}
		x = 5
		y = 6
		available_if_capitulated = yes
		cost = 10
		completion_reward = {
			set_rule = { can_use_kamikaze_pilots = yes }
			add_ideas = deluge_chinese_dare_to_die_corps_idea
		}
		ai_will_do = {
			factor = 5

			modifier = {
				factor = 0.2
				OR = {
					has_government = communism
					has_government = neutrality
					has_government = democratic
				}
			}
		}
	}
	
	focus = {
		id = china_deluge_cultural_revolution
		icon = GFX_focus_generic_join_comintern
		prerequisite = { focus = china_deluge_fraternal_nations }
		prerequisite = { focus = china_deluge_self-strengthening }
		prerequisite = { focus = china_deluge_state_terror }
		x = 1
		y = 6
		available_if_capitulated = yes
		cost = 10
		available = {
		}
		completion_reward = {
			effect_tooltip = {
				remove_ideas = deluge_china_vestiges_feudalism_2 # if the country doesn't have the idea yet, it doesn't seem to appear
			}
			hidden_effect = {
				remove_ideas = deluge_china_vestiges_feudalism_2 # don't want it appearing twice
			}
			
			if = {
				limit = {
					has_idea = emperor_puyi
				}
				remove_ideas = emperor_puyi
			}
			
			if = {
				limit = {
					has_idea = heavenly_king
				}
				remove_ideas = heavenly_king
			}
			
			if = {
				limit = {
					has_government = communism
					original_tag = CHI
				}
				custom_effect_tooltip = tooltip_cultural_revolution_chi_communism
			}
			
			if = {
				limit = {
					has_government = democratic
					original_tag = CHI
				}
				custom_effect_tooltip = tooltip_cultural_revolution_chi_democratic
			}
			
			if = {
				limit = {
					has_government = neutrality
					original_tag = CHI
				}
				custom_effect_tooltip = tooltip_cultural_revolution_chi_neutrality
			}
			
			if = {
				limit = {
					has_government = fascism
					original_tag = CHI
				}
				custom_effect_tooltip = tooltip_cultural_revolution_chi_ultranat
			}
			
			hidden_effect = {
				if = {
					limit = {
						original_tag = CHI
					}
					set_cosmetic_tag = CHI_REPUB
				}
			}
		}
		ai_will_do = {
			factor = 5
		}
	}
	
	focus = {
		id = china_deluge_cultural_reform
		icon = GFX_focus_rom_handle_king
		prerequisite = { focus = china_deluge_fraternal_nations }
		prerequisite = { focus = china_deluge_self-strengthening }
		prerequisite = { focus = china_deluge_judiciary }
		x = 7
		y = 6
		available_if_capitulated = yes
		cost = 10
		available = {
		}
		completion_reward = {
			effect_tooltip = {
				remove_ideas = deluge_china_vestiges_feudalism_2 # if the country doesn't have the idea yet, it doesn't seem to appear
			}
			
			hidden_effect = {
				remove_ideas = deluge_china_vestiges_feudalism_2 # don't want it appearing twice
			}
			
			if = {
				limit = {
					has_idea = heavenly_king
				}
				remove_ideas = heavenly_king
			}
		}
		ai_will_do = {
			factor = 5
		}
	}
	
	focus = {
		id = china_deluge_turn_outwards
		icon = GFX_goal_generic_propaganda
		prerequisite = { focus = china_deluge_self-strengthening }
		x = 4
		y = 7
		available_if_capitulated = yes
		cost = 10
		available = {
			is_subject = no
		}
		completion_reward = {
			add_stability = 0.05
			add_war_support = 0.05
			if = {
				limit = {
					tag = PRC
					is_in_faction = no
				}
				country_event = deluge_china.1
			}
		}
		ai_will_do = {
			factor = 2
			modifier = {
				factor = 2
				is_historical_focus_on = yes
			}
			modifier = {
				factor = 2
				has_war = yes
			}
		}
	}

	focus = {
		id = china_demand_treaty_ports_britain
		icon = GFX_goal_generic_occupy_states_ongoing_war
		prerequisite = { focus = china_deluge_turn_outwards }
		x = 5
		y = 8
		available_if_capitulated = no
		cost = 5
		available = {
			NOT = { has_global_flag = flag_britain_reinforced_treaty_ports }
			CHI = {
				NOT = { has_war_with = ENG }
			}
			PRC = {
				NOT = { has_war_with = ENG }
			}
			NOT = { is_in_faction_with = ENG }
			is_subject = no
			OR = {
				AND = {
					613 = {
						is_controlled_by = ROOT
					}
					787 = {
						is_controlled_by = ENG
					}
				}
				AND = {
					593 = {
						is_controlled_by = ROOT
					}
					326 = {
						is_controlled_by = ENG
					}
				}
				AND = {
					597 = {
						is_controlled_by = ROOT
					}
					803 = {
						is_controlled_by = ENG
					}
				}
			}	
		}
		bypass = {
			NOT = {
				787 = {
					is_owned_by = ENG
				}
			}
			NOT = {
				326 = {
					is_owned_by = ENG
				}
			}
			NOT = {
				803 = {
					is_owned_by = ENG
				}
			}
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 5
				ENG = {
					has_war = yes
				}
			}
		}
		select_effect = {
			
		}
		completion_reward = {
			add_named_threat = { threat = 3 name = china_claims_ports }

			ENG = {
				country_event = deluge_china.4
			}
		}
	}
	
	
	focus = {
		id = china_demand_treaty_ports_france
		icon = GFX_goal_generic_occupy_states_ongoing_war
		prerequisite = { focus = china_deluge_turn_outwards }
		x = 3
		y = 8
		available_if_capitulated = no
		cost = 5
		available = {
			NOT = { has_global_flag = flag_france_reinforced_treaty_ports }
			CHI = {
				NOT = { has_war_with = FRA }
			}
			PRC = {
				NOT = { has_war_with = FRA }
			}
			NOT = { is_in_faction_with = FRA }
			is_subject = no
			OR = {
				AND = {
					594 = {
						is_controlled_by = ROOT
					}
					728 = {
						is_controlled_by = FRA
					}
				}
				AND = {
					597 = {
						is_controlled_by = ROOT
					}
					743 = {
						is_controlled_by = FRA
					}
				}
			}	
		}
		bypass = {
			NOT = {
				728 = {
					is_owned_by = FRA
				}
			}
			NOT = {
				743 = {
					is_owned_by = FRA
				}
			}
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 5
				FRA = {
					has_war = yes
				}
			}
		}
		select_effect = {
			
		}
		completion_reward = {
			add_named_threat = { threat = 2 name = china_claims_ports }
			
			FRA = {
				country_event = deluge_china.7
			}
		}
	}
	
	focus = {
		id = china_claim_tibet
		icon = GFX_goal_generic_occupy_states_ongoing_war
		prerequisite = { focus = china_deluge_turn_outwards }
		x = 1
		y = 8
		available_if_capitulated = no
		cost = 5
		available = {
			NOT = { is_in_faction_with = TIB }
			is_subject = no
			NOT = {
				322 = {
					is_owned_by = ROOT
				}
			}
			OR = {
				287 = {
					is_controlled_by = ROOT
				}
				604 = {
					is_controlled_by = ROOT
				}
				752 = {
					is_controlled_by = ROOT
				}
			}
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.1
				has_war = yes
			}
			modifier = {
				factor = 0
				has_war_with = CHI
			}
			modifier = {
				factor = 0
				has_war_with = PRC
			}
			modifier = {
				factor = 0
				has_war_with = JAP
			}
			modifier = {
				factor = 0.5
				any_country = {
					ROOT = {
						has_wargoal_against = PREV
					}
				}
			}
			modifier = {
				factor = 2
				is_historical_focus_on = yes
			}
		}
		select_effect = {
			
		}
		completion_reward = {
			add_named_threat = { threat = 1 name = china_claims_tibet }
			
			add_state_claim = 322
			add_state_claim = 441
			add_state_claim = 323
			add_state_claim = 324
			
			if = { limit = { country_exists = TIB }
				create_wargoal = {
					type = annex_everything
					target = TIB
				}
			}
		}
		will_lead_to_war_with = TIB
	}
	
	focus = {
		id = china_demand_treaty_ports_portugal
		icon = GFX_goal_generic_occupy_states_ongoing_war
		prerequisite = { focus = china_deluge_turn_outwards }
		x = 7
		y = 8
		available_if_capitulated = no
		cost = 5
		available = {
			NOT = { has_global_flag = flag_portugal_reinforced_treaty_port }
			CHI = {
				NOT = { has_war_with = POR }
			}
			PRC = {
				NOT = { has_war_with = POR }
			}
			NOT = { is_in_faction_with = POR }
			is_subject = no
			AND = {
				592 = {
					is_controlled_by = ROOT
				}
				729 = {
					is_controlled_by = POR
				}
			}
		}
		bypass = {
			NOT = {
				729 = {
					is_owned_by = POR
				}
			}
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 5
				POR = {
					has_war = yes
				}
			}
		}
		select_effect = {
			
		}
		completion_reward = {
			add_named_threat = { threat = 1 name = china_claims_ports }
			
			POR = {
				country_event = deluge_china.10
			}
		}
	}
	
	focus = {
		id = china_deluge_war_with_rival
		icon = GFX_goal_generic_major_war
		prerequisite = { focus = china_claim_tibet focus = china_demand_treaty_ports_britain focus = china_demand_treaty_ports_france focus = china_demand_treaty_ports_portugal }
		x = 3
		y = 9
		available_if_capitulated = no
		cost = 10
		bypass = {
			if = {
				limit = {
					original_tag = CHI
				}
				NOT = {
					country_exists = PRC
				}
			}
			if = {
				limit = {
					original_tag = PRC
				}
				NOT = {
					country_exists = CHI
				}
			}
		}
		available = {
			is_subject = no
		}
		completion_reward = {
		
		
			if = {
				limit = {
					original_tag = CHI
				}
				
				create_wargoal = {
					type = annex_everything
					target = PRC
				}
				
				add_named_threat = { threat = 2 name = china_claims_taiping }

				if = {
					limit = {
						NOT = { has_war_with = PRC }
					}
					news_event = { days = 1 id = deluge_china.19 }
				}
			}
			if = {
				limit = {
					original_tag = PRC
				}
				
				create_wargoal = {
					type = annex_everything
					target = CHI
				}
				
				add_named_threat = { threat = 2 name = taiping_claims_china }
				
				if = {
					limit = {
						NOT = { has_war_with = CHI }
					}
					news_event = { days = 1 id = deluge_china.20 }
				}
				
				hidden_effect = {
					
					if = {
						limit = {
							CHI = { has_civil_war = yes }
						}
						random_country = {
							limit = {
								original_tag = CHI
								NOT = { is_in_faction_with = PRC }
								NOT = { tag = CHI }
							}
							PRC = {
								create_wargoal = {
									type = annex_everything
									target = PREV
								}
							}
						}
					}
				}
			}
		}
		ai_will_do = {
			factor = 2
			modifier = {
				factor = 0.5
				any_country = {
					ROOT = {
						has_wargoal_against = PREV
					}
				}
			}
			modifier = {
				factor = 2
				is_historical_focus_on = yes
			}
			modifier = {
				factor = 0.1
				has_war = yes
			}
			modifier = {
				factor = 0
				has_war_with = CHI
			}
			modifier = {
				factor = 0
				has_war_with = PRC
			}
			modifier = {
				factor = 0
				has_war_with = JAP
			}
			modifier = {
				factor = 0
				has_war_with = SOV
			}
			modifier = {
				factor = 0
				has_war_with = RAJ
			}
		}
		will_lead_to_war_with = PRC
		will_lead_to_war_with = CHI
	}
	
	focus = {
		id = china_deluge_war_with_japan
		icon = GFX_focus_AST_war_japan
		prerequisite = { focus = china_claim_tibet focus = china_demand_treaty_ports_britain focus = china_demand_treaty_ports_france focus = china_demand_treaty_ports_portugal }
		x = 5
		y = 9
		available_if_capitulated = no
		cost = 10
		available = {
			is_subject = no
			is_neighbor_of = JAP
		}
		bypass = {
			NOT = {
				any_state = {
					is_core_of = ROOT
					is_owned_by = JAP
				}
			}
		}
		completion_reward = {
			add_named_threat = { threat = 1 name = china_claims_manchuria }
			
			if = { limit = { NOT = { owns_state = 716 } }
				random_country = {
					limit = { owns_state = 716 }
					ROOT = {
						create_wargoal = {
							type = take_core_state
							target = PREV
							generator = { 716 328 717 408 409 }
						}
					}
				}
			}
		}
		ai_will_do = {
			factor = 2
			modifier = {
				factor = 0
				has_war_with = CHI
			}
			modifier = {
				factor = 0
				has_war_with = PRC
			}
			modifier = {
				factor = 0
				has_war_with = JAP
			}
			modifier = {
				factor = 0
				has_war_with = SOV
			}
			modifier = {
				factor = 0
				has_war_with = RAJ
			}
			modifier = {
				factor = 0.5
				has_war = yes
			}
			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 = china_deluge_unify_china
		icon = GFX_goal_generic_military_deal
		prerequisite = { focus = china_deluge_war_with_rival focus = china_deluge_war_with_japan }
		x = 4
		y = 10
		available_if_capitulated = no
		cost = 10
		available = {
			is_subject = no
			has_civil_war = no
			OR = {
				PRC = {
					exists = no
				}
				PRC = {
					is_subject_of = ROOT
				}
				tag = PRC
			}
			OR = {
				CHI = {
					exists = no
				}
				CHI = {
					is_subject_of = ROOT
				}
				tag = CHI
			}
		}
		completion_reward = {
			remove_ideas = deluge_chinese_sectarianism_idea
			
			hidden_effect = {
				if = {
					limit = {
						original_tag = PRC
					}
					set_cosmetic_tag = PRC_UNIFIED
					news_event = { days = 1 id = deluge_china.22 }
				}
				if = {
					limit = {
						original_tag = CHI
					}
					news_event = { days = 1 id = deluge_china.21 }
				}
			}
			
			if = {
				limit = {
					original_tag = PRC
					has_government = communism
				}
				custom_effect_tooltip = tooltip_unified_prc_communism
			}
			
			if = {
				limit = {
					original_tag = PRC
					has_government = democratic
				}
				custom_effect_tooltip = tooltip_unified_prc_democratic
			}
			
			if = {
				limit = {
					original_tag = PRC
					has_government = neutrality
				}
				custom_effect_tooltip = tooltip_unified_prc_neutrality
			}
			
			if = {
				limit = {
					original_tag = PRC
					has_government = fascism
				}
				custom_effect_tooltip = tooltip_unified_prc_ultranat
			}
			
			if = {
				limit = {
					CHI = {
						OR = {
							AND = {
								is_subject = yes
								is_in_faction_with = ROOT
							}
							is_subject_of = ROOT
						}
					}
				}
				annex_country = { target = CHI transfer_troops = no }
			}
			
			if = {
				limit = {
					PRC = {
						OR = {
							AND = {
								is_subject = yes
								is_in_faction_with = ROOT
							}
							is_subject_of = ROOT
						}
					}
				}
				annex_country = { target = PRC transfer_troops = no }
			}
		}
		ai_will_do = {
			factor = 5
		}
	}
	
	focus = {
		id = china_league_ratification
		icon = GFX_focus_league_of_nations
		available = {
			OR = {
				has_idea = deluge_league_of_nations_prospective_member
				has_idea = deluge_league_of_nations_lapsing_member
			}
			has_war = no
			has_global_flag = flag_league_international_court_vote_concluded
			has_global_flag = flag_league_relief_union_vote_concluded
			has_global_flag = flag_league_prohibit_poison_gas_vote_concluded
			has_global_flag = flag_league_prisoners_of_war_vote_concluded
			has_global_flag = flag_league_maritime_protections_vote_concluded
			NOT = { has_global_flag = flag_league_of_nations_disbanded }
		}
		x = 9
		y = 0
		available_if_capitulated = yes
		cost = 10
		completion_reward = {
			add_political_power = 80
			
			if = {
				limit = {
					is_major = yes
				}
				add_named_threat = { threat = -3 name = deluge_ratified_league_of_nations_threat }
			}
			
			if = {
				limit = {
					is_major = no
					is_subject = no
				}
				add_named_threat = { threat = -1 name = deluge_ratified_league_of_nations_threat }
			}
			
			hidden_effect = {
				news_event = deluge_league.28
			}
			
			# bitmask is used to determine final attributes of the idea
			# flags are supposedly initialised at 0
			# 1 = court of justice
			# 2 = disaster relief
			# 4 = gas warfare ban
			# 8 = convention on pows
			# 16 = convention on convoys
			# total of 32 variations (including if none of the conventions pass)
			
			if = {
				limit = {
					has_idea = deluge_league_of_nations_prospective_member
				}
				remove_ideas = deluge_league_of_nations_prospective_member
			}
			
			if = {
				limit = {
					has_idea = deluge_league_of_nations_lapsing_member
				}
				remove_ideas = deluge_league_of_nations_lapsing_member
			}
			
			add_to_tech_sharing_group = deluge_league_of_nations_tech_group

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

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

	shared_focus = deluge_naval_infrastructure
	
	shared_focus = deluge_great_war_lessons
	
	shared_focus = deluge_aircraft_industry
	
}