focus_tree = {
	id = mexico_vic_liberal_ft
	continuous_focus_position = { x = 500 y = 1000 }
	country = {
		factor = 0
		modifier = {
			add = 100
			tag = MEX
			has_country_flag = MEX_civ_ended_liberals
		}
	}
	
	default = no
	
	focus = {
		id = MEX_rep_secure_reform_war_victory
		icon = GFX_Focus_victory_mexico
		x = 7
		y = 0
		cost = 30
		available_if_capitulated = no
		ai_will_do = { factor = 1 }
		completion_reward = {
			add_political_power = 20
			add_stability = 0.02
			hidden_effect = {
				476 = { 
					add_claim_by = MEC
					OWNER = { PREV = { state_event = { id = mexico.38 days = 1 random_days = 5 trigger_for = controller } } }
				}
				475 = { 
					add_claim_by = MEC
					OWNER = { PREV = { state_event = { id = mexico.38 days = 6 random_days = 5 trigger_for = controller } } }
				}
				474 = { 
					add_claim_by = MEC
					OWNER = { PREV = { state_event = { id = mexico.38 days = 11 random_days = 5 trigger_for = controller } } }
				}
				481 = { 
					add_claim_by = MEC
					OWNER = { PREV = { state_event = { id = mexico.38 days = 16 random_days = 5 trigger_for = controller } } }
				}
				482 = { 
					add_claim_by = MEC
					OWNER = { PREV = { state_event = { id = mexico.38 days = 21 random_days = 5 trigger_for = controller } } }
				}
				483 = { 
					add_claim_by = MEC
					OWNER = { PREV = { state_event = { id = mexico.38 days = 26 random_days = 5 trigger_for = controller } } }
				}
				1125 = { 
					add_claim_by = MEC
					OWNER = { PREV = { state_event = { id = mexico.38 days = 32 random_days = 5 trigger_for = controller } } }
				}
			}
		}
	}
	focus = {
		id = MEX_rep_unify_the_liberals
		icon = GFX_Focus_Ideology_Liberal_comprimise
		x = -1
		y = 1
		relative_position_id = MEX_rep_secure_reform_war_victory
		cost = 45
		available_if_capitulated = no
		ai_will_do = { factor = 1 }
		prerequisite = { focus = MEX_rep_secure_reform_war_victory }
		completion_reward = {
			add_stability = 0.05
		}
	}
	focus = {
		id = MEX_rep_fight_civil_disobedience
		icon = GFX_Focus_Attack_PAP
		x = 1
		y = 1
		relative_position_id = MEX_rep_secure_reform_war_victory
		cost = 45
		available_if_capitulated = no
		ai_will_do = { factor = 1 }
		prerequisite = { focus = MEX_rep_secure_reform_war_victory }
		completion_reward = {
			custom_effect_tooltip = MEX_rep_fight_civil_disobedience_tooltip
			set_country_flag = MEX_mexican_reform_war_resistance_flag
		}
	}
	focus = {
		id = MEX_rep_expel_enemy_ambassadors
		icon = GFX_goal_tfv_sever_ties_with_uk
		x = 0
		y = 2
		relative_position_id = MEX_rep_secure_reform_war_victory
		cost = 45
		available_if_capitulated = no
		ai_will_do = { factor = 1 }
		prerequisite = { focus = MEX_rep_unify_the_liberals }
		prerequisite = { focus = MEX_rep_fight_civil_disobedience }
		completion_reward = {
			SPR = {
				add_opinion_modifier = {
					target = MEX
					modifier = medium_decrease
				}
			}
			PAP = {
				add_opinion_modifier = {
					target = MEX
					modifier = medium_decrease
				}
			}
			GUA = {
				add_opinion_modifier = {
					target = MEX
					modifier = medium_decrease
				}
			}
		}
	}
	focus = {
		id = MEX_rep_enforce_the_constitution
		icon = GFX_focus_PIE_Casus_Belli
		x = 0
		y = 1
		relative_position_id = MEX_rep_expel_enemy_ambassadors
		cost = 30
		available = {
			custom_trigger_tooltip = {
				tooltip = MEX_rep_enforce_the_constitution_trigger
				all_owned_state = { NOT = { is_claimed_by = MEC } }
			}
		}
		available_if_capitulated = no
		ai_will_do = { factor = 1 }
		prerequisite = { focus = MEX_rep_expel_enemy_ambassadors }
		completion_reward = {
			clr_country_flag = MEX_mexican_reform_war_resistance_flag
		}
	}
	focus = {
		id = MEX_rep_secularize_horspitals
		icon = GFX_Focus_medicine_cross
		x = -1
		y = 1
		relative_position_id = MEX_rep_enforce_the_constitution
		cost = 30
		available_if_capitulated = no
		ai_will_do = { factor = 1 }
		prerequisite = { focus = MEX_rep_enforce_the_constitution }
		completion_reward = {
			if = {
				limit = { has_idea = MEX_idea_uncontrolled_catholic_church_2 }
				swap_ideas = {
					remove_idea = MEX_idea_uncontrolled_catholic_church_2
					add_idea = MEX_idea_uncontrolled_catholic_church_3
				}
			}
			else_if = {
				limit = { has_idea = MEX_idea_uncontrolled_catholic_church_3 }
				swap_ideas = {
					remove_idea = MEX_idea_uncontrolled_catholic_church_3
					add_idea = MEX_idea_uncontrolled_catholic_church_4
				}
			}
			else_if = {
				limit = { has_idea = MEX_idea_uncontrolled_catholic_church_4 }
				remove_ideas = MEX_idea_uncontrolled_catholic_church_4
			}
			else = { custom_effect_tooltip = MEX_idea_uncontrolled_catholic_church_decreased_tooltip }
		}
	}
	focus = {
		id = MEX_rep_ban_cloisters_and_convents
		icon = GFX_goal_focus_disestablish_church_ireland
		x = 1
		y = 1
		relative_position_id = MEX_rep_enforce_the_constitution
		cost = 30
		available_if_capitulated = no
		ai_will_do = { factor = 1 }
		prerequisite = { focus = MEX_rep_enforce_the_constitution }
		completion_reward = {
			if = {
				limit = { has_idea = MEX_idea_uncontrolled_catholic_church_2 }
				swap_ideas = {
					remove_idea = MEX_idea_uncontrolled_catholic_church_2
					add_idea = MEX_idea_uncontrolled_catholic_church_3
				}
			}
			else_if = {
				limit = { has_idea = MEX_idea_uncontrolled_catholic_church_3 }
				swap_ideas = {
					remove_idea = MEX_idea_uncontrolled_catholic_church_3
					add_idea = MEX_idea_uncontrolled_catholic_church_4
				}
			}
			else_if = {
				limit = { has_idea = MEX_idea_uncontrolled_catholic_church_4 }
				remove_ideas = MEX_idea_uncontrolled_catholic_church_4
			}
			else = { custom_effect_tooltip = MEX_idea_uncontrolled_catholic_church_decreased_tooltip }
		}
	}
	focus = {
		id = MEX_rep_face_debt
		icon = GFX_Focus_economic_crisis
		x = 7
		y = 2
		relative_position_id = MEX_rep_secure_reform_war_victory
		cost = 30
		available_if_capitulated = no
		ai_will_do = { factor = 1 }
		completion_reward = {
			add_political_power = -50
		}
	}
	focus = {
		id = MEX_rep_continue_ecclesiastical_nationalization
		icon = GFX_Focus_Government_Reform
		x = -2
		y = 1
		relative_position_id = MEX_rep_face_debt
		cost = 30
		available_if_capitulated = no
		ai_will_do = { factor = 1 }
		prerequisite = { focus = MEX_rep_face_debt }
		prerequisite = { focus = MEX_rep_expel_enemy_ambassadors }
		available = {
        	set_temp_variable = { amount_of_money_to_check = 0.5 }
        	has_specific_amount_of_money_with_inflation_included = yes
    	}
		
		completion_reward = {
			set_temp_variable = { money_to_gain = -0.5 }
        	add_money_with_tooltip_effect = yes 
			if = {
				limit = { has_idea = MEX_idea_uncontrolled_catholic_church_2 }
				swap_ideas = {
					remove_idea = MEX_idea_uncontrolled_catholic_church_2
					add_idea = MEX_idea_uncontrolled_catholic_church_3
				}
			}
			else_if = {
				limit = { has_idea = MEX_idea_uncontrolled_catholic_church_3 }
				swap_ideas = {
					remove_idea = MEX_idea_uncontrolled_catholic_church_3
					add_idea = MEX_idea_uncontrolled_catholic_church_4
				}
			}
			else_if = {
				limit = { has_idea = MEX_idea_uncontrolled_catholic_church_4 }
				remove_ideas = MEX_idea_uncontrolled_catholic_church_4
			}
			else = { custom_effect_tooltip = MEX_idea_uncontrolled_catholic_church_decreased_tooltip }
		}
	}
	focus = {
		id = MEX_rep_adopt_the_metric_system
		icon = GFX_Focus_Industrial_Complex
		x = 0
		y = 1
		relative_position_id = MEX_rep_face_debt
		cost = 30
		available_if_capitulated = no
		ai_will_do = { factor = 1 }
		prerequisite = { focus = MEX_rep_face_debt }
		prerequisite = { focus = MEX_rep_expel_enemy_ambassadors }
		completion_reward = {
			add_timed_idea = {
				idea = MEX_rep_adopt_the_metric_system_idea
				days = 360
			}
		}
	}
	focus = {
		id = MEX_rep_coin_pesos
		icon = GFX_focus_na_n_economic_reform
		x = 2
		y = 1
		relative_position_id = MEX_rep_face_debt
		cost = 30
		available_if_capitulated = no
		ai_will_do = { factor = 1 }
		prerequisite = { focus = MEX_rep_face_debt }
		prerequisite = { focus = MEX_rep_expel_enemy_ambassadors }
		available = {
        	set_temp_variable = { amount_of_money_to_check = 0.5 }
        	has_specific_amount_of_money_with_inflation_included = yes
    	}
		
		completion_reward = {
			set_temp_variable = { money_to_gain = -0.5 }
        	add_money_with_tooltip_effect = yes
		}
	}
	focus = {
		id = MEX_rep_postpone_european_debt
		icon = GFX_Focus_Elite_Arrested
		x = 0
		y = 2
		relative_position_id = MEX_rep_face_debt
		cost = 30
		available_if_capitulated = no
		ai_will_do = { factor = 1 }
		prerequisite = { focus = MEX_rep_continue_ecclesiastical_nationalization }
		prerequisite = { focus = MEX_rep_adopt_the_metric_system }
		prerequisite = { focus = MEX_rep_coin_pesos }
		completion_reward = {
			activate_decision = MEX_cease_foreign_debt_repayments_decision
		}
	}
	
	
	#Old Focus Tree
	
	#focus = {
	#	id = MEX_victory_against_the_traitors
	#	icon = GFX_Focus_victory_mexico
	#	x = 11
	#	y = 0
	#	cost = 33
	#	available_if_capitulated = no
	#	ai_will_do = {
	#		factor = 1
	#	}
	#	completion_reward = {
	#		add_political_power = 20
	#		add_stability = 0.02
	#	}
	#}
	
	#focus = {
	#	id = MEX_healing_the_scars
	#	icon = GFX_Focus_Government_Reform
	#	x = 11
	#	y = 1
	#	cost = 33
	#	prerequisite = {
	#		focus = MEX_victory_against_the_traitors
	#	}
	#	available_if_capitulated = no
	#	ai_will_do = {
	#		factor = 10
	#		modifier = {
	#			is_historical_focus_on = yes
	#			factor = 100
	#		}
	#	}
	#	completion_reward = {
	#		remove_ideas = MEX_idea_scars_of_the_civil_war
	#	}
	#}
	
	#focus = {
	#	id = MEX_the_conspiracy
	#	icon = GFX_goal_focus_conspiracy_murder_act
	#	x = 14
	#	y = 2
	#	cost = 33
	#	prerequisite = {
	#		focus = MEX_healing_the_scars
	#	}
	#	mutually_exclusive = {
	#		focus = MEX_continue_the_reforms
	#	}
	#	available_if_capitulated = no
	#	ai_will_do = {
	#		factor = 1
	#		modifier = {
	#			is_historical_focus_on = yes
	#			factor = 0
	#		}
	#	}
	#	completion_reward = {
	#		add_political_power = -15
	#		add_stability = -0.015
	#	}
	#}
	
	#focus = {
	#	id = MEX_organize_the_opposition
	#	icon = GFX_Focus_Elite
	#	x = 15
	#	y = 3
	#	cost = 33
	#	prerequisite = {
	#		focus = MEX_the_conspiracy
	#	}
	#	available_if_capitulated = no
	#	ai_will_do = {
	#		factor = 0.1
	#	}
	#	completion_reward = {
	#		add_political_power = -35
	#		add_stability = -0.03
	#	}
	#}
	
	#focus = {
	#	id = MEX_gather_clerical_support
	#	icon = GFX_Focus_Diplomatic_Ally_Pope
	#	x = 13
	#	y = 3
	#	cost = 33
	#	prerequisite = {
	#		focus = MEX_the_conspiracy
	#	}
	#	available_if_capitulated = no
	#	ai_will_do = {
	#		factor = 0.1
	#	}
	#	completion_reward = {
	#		add_ideas = MEX_idea_uncontrolled_catholic_church_4
	#	}
	#}
	
	#focus = {
	#	id = MEX_the_assassination
	#	icon = GFX_Focus_Partisans_Elimination
	#	x = 14
	#	y = 4
	#	cost = 33
	#	prerequisite = {
	#		focus = MEX_gather_clerical_support
	#	}
	#	prerequisite = {
	#		focus = MEX_organize_the_opposition
	#	}
	#	available_if_capitulated = no
	#	ai_will_do = {
	#		factor = 0.1
	#	}
	#	completion_reward = {
	#		country_event = mexico.30
	#	}
	#}
	
	#focus = {
	#	id = MEX_purge_the_liberal_opposition
	#	icon = GFX_Focus_Partisans_Suppress_Liberalism
	#	x = 12
	#	y = 5
	#	cost = 33
	#	prerequisite = {
	#		focus = MEX_the_assassination
	#	}
	#	available_if_capitulated = no
	#	ai_will_do = {
	#		factor = 0.1
	#	}
	#	completion_reward = {
	#		add_popularity = {
	#			ideology = centrism
	#			popularity = -0.10
	#		}	
	#	}
	#}
	
	#focus = {
	#	id = MEX_the_tiger_seizes_absolute_power
	#	icon = GFX_focus_eng_move_to_secure_the_dominions
	#	x = 14
	#	y = 5
	#	cost = 33
	#	prerequisite = {
	#		focus = MEX_the_assassination
	#	}
	#	available_if_capitulated = no
	#	ai_will_do = {
	#		factor = 0.1
	#	}
	#	completion_reward = {
	#		swap_ideas = {
	#			remove_idea = human_rights
	#			add_idea = no_constitution
	#		}
	#		swap_ideas = {
	#			remove_idea = free_elections
	#			add_idea = no_elections
	#		}
	#		add_political_power = 35
	#	}
	#}
	
	#focus = {
	#	id = MEX_restore_clerical_power
	#	icon = GFX_goal_focus_BEL_Catholic2
	#	x = 16
	#	y = 5
	#	cost = 33
	#	prerequisite = {
	#		focus = MEX_the_assassination
	#	}
	#	available_if_capitulated = no
	#	ai_will_do = {
	#		factor = 0.1
	#	}
	#	completion_reward = {
	#		swap_ideas = {
	#			remove_idea = MEX_idea_uncontrolled_catholic_church_4
	#			add_idea = MEX_idea_uncontrolled_catholic_church_0
	#		}
	#		add_political_power = -50
	#		add_stability = 0.10
	#	}
	#}
	
	#focus = {
	#	id = MEX_agreements_with_france
	#	icon = GFX_goal_focus_trade_france_focus
	#	x = 14
	#	y = 6
	#	cost = 120
	#	prerequisite = {
	#		focus = MEX_the_tiger_seizes_absolute_power
	#	}
	#	prerequisite = {
	#		focus = MEX_restore_clerical_power
	#	}
	#	prerequisite = {
	#		focus = MEX_purge_the_liberal_opposition
	#	}
	#	available = {
	#		is_subject = no
	#	}
	#	bypass = {
	#		OR = {
	#			is_subject = yes
	#			has_war_with = FRA
	#			has_war_with = USA
	#			has_war_with = CSA
	#			has_war_with = SPR
	#		}
	#	}
	#	available_if_capitulated = no
	#	ai_will_do = {
	#		factor = 0.1
	#	}
	#	completion_reward = {
	#		MEX = {
	#			add_political_power = 150
	#			add_tech_bonus = {
	#				bonus = 0.5
	#				uses = 3
	#				category = mechanical_engineering_tech
	#			}
	#			random_owned_state = {
	#				limit = { industrial_complex > 0 }
	#				remove_building = {
	#					type = industrial_complex
	#					level = 1
	#				}
	#			}
	#			load_focus_tree = generic_vic_ft
	#		}
	#		FRA = { 
	#			give_guarantee = MEX
	#			random_owned_state = {
	#				limit = { is_core_of = FRA }
	#				add_building_construction = {
	#					type = industrial_complex
	#					level = 1
	#					instant_build = yes
	#				}
	#			}
	#		}
	#	}
	#}
	#
	#
	#focus = {
	#	id = MEX_continue_the_reforms
	#	icon = GFX_Focus_Government_Reform_Administration
	#	x = 8
	#	y = 2
	#	cost = 33
	#	prerequisite = {
	#		focus = MEX_healing_the_scars
	#	}
	#	mutually_exclusive = {
	#		focus = MEX_the_conspiracy
	#	}
	#	available_if_capitulated = no
	#	ai_will_do = {
	#		factor = 1
	#	}
	#	completion_reward = {
	#		add_political_power = -15
	#		add_stability = 0.01
	#		SPR = { country_event = { days = 20 id =  spain.7 } }
	#	}
	#}
	
	#focus = {
	#	id = MEX_weaken_the_churchs_power
	#	icon = GFX_goal_focus_disestablish_church_ireland
	#	x = 9
	#	y = 3
	#	cost = 33
	#	prerequisite = {
	#		focus = MEX_continue_the_reforms
	#	}
	#	available_if_capitulated = no
	#	ai_will_do = {
	#		factor = 1
	#	}
	#	completion_reward = {
	#		add_political_power = 20
	#	}
	#}
	
	
	#focus = {
	#	id = MEX_weaken_the_conservative_threat
	#	icon = GFX_Focus_Elite_Arrested
	#	x = 7
	#	y = 3
	#	cost = 33
	#	prerequisite = {
	#		focus = MEX_continue_the_reforms
	#	}
	#	available_if_capitulated = no
	#	ai_will_do = {
	#		factor = 1
	#	}
	#	completion_reward = {
	#		add_popularity = {
	#			ideology = traditional_conservatism
	#			popularity = -0.05
	#		}	
	#		add_political_power = -30
	#	}
	#}
	
	#focus = {
	#	id = MEX_continue_the_constitutional_reforms
	#	icon = GFX_Focus_Law_Vote_1
	#	x = 8
	#	y = 4
	#	cost = 33
	#	prerequisite = {
	#		focus = MEX_weaken_the_churchs_power
	#	}
	#	prerequisite = {
	#		focus = MEX_weaken_the_conservative_threat
	#	}
	#	available_if_capitulated = no
	#	ai_will_do = {
	#		factor = 1
	#	}
	#	completion_reward = {
	#		add_political_power = 15
	#	}
	#}
	#
	
	#focus = {
	#	id = MEX_raise_taxation_on_landlords
	#	icon = GFX_Focus_Economy_Increase_Wages
	#	x = 10
	#	y = 5
	#	cost = 33
	#	prerequisite = {
	#		focus = MEX_continue_the_constitutional_reforms
	#	}
	#	available_if_capitulated = no
	#	ai_will_do = {
	#		factor = 1
	#	}
	#	completion_reward = {
	#		swap_ideas = {
	#			remove_idea = taxation_level_3
	#			add_idea = taxation_level_4
	#		}	
	#	}
	#}
	
	
	#focus = {
	#	id = MEX_electoral_reforms
	#	icon = GFX_Focus_Vote_generic
	#	x = 8
	#	y = 5
	#	cost = 33
	#	prerequisite = {
	#		focus = MEX_continue_the_constitutional_reforms
	#	}
	#	available_if_capitulated = no
	#	ai_will_do = {
	#		factor = 1
	#	}
	#	completion_reward = {
	#		swap_ideas = {
	#			remove_idea = property_owners_suffrage
	#			add_idea = universal_male_suffrage
	#		}	
	#	}
	#}
	#
	
	#focus = {
	#	id = MEX_limit_the_election_period
	#	icon = GFX_Focus_Vote_Election
	#	x = 6
	#	y = 5
	#	cost = 33
	#	prerequisite = {
	#		focus = MEX_continue_the_constitutional_reforms
	#	}
	#	available_if_capitulated = no
	#	ai_will_do = {
	#		factor = 1
	#	}
	#	completion_reward = {
	#		swap_ideas = {
	#			remove_idea = free_elections
	#			add_idea = limited_elections
	#		}	
	#	}
	#}
	
	#focus = {
	#	id = MEX_deal_with_the_french_intervention
	#	icon = GFX_Focus_mexican_intervention
	#	x = 8
	#	y = 6
	#	cost = 120
	#	available = {
	#		MEX = {
	#			has_war_with = FRA
	#		}
	#	}
	#	bypass = {
	#		OR = {
	#			is_subject = yes
	#			AND = {
	#				NOT = { USA = { has_war_with = CSA has_war_with = NEG } }
	#				NOT = { has_war_with = FRA }
	#			}
	#		}
	#	}
	#	prerequisite = {
	#		focus = MEX_electoral_reforms
	#	}
	#	prerequisite = {
	#		focus = MEX_limit_the_election_period
	#	}
	#	prerequisite = {
	#		focus = MEX_raise_taxation_on_landlords
	#	} 
	#	available_if_capitulated = no
	#	ai_will_do = {
	#		factor = 1
	#	}
	#	completion_reward = {
	#		add_war_support = 0.15
	#		add_political_power = 120
	#		add_tech_bonus = {
	#			bonus = 0.5
	#			uses = 2
	#			category = mechanical_engineering_tech
	#		}
	#		add_tech_bonus = {
	#			bonus = 0.2
	#			uses = 2
	#			category = infantry_weapons
	#		}
	#		load_focus_tree = generic_vic_ft
	#	}
	#}
}
