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

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

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

	focus = {
		id = italy_depose_monarch
		icon = GFX_goal_generic_war_with_comintern
		prerequisite = { focus = italy_deluge_popular_sovereignty }
		available = {
			is_subject = no
			#NOT = { has_global_flag = flag_italy_restore_rome }
			NOT = { has_government = neutrality }
		}
		x = 1
		y = 2
		available_if_capitulated = yes
		cost = 10
		completion_reward = {
			#set_global_flag = flag_italy_form_republic
			
			add_political_power = 150
			
			if = {
				limit = {
					has_idea = italian_king
				}
				remove_ideas = italian_king
			}

			hidden_effect = {
				set_cosmetic_tag = ITA_REPUB
			}
			
			if = {
				limit = {
					has_government = communism
				}
				custom_effect_tooltip = tooltip_italy_republic_communism
				news_event = { days = 1 id = deluge_italy.12 }
			}

			if = {
				limit = {
					has_government = democratic
				}
				custom_effect_tooltip = tooltip_italy_republic_democratic
				news_event = { days = 1 id = deluge_italy.13 }
			}

			if = {
				limit = {
					has_government = neutrality
				}
				custom_effect_tooltip = tooltip_italy_republic_neutrality
			}

			if = {
				limit = {
					has_government = fascism
				}
				custom_effect_tooltip = tooltip_italy_republic_fascism
				news_event = { days = 1 id = deluge_italy.14 }
			}
		}
		ai_will_do = {
			factor = 10
			modifier = {
				factor = 0
				OR = {
					has_government = democratic
					has_government = neutrality
					has_government = fascism
				}
			}
		}
	}

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

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

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

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

	focus = {
		id = italy_restore_rome
		icon = GFX_focus_generic_italy_first
		prerequisite = { focus = italy_deluge_leader_cult }
		available = {
			is_subject = no
			#NOT = { has_global_flag = flag_italy_form_republic }
			NOT = { has_government = neutrality }
		}
		x = 7
		y = 2
		available_if_capitulated = yes
		cost = 10
		completion_reward = {
			#set_global_flag = flag_italy_restore_rome
			
			add_political_power = 150
			
			if = {
				limit = {
					has_idea = italian_king
				}
				remove_ideas = italian_king
			}
			
			hidden_effect = {
				set_cosmetic_tag = ITA_ROME
			}
			
			2 = { set_state_name = "Latium" }
			set_province_name = { id = 819 name = "Neapolis" }
			set_province_name = { id = 11837 name = "Tarentum" }
			set_province_name = { id = 4159 name = "Messana" }
			
			if = {
				limit = {
					has_government = communism
				}
				custom_effect_tooltip = tooltip_italy_rome_communism
				news_event = { days = 1 id = deluge_italy.9 }
			}

			if = {
				limit = {
					has_government = democratic
				}
				custom_effect_tooltip = tooltip_italy_rome_democratic
				news_event = { days = 1 id = deluge_italy.10 }
			}

			if = {
				limit = {
					has_government = neutrality
				}
				custom_effect_tooltip = tooltip_italy_rome_neutrality
			}

			if = {
				limit = {
					has_government = fascism
				}
				custom_effect_tooltip = tooltip_italy_rome_fascism
				news_event = { days = 1 id = deluge_italy.11 }
			}
		}
		ai_will_do = {
			factor = 2
			modifier = {
				factor = 0
				OR = {
					has_government = democratic
					has_government = neutrality
					has_government = communism
				}
			}
		}
	}

	focus = {
		id = italy_deluge_youth_organisations
		icon = "GFX_goal_generic_position_armies"
		prerequisite = { focus = italy_deluge_leader_cult focus = italy_deluge_pluralism focus = italy_deluge_divine_right focus = italy_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 = italy_deluge_land_reform
		icon = "GFX_goal_support_communism"
		prerequisite = { focus = italy_deluge_youth_organisations }
		mutually_exclusive = { focus = italy_deluge_manorialism }
		x = 1
		y = 3
		available_if_capitulated = yes
		cost = 10
		completion_reward = {
			add_ideas = deluge_land_reform_idea
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.1
				OR = {
					has_government = democratic
					has_government = fascism
				}
			}
			modifier = {
				factor = 0
				has_government = neutrality
			}
			modifier = {
				factor = 2
				is_historical_focus_on = yes
			}
			modifier = { # political power when at war and needs to change manpower law
				factor = 2
				has_war = yes
				OR = {
					has_idea = volunteer_only
					has_idea = limited_conscription
					has_idea = extensive_conscription
				}
				manpower_per_military_factory < 1000
			}
			modifier = { # political power when at war and needs to change economy law
				factor = 2
				has_war = yes
				OR = {
					has_idea = civilian_economy
					has_idea = low_economic_mobilisation
					has_idea = partial_economic_mobilisation
				}
			}
		}
	}

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

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

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

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

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

	focus = {
		id = italy_deluge_national_unity
		icon = GFX_goal_generic_propaganda
		prerequisite = { focus = italy_deluge_fraternal_nations focus = italy_deluge_dynastic_politics focus = italy_deluge_judiciary focus = italy_deluge_state_terror }
		x = 4
		y = 5
		available_if_capitulated = yes
		cost = 10
		completion_reward = {
			add_stability = 0.05
			add_war_support = 0.05
			if = {
				limit = { has_idea = deluge_great_war_horrors_idea }
				remove_ideas = deluge_great_war_horrors_idea
			}
			if = {
				limit = { has_idea = deluge_chinese_sectarianism_idea }
				remove_ideas = deluge_chinese_sectarianism_idea
			}			
			if = {
				limit = { has_idea = deluge_german_civil_war_idea }
				remove_ideas = deluge_german_civil_war_idea
			}
		}
		ai_will_do = {
			factor = 10
			modifier = {
				factor = 2
				is_historical_focus_on = yes
			}
		}
	}	
	
	focus = {
		id = italy_create_faction
		icon = GFX_goal_generic_major_alliance
		prerequisite = { focus = italy_deluge_national_unity }
		prerequisite = { focus = italy_deluge_fraternal_nations focus = italy_deluge_dynastic_politics }
		x = 2
		y = 6
		available_if_capitulated = no
		cost = 10
		completion_reward = {
			add_political_power = 150
			
			if = {
				limit = {
					is_in_faction = no
					is_subject = no
					has_cosmetic_tag = ITA_ROME
					has_government = fascism
				}
				create_faction = "factionRomanBloc"
			}
			
			if = {
				limit = {
					is_in_faction = no
					is_subject = no
					OR = {
						NOT = { has_government = fascism }
						NOT = { has_cosmetic_tag = ITA_ROME }
					}
				}
				create_faction = "factionItalianBloc"
			}
		}
		ai_will_do = {
			factor = 10
			modifier = {
				factor = 2
				is_historical_focus_on = yes
			}
		}
	}
	
	focus = {
		id = italy_claim_croatia
		icon = GFX_goal_generic_occupy_states_ongoing_war
		prerequisite = { focus = italy_create_faction }
		available = {
			NOT = { is_in_faction_with = CRO }
			is_subject = no
		}
		x = 1
		y = 7
		available_if_capitulated = no
		cost = 10
		completion_reward = {
			if = {
				limit = {
					NOT = { has_war_with = CRO }
				}
				news_event = deluge_italy.5
			}
			
			add_named_threat = { threat = 1 name = italy_claims_croatia }
			
			add_state_claim = 103
			add_state_claim = 104
			add_state_claim = 109
			
			if = { limit = { NOT = { owns_state = 109 } }
				random_country = {
					limit = { owns_state = 109 }
					ROOT = {
						create_wargoal = {
							type = take_claimed_state
							target = PREV
							generator = { 109 103 104 }
						}
					}
				}
			}
		}
		
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_government = democratic
				NOT = { has_war_with = CRO }
			}
			modifier = {
				factor = 0.1
				has_war = yes
			}
			modifier = {
				factor = 0.1
				num_of_factories < 60
				CRO = {
					num_of_factories > 60
				}
			}
			modifier = {
				factor = 0.5
				any_country = {
					ROOT = {
						has_wargoal_against = PREV
					}
				}
			}
			modifier = {
				factor = 2
				is_historical_focus_on = yes
			}
		}
		will_lead_to_war_with = CRO
	}

	focus = {
		id = italy_claim_albania
		icon = GFX_goal_generic_occupy_states_ongoing_war
		prerequisite = { focus = italy_create_faction }
		x = 3
		y = 7
		available_if_capitulated = no
		cost = 10
		available = {
			NOT = { is_in_faction_with = ALB }
			is_subject = no
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 5
				has_war_with = ALB
			}
			modifier = {
				factor = 0.5
				has_war = yes
				NOT = { has_war_with = ALB }
			}
			modifier = {
				factor = 0
				has_government = democratic
				NOT = { has_war_with = ALB }
			}
			modifier = {
				factor = 0.5
				OR = {
					has_government = communism
					has_government = neutrality
				}
			}
			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 = ALB }
				}
				news_event = deluge_italy.6
			}
			
			add_named_threat = { threat = 1 name = italy_claims_albania }
			
			add_state_claim = 44
			add_state_claim = 105
			add_state_claim = 185
			
			if = { limit = { NOT = { owns_state = 44 } }
				random_country = {
					limit = { owns_state = 44 }
					ROOT = {
						create_wargoal = {
							type = take_claimed_state
							target = PREV
							generator = { 44 105 185 }
						}
					}
				}
			}
		}
		will_lead_to_war_with = ALB
	}
	
	focus = {
		id = italy_claim_greece
		icon = GFX_goal_generic_occupy_states_ongoing_war
		prerequisite = { focus = italy_create_faction }
		x = 5
		y = 7
		available_if_capitulated = no
		cost = 10
		available = {
			NOT = { is_in_faction_with = GRE }
			is_subject = no
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 5
				has_war_with = GRE
			}
			modifier = {
				factor = 0.5
				has_war = yes
				NOT = { has_war_with = GRE }
			}
			modifier = {
				factor = 0
				has_government = democratic
				NOT = { has_war_with = GRE }
			}
			modifier = {
				factor = 0.5
				OR = {
					has_government = communism
					has_government = neutrality
				}
			}
			modifier = {
				factor = 0.5
				any_country = {
					ROOT = {
						has_wargoal_against = PREV
					}
				}
			}
			modifier = {
				factor = 2
				is_historical_focus_on = yes
			}
		}
		completion_reward = {
			if = {
				limit = {
					NOT = { has_war_with = GRE }
				}
				news_event = deluge_italy.7
			}
			
			add_named_threat = { threat = 1 name = italy_claims_greece }
			
			add_state_claim = 47
			add_state_claim = 186
			add_state_claim = 731
			add_state_claim = 182
			
			if = { limit = { NOT = { owns_state = 47 } }
				random_country = {
					limit = { owns_state = 47 }
					ROOT = {
						create_wargoal = {
							type = take_claimed_state
							target = PREV
							generator = { 47 186 731 182 }
						}
					}
				}
			}
		}
		will_lead_to_war_with = GRE
	}
	
	focus = {
		id = italy_claim_ethiopia
		icon = GFX_goal_generic_occupy_states_ongoing_war
		prerequisite = { focus = italy_create_faction }
		x = 7
		y = 7
		available_if_capitulated = no
		cost = 10
		available = {
			NOT = { is_in_faction_with = ETH }
			is_subject = no
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 5
				has_war_with = ETH
			}
			modifier = {
				factor = 0.5
				has_war = yes
				NOT = { has_war_with = ETH }
			}
			modifier = {
				factor = 0
				has_government = democratic
				NOT = { has_war_with = ETH }
			}
			modifier = {
				factor = 0
				NOT = {
					OR = {
						182 = { # crete
							owner = {
								is_in_faction_with = ROOT
							}
						}
						547 = { # kenya
							owner = {
								is_in_faction_with = ROOT
							}
						}
						268 = { # somaliland
							owner = {
								is_in_faction_with = ROOT
							}
						}
						659 = { # aden
							owner = {
								is_in_faction_with = ROOT
							}
						}
						679 = { # hejaz
							owner = {
								is_in_faction_with = ROOT
							}
						}
						453 = { # sinai
							owner = {
								is_in_faction_with = ROOT
							}
						}
					}
				}
			}
			modifier = {
				factor = 0.1
				OR = {
					has_government = communism
					has_government = neutrality
				}
			}
			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 = ETH }
				}
				news_event = deluge_italy.8
			}
			
			add_named_threat = { threat = 1 name = italy_claims_ethiopia }

			create_wargoal = {
				type = puppet_wargoal_focus
				target = ETH
			}
		}
		will_lead_to_war_with = ETH
	}
	
	focus = {
		id = italy_claim_austria
		icon = GFX_goal_war_austria
		prerequisite = { focus = italy_create_faction }
		x = 2
		y = 8
		available_if_capitulated = no
		cost = 10
		available = {
			NOT = { has_war_with = AUS }
			NOT = { is_in_faction_with = AUS }
			is_subject = no
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 5
				is_in_faction_with = POL
			}
			modifier = {
				factor = 5
				is_in_faction_with = FRA
			}
			modifier = {
				factor = 3
				is_in_faction_with = ENG
			}
			modifier = {
				factor = 0.1
				AUS = {
					is_in_faction_with = FRA
				}
				NOT = { is_in_faction_with = POL }
			}
			modifier = {
				factor = 0.1
				AUS = {
					is_in_faction_with = POL
				}
				NOT = { is_in_faction_with = FRA }
			}
			modifier = {
				factor = 0
				has_government = democratic
			}
			modifier = {
				factor = 0.5
				OR = {
					has_government = communism
					has_government = neutrality
				}
			}
			modifier = {
				factor = 0.5
				any_country = {
					ROOT = {
						has_wargoal_against = PREV
					}
				}
			}
			modifier = {
				factor = 2
				is_historical_focus_on = yes
			}
		}
		completion_reward = {
			AUS = { country_event = { id = deluge_italy.15 } }
			
			add_named_threat = { threat = 3 name = italy_claims_austria }
			
			add_state_claim = 153
			add_state_claim = 102
		}
		will_lead_to_war_with = AUS
	}
	
	focus = {
		id = italy_claim_france
		icon = GFX_goal_generic_major_war
		prerequisite = { focus = italy_create_faction }
		x = 4
		y = 8
		available_if_capitulated = no
		cost = 10
		available = {
			NOT = { has_war_with = FRA }
			NOT = { is_in_faction_with = FRA }
			is_subject = no
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 5
				is_in_faction_with = POL
			}
			modifier = {
				factor = 3
				is_in_faction_with = ENG
			}
			modifier = {
				factor = 3
				is_in_faction_with = SOV
			}
			modifier = {
				factor = 0.1
				FRA = {
					is_in_faction_with = AUS
				}
				NOT = { is_in_faction_with = POL }
			}
			modifier = {
				factor = 0.1
				FRA = {
					is_in_faction_with = ENG
				}
				NOT = { is_in_faction_with = POL }
			}
			modifier = {
				factor = 0
				has_government = democratic
			}
			modifier = {
				factor = 0.5
				OR = {
					has_government = communism
					has_government = neutrality
				}
			}
			modifier = {
				factor = 0.5
				any_country = {
					ROOT = {
						has_wargoal_against = PREV
					}
				}
			}
			modifier = {
				factor = 2
				is_historical_focus_on = yes
			}
		}
		completion_reward = {
			FRA = { country_event = { id = deluge_italy.31 } }
			
			add_named_threat = { threat = 5 name = italy_claims_france }
			
			add_state_claim = 735
			add_state_claim = 32
			add_state_claim = 21
		}
		will_lead_to_war_with = FRA
	}
	
	focus = {
		id = italy_claim_malta
		icon = GFX_focus_generic_strike_at_democracy1
		prerequisite = { focus = italy_create_faction }
		x = 6
		y = 8
		available_if_capitulated = no
		cost = 10
		available = {
			ENG = { owns_state = 116 }
			NOT = { has_war_with = ENG }
			NOT = { is_in_faction_with = ENG }
			is_subject = no
		}
		ai_will_do = {
			factor = 10
			modifier = {
				factor = 0.1
				has_war = yes
			}
			modifier = {
				factor = 0.5
				any_country = {
					ROOT = {
						has_wargoal_against = PREV
					}
				}
			}
			modifier = {
				factor = 2
				is_historical_focus_on = yes
			}
		}
		completion_reward = {
			country_event = { id = deluge_italy.22 }
			add_state_claim = 116
		}
		will_lead_to_war_with = ENG
	}
	
	focus = {
		id = italy_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 = italy_league_leave
		icon = GFX_focus_league_of_nations
		prerequisite = { focus = italy_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
	
}