CHL_industrial_decisions = {
	
	# Expand the Forestry in Araucania
	CHL_expand_araucanian_forestry_decision  = {

		priority = 11

		icon = GFX_decision_generic_forestry

		ai_will_do = {
			base = 50
		}

		highlight_states = {
			highlight_state_targets = {
				state = 950
			}
		}

		allowed = {  
			original_tag = CHL
		}

		available = {
			has_completed_focus = CHL_expand_the_forestry
			num_of_civilian_factories_available_for_projects > 2
			controls_state = 950
		} 

		visible = { 
			has_completed_focus = CHL_expand_the_forestry 
			NOT = {
				has_country_flag = CHL_expanded_araucanian_forestry_flag
			}
		}

		days_remove = 35

		cost = 75

		modifier = {
			civilian_factory_use = 3
		}

		complete_effect = { 
			  
		}

		remove_effect = {
			hidden_effect = {
				set_country_flag = CHL_expanded_araucanian_forestry_flag
			}

			IF = {
				limit = {
					has_mapuche_conflict = yes
				}
				CHL_mapuche_conflict_level_up = yes
			}

			random_owned_controlled_state = {
				limit = {
					state = 950
				}
				add_extra_state_shared_building_slots = 3
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
		} 

	}

	# Expand the Forestry in Santiago
	CHL_expand_chilean_forestry_decision  = {

		priority = 11

		icon = GFX_decision_generic_forestry

		ai_will_do = {
			base = 60
		}

		highlight_states = {
			highlight_state_targets = {
				state = 279
			}
		}

		allowed = {  
			original_tag = CHL
		}

		available = {
			has_completed_focus = CHL_expand_the_forestry
			num_of_civilian_factories_available_for_projects > 2
			controls_state = 279
		} 

		visible = { 
			has_completed_focus = CHL_expand_the_forestry 
			NOT = {
				has_country_flag = CHL_expanded_chilean_forestry_flag
			}
		}

		days_remove = 50
 
		cost = 100

		modifier = {
			civilian_factory_use = 3
		}

		complete_effect = { 
			  
		}

		remove_effect = {
			hidden_effect = {
				set_country_flag = CHL_expanded_chilean_forestry_flag
			}

			random_owned_controlled_state = {
				limit = {
					state = 279
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
		} 

	}

	# Take Loans and Invest into Industrial Development
	CHL_take_loans_for_factory  = {

		priority = 10

		icon = GFX_decision_gre_investment_decisions

		ai_will_do = {
			base = 50
		}
	
		allowed = {  
			original_tag = CHL 
		}
	
		available = {
			has_completed_focus = CHL_international_loans
			any_country = {
				is_major = yes
				exists = yes
				NOT = { 
					tag = ROOT
				}
				has_opinion = {
					target = ROOT
					value > 74
				} 
			}
			
		}

		visible = { 
			has_completed_focus = CHL_international_loans
			NOT = {
				has_country_flag = CHL_loans_for_factories_flag
			}
		}

		days_remove = 70

		days_re_enable = 180

		cost = 50

		modifier = {
			consumer_goods_factor = 0.15
			political_power_factor = -0.1
		}

		complete_effect = { 
		}

		remove_effect = {
			
			random_owned_controlled_state = {
				limit = {
					is_core_of = ROOT
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}

			#hidden_effect = {
			#	set_country_flag = CHL_loans_for_factories_flag
			#}
		}

	}

	# Take Loans and Invest into the Economic Sector
	CHL_take_loans_for_economy  = {

		priority = 8

		icon = GFX_decision_gre_investment_decisions

		ai_will_do = {
			base = 40
		}
	
		allowed = {  
			original_tag = CHL 
		}
	
		available = {
			has_completed_focus = CHL_international_loans
			any_country = {
				is_major = yes
				exists = yes
				NOT = { 
					tag = ROOT
				}
				has_opinion = {
					target = ROOT
					value > 74
				} 
			}
		}

		visible = { 
			has_completed_focus = CHL_international_loans
			NOT = {
				has_country_flag = CHL_loans_for_economy_1_flag
			}
		}

		days_remove = 70

		cost = 100

		modifier = {
			consumer_goods_factor = 0.15
			political_power_factor = -0.1
		}

		complete_effect = { 
		}

		remove_effect = {
			
			custom_effect_tooltip = CHL_modify_chilean_economy_ns_intro
			add_to_variable = { CHL_economy_local_resources_factor = 0.05 tooltip = local_resources_factor_tt }
			add_to_variable = { CHL_economy_consumer_goods_factor = -0.05 tooltip = consumer_goods_factor_tt }
			add_to_variable = { CHL_economy_production_speed_buildings_factor = 0.05 tooltip = production_speed_buildings_factor_tt }

			hidden_effect = {
				set_country_flag = CHL_loans_for_economy_1_flag
			}
		}

	}

	# Take Loans and Invest into the Economic Sector
	CHL_take_loans_for_economy_2  = {

		priority = 8

		icon = GFX_decision_gre_investment_decisions

		ai_will_do = {
			base = 40
		}
	
		allowed = {  
			original_tag = CHL 
		}
	
		available = {
			has_completed_focus = CHL_international_loans
			any_country = {
				is_major = yes
				exists = yes
				NOT = { 
					tag = ROOT
				}
				has_opinion = {
					target = ROOT
					value > 74
				} 
			}
		}

		visible = { 
			has_completed_focus = CHL_international_loans
			has_country_flag = CHL_loans_for_economy_1_flag
			NOT = {
				has_country_flag = CHL_loans_for_economy_2_flag
			}
		}

		days_remove = 70

		cost = 120

		modifier = {
			consumer_goods_factor = 0.2
			political_power_factor = -0.15
		}

		complete_effect = { 
		}

		remove_effect = {
			
			custom_effect_tooltip = CHL_modify_chilean_economy_ns_intro
			add_to_variable = { CHL_economy_local_resources_factor = 0.05 tooltip = local_resources_factor_tt }
			add_to_variable = { CHL_economy_industrial_capacity_factory = 0.1 tooltip = industrial_capacity_factory_tt }
			add_to_variable = { CHL_economy_industrial_capacity_dockyard = 0.1 tooltip = industrial_capacity_dockyard_tt }

			hidden_effect = {
				set_country_flag = CHL_loans_for_economy_2_flag
			}
		}

	}

	# Expand the Steelworks in Talcahuano
	CHL_expand_araucanian_steelworks_decision  = {

		priority = 5

		icon = GFX_decision_steel

		ai_will_do = {
			base = 75
		}

		highlight_states = {
			highlight_state_targets = {
				state = 950
			}
		}

		allowed = {  
			original_tag = CHL
		}

		available = {
			has_completed_focus = CHL_found_national_steelworks
			num_of_civilian_factories_available_for_projects > 4
			controls_state = 950
		} 

		visible = { 
			has_completed_focus = CHL_found_national_steelworks 
			NOT = {
				has_country_flag = CHL_expanded_araucanian_steelworks_flag
			}
		}

		days_remove = 70

		cost = 100

		modifier = {
			civilian_factory_use = 5
		}

		complete_effect = { 
			  
		}

		remove_effect = {
			hidden_effect = {
				set_country_flag = CHL_expanded_araucanian_steelworks_flag
			}

			IF = {
				limit = {
					has_mapuche_conflict = yes
				}
				CHL_mapuche_conflict_level_up = yes
			}

			950 = {
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
				add_resource = {
					type = steel
					amount = 12
				}
			}
		} 

	}

	# Purchase American Rifles
	CHL_buy_american_rifles  = {

		priority = 4

		icon = GFX_decision_generic_industry

		ai_will_do = {
			base = 60
		}

		allowed = {  
			original_tag = CHL
		}

		available = {
			has_completed_focus = CHL_reapproach_america
			NOT = {
				has_dlc = "Arms Against Tyranny"
			}
			USA = {
				exists = yes
				has_government = democratic
				NOT = {
					has_war_with = CHL
				}
			}
			command_power > 10
		}

		visible = { 
			has_completed_focus = CHL_reapproach_america
			NOT = {
				has_dlc = "Arms Against Tyranny"
			}
		} 

		days_remove = 35

		days_re_enable = 56

		cost = 50

		complete_effect = {
			add_command_power = -10
		}

		modifier = {
			consumer_goods_factor = 0.1
		}

		remove_effect = {
			add_equipment_to_stockpile = {
			    type = infantry_equipment
			    amount = 1000
			    producer = USA
			}
		}

	}

	# Purchase American Artilley
	CHL_buy_american_artillery  = {

		priority = 3

		icon = GFX_decision_generic_industry

		ai_will_do = {
			base = 50
		}

		allowed = {  
			original_tag = CHL
		}

		available = {
			has_completed_focus = CHL_reapproach_america
			NOT = {
				has_dlc = "Arms Against Tyranny"
			}
			USA = {
				exists = yes
				has_government = democratic
				NOT = {
					has_war_with = CHL
				}
			}
			command_power > 10
		}

		visible = { 
			has_completed_focus = CHL_reapproach_america
			NOT = {
				has_dlc = "Arms Against Tyranny"
			}
		} 

		days_remove = 35

		days_re_enable = 56

		cost = 50

		complete_effect = {
			add_command_power = -10
		}

		modifier = {
			consumer_goods_factor = 0.1
		}

		remove_effect = {
			add_equipment_to_stockpile = {
			    type = artillery_equipment 
			    amount = 500
			    producer = USA
			}
		}

	}

	# Purchase American Support Equipment
	CHL_buy_american_support_equipment  = {

		priority = 2

		icon = GFX_decision_generic_industry

		ai_will_do = {
			base = 40
		}

		allowed = {  
			original_tag = CHL
		}

		available = {
			has_completed_focus = CHL_reapproach_america
			NOT = {
				has_dlc = "Arms Against Tyranny"
			}
			USA = {
				exists = yes
				has_government = democratic
				NOT = {
					has_war_with = CHL
				}
			}
			command_power > 10
		}

		visible = { 
			has_completed_focus = CHL_reapproach_america
			NOT = {
				has_dlc = "Arms Against Tyranny"
			}
		} 

		days_remove = 35 

		days_re_enable = 56

		cost = 50

		complete_effect = {
			add_command_power = -10
		}

		modifier = {
			consumer_goods_factor = 0.1
		}

		remove_effect = {
			add_equipment_to_stockpile = {
			    type = support_equipment_1 
			    amount = 500 
			    producer = USA
			}
		}

	}

}

CHL_mapuche_reconcilliation_decisions = {
	
	# Establish CONADI
	CHL_establish_conadi  = {

		priority = 50

		icon = GFX_decision_eng_trade_unions_support

		ai_will_do = {
			base = 120
		}

		allowed = {  
			original_tag = CHL
		}

		available = {
			has_completed_focus = CHL_mapuche_reconcilliation_campaigns
		}

		visible = { 
			has_completed_focus = CHL_mapuche_reconcilliation_campaigns
			NOT = {
				has_country_flag = CHL_formed_conadi_flag
			}
		} 

		days_remove = 35 

		cost = 75

		complete_effect = {
		}

		modifier = {
			consumer_goods_factor = 0.1
		}

		remove_effect = {
			
			CHL_mapuche_conflict_level_down = yes

			add_stability = 0.05

			every_state = {
				limit = {
					NOT = {
						is_core_of = CHL
					}
					is_controlled_by = CHL
					OR = {
						state = 953
						state = 954
						state = 955
						state = 512
					}
				}
				add_resistance = -10
				add_compliance = 15
			}

			hidden_effect = {
				set_country_flag = CHL_formed_conadi_flag
			}
		}

	}

	# Pledge to Protect Indigenous Lands
	CHL_protect_indigeous_lands = {

		priority = 45

		icon = GFX_decision_generic_operation

		ai_will_do = {
			base = 120
		}

		allowed = {  
			original_tag = CHL
		}

		available = {
			has_completed_focus = CHL_mapuche_reconcilliation_campaigns
		}

		visible = { 
			has_completed_focus = CHL_mapuche_reconcilliation_campaigns
			NOT = {
				OR = {
					has_country_flag = CHL_no_more_mapuche_conflict
					has_country_flag = CHL_protecting_mapuche_lands
				}
			}
			has_country_flag = CHL_formed_conadi_flag
		} 

		cost = 30

		complete_effect = {

			CHL_mapuche_conflict_level_down = yes

			950 = {
				add_dynamic_modifier = {
					modifier = CHL_protecting_mapuche_lands_modifier
					scope = CHL
				}
			}

			hidden_effect = {
				set_country_flag = CHL_protecting_mapuche_lands
			}
		}

	}

	# Grant Full Right to the Mapuche People
	CHL_grant_full_rights_to_the_mapuche = {

		priority = 60

		icon = GFX_decision_CHL_grant_full_rights_to_the_mapuche

		ai_will_do = {
			base = 800
		}

		allowed = {  
			original_tag = CHL
		}

		available = {
			has_completed_focus = CHL_mapuche_reconcilliation_campaigns
			has_country_flag = CHL_protecting_mapuche_lands
		}

		visible = { 
			has_completed_focus = CHL_mapuche_reconcilliation_campaigns
			NOT = {
				has_country_flag = CHL_no_more_mapuche_conflict
			}
			has_country_flag = CHL_formed_conadi_flag
		} 

		cost = 120

		complete_effect = {

			custom_effect_tooltip = CHL_grant_full_rights_to_the_mapuche_tt

			IF = {
				limit = {
					has_idea = CHL_the_mapuche_conflict_rebellion
				}
				remove_ideas = CHL_the_mapuche_conflict_rebellion
			}
			ELSE_IF = {
				limit = {
					has_idea = CHL_the_mapuche_conflict_much_worse
				}
				remove_ideas = CHL_the_mapuche_conflict_much_worse
			}
			ELSE_IF = {
				limit = {
					has_idea = CHL_the_mapuche_conflict_worse
				}
				remove_ideas = CHL_the_mapuche_conflict_worse
			}
			ELSE_IF = {
				limit = {
					has_idea = CHL_the_mapuche_conflict
				}
				remove_ideas = CHL_the_mapuche_conflict
			}
			ELSE_IF = {
				limit = {
					has_idea = CHL_the_mapuche_conflict_calmed
				}
				remove_ideas = CHL_the_mapuche_conflict_calmed
			}
			ELSE_IF = {
				limit = {
					has_idea = CHL_the_mapuche_conflict_near_gone
				}
				remove_ideas = CHL_the_mapuche_conflict_near_gone
			}
			ELSE_IF = {
				limit = {
					has_idea = CHL_mapuche_conflict_done
				}
				remove_ideas = CHL_mapuche_conflict_done
			}

			hidden_effect = {
				set_country_flag = CHL_no_more_mapuche_conflict
			}
		}

	}

	# Incorporate Mapuche Organizations
	CHL_incorporate_mapuche_organizations = {

		priority = 40

		icon = GFX_decision_generic_political_discourse

		ai_will_do = {
			base = 100
		}

		allowed = {  
			original_tag = CHL
		}

		available = {
			has_completed_focus = CHL_mapuche_reconcilliation_campaigns
		}

		visible = { 
			has_completed_focus = CHL_mapuche_reconcilliation_campaigns
			NOT = {
				has_country_flag = CHL_incorporated_mapuche_organizations
			}
			has_country_flag = CHL_formed_conadi_flag
		} 

		cost = 110

		complete_effect = {

			custom_effect_tooltip = available_political_advisor
			show_ideas_tooltip = CHL_guido_beck
			show_ideas_tooltip = CHL_rayen_quitral
			show_ideas_tooltip = CHL_manuel_manquilef
			show_ideas_tooltip = CHL_venancio_huenchual
			show_ideas_tooltip = CHL_esteban_romero_sandoval
			show_ideas_tooltip = CHL_manuel_neculman
			show_ideas_tooltip = CHL_carlos_huayquinir

			hidden_effect = {
				set_country_flag = CHL_incorporated_mapuche_organizations
			}
		}

	}


}

CHL_nacista_insurgency_decisions = {

	### MISSIONS ###
	
	CHL_nacista_coup_attempt = {

		priority = 100

		icon = GFX_decision_CHL_nacista_coup_attempt

		available = {
			hidden_trigger = { always = no }
		}

		days_mission_timeout = 978

		fire_only_once = yes

		activation = {
			original_tag = CHL
			NOT = {
				has_government = fascism
			}
			NOT = { 
				OR = {
					has_country_flag = CHL_fascist_and_communist_joint_civil_war_started
					has_global_flag = nacista_coup_attempt_happened
				} 
			}
			NOT = {
				OR = {
					has_completed_focus = CHL_denounce_the_anarchy
					has_completed_focus = CHL_avenge_the_pacification_of_araucania
				}
			}
		}

		visible = {
			tag = CHL
			NOT = {
				has_government = fascism
			}
			NOT = { 
				OR = {
					has_country_flag = CHL_fascist_and_communist_joint_civil_war_started
					has_global_flag = nacista_coup_attempt_happened
				} 
			}
			NOT = {
				OR = {
					has_completed_focus = CHL_denounce_the_anarchy
					#has_completed_focus = CHL_avenge_the_pacification_of_araucania
					has_completed_focus = CHL_address_the_mapuche_conflict
				}
			}
		}

		cancel_if_not_visible = yes

		is_good = no

		timeout_effect = {
			IF = {
				limit = {
					has_completed_focus = CHL_suppress_the_nacistas
					has_country_flag = CHL_expanded_carabineros_flag
				}
				country_event = CHL_political_events.13
			}
			ELSE_IF = {
				limit = {
					has_completed_focus = CHL_suppress_the_nacistas
					NOT = {
						has_country_flag = CHL_expanded_carabineros_flag
					}
				}
				country_event = CHL_political_events.15
			}
			ELSE = {
				country_event = CHL_political_events.14
			}
		}
	}

	CHL_nacistas_gathering_support_mission = {

		priority = 99

		icon = GFX_decision_eng_blackshirt_speech

		available = {
			hidden_trigger = { always = no }
		}

		days_mission_timeout = 60

		fire_only_once = yes

		activation = {
			always = no
		}

		visible = {
			tag = CHL
			NOT = {
				has_government = fascism
			}
			NOT = { 
				OR = {
					has_country_flag = CHL_fascist_and_communist_joint_civil_war_started
					has_global_flag = nacista_coup_attempt_happened
				} 
			}
			NOT = {
				OR = {
					has_completed_focus = CHL_denounce_the_anarchy
					has_completed_focus = CHL_address_the_mapuche_conflict
					has_completed_focus = CHL_rule_by_decree
				}
			}
		}

		cancel_if_not_visible = yes

		is_good = no

		timeout_effect = {
			
			add_popularity = {
				ideology = fascism
				popularity = 0.1
			}	

			hidden_effect = { activate_mission = CHL_nacista_newpapers_propaganda_mission }
		}
	}

	CHL_nacista_newpapers_propaganda_mission = {

		priority = 98

		icon = GFX_decision_hol_radio_oranje

		available = {
			hidden_trigger = { always = no }
		}

		days_mission_timeout = 86

		fire_only_once = yes

		activation = {
			always = no
		}

		visible = {
			tag = CHL
			NOT = {
				has_government = fascism
			}
			NOT = { 
				OR = {
					has_country_flag = CHL_fascist_and_communist_joint_civil_war_started
					has_global_flag = nacista_coup_attempt_happened
				} 
			}
			NOT = {
				OR = {
					has_completed_focus = CHL_denounce_the_anarchy
					has_completed_focus = CHL_address_the_mapuche_conflict
					has_completed_focus = CHL_rule_by_decree
				}
			}
		}

		cancel_if_not_visible = yes

		is_good = no

		timeout_effect = {
			
			CHL_anarchic_society_level_up = yes	

			add_stability = -0.02

			add_war_support = -0.02

			hidden_effect = { activate_mission = CHL_nacistas_approaching_ibanez_mission }
		}
	}

	CHL_nacistas_approaching_ibanez_mission = {

		priority = 97

		icon = GFX_decision_generic_political_discourse

		available = {
			hidden_trigger = { always = no }
		}

		days_mission_timeout = 140

		fire_only_once = yes

		activation = {
			always = no
		}

		visible = {
			tag = CHL
			NOT = {
				has_government = fascism
			}
			NOT = { 
				OR = {
					has_country_flag = CHL_fascist_and_communist_joint_civil_war_started
					has_global_flag = nacista_coup_attempt_happened
				} 
			}
			NOT = {
				OR = {
					has_completed_focus = CHL_denounce_the_anarchy
					has_completed_focus = CHL_address_the_mapuche_conflict
					has_completed_focus = CHL_rule_by_decree
				}
			}
		}

		cancel_if_not_visible = yes

		is_good = no

		timeout_effect = {
			
			add_popularity = {
				ideology = fascism
				popularity = 0.1
			}

			add_popularity = {
				ideology = neutrality
				popularity = 0.1
			}

			add_political_power = -75

			hidden_effect = { activate_mission = CHL_nacista_influence_in_the_universities_mission }
		}
	}

	CHL_nacista_influence_in_the_universities_mission = {

		priority = 96

		icon = GFX_decision_SOV_place_hq

		available = {
			hidden_trigger = { always = no }
		}

		days_mission_timeout = 210

		fire_only_once = yes

		activation = {
			always = no
		}

		visible = {
			tag = CHL
			NOT = {
				has_government = fascism
			}
			NOT = { 
				OR = {
					has_country_flag = CHL_fascist_and_communist_joint_civil_war_started
					has_global_flag = nacista_coup_attempt_happened
				} 
			}
			NOT = {
				OR = {
					has_completed_focus = CHL_denounce_the_anarchy
					has_completed_focus = CHL_address_the_mapuche_conflict
					has_completed_focus = CHL_rule_by_decree
				}
			}
		}

		cancel_if_not_visible = yes

		is_good = no

		timeout_effect = {

			IF = {
				limit = {
					has_country_flag = CHL_counterracted_nationalist_universities_flag
				}
				add_political_power = -25

				add_popularity = {
					ideology = fascism
					popularity = 0.02
				}	
			}
			ELSE_IF = {
				limit = {
					NOT = {
						has_country_flag = CHL_counterracted_nationalist_universities_flag
					}
				}
				add_stability = -0.03

				add_war_support = -0.03

				add_political_power = -75

				add_popularity = {
					ideology = fascism
					popularity = 0.05
				}	
			}

			hidden_effect = { activate_mission = CHL_nacistas_approaching_foreign_fascists_mission }
		}
	}

	CHL_nacistas_approaching_foreign_fascists_mission = {

		priority = 95

		icon = GFX_decision_ger_reichskommissariats

		available = {
			hidden_trigger = { always = no }
		}

		days_mission_timeout = 300

		fire_only_once = yes

		activation = {
			always = no
		}

		visible = {
			tag = CHL
			NOT = {
				has_government = fascism
			}
			NOT = { 
				OR = {
					has_country_flag = CHL_fascist_and_communist_joint_civil_war_started
					has_global_flag = nacista_coup_attempt_happened
				} 
			}
			NOT = {
				OR = {
					has_completed_focus = CHL_denounce_the_anarchy
					has_completed_focus = CHL_address_the_mapuche_conflict
					has_completed_focus = CHL_rule_by_decree
				}
			}
		}

		cancel_if_not_visible = yes

		is_good = no

		timeout_effect = {
			
			add_popularity = {
				ideology = fascism
				popularity = 0.1
			}	

			CHL_anarchic_society_level_up = yes

			hidden_effect = { activate_mission = CHL_nacistas_making_final_preparations_mission }
		}
	}

	CHL_nacistas_making_final_preparations_mission = {

		priority = 94

		icon = GFX_decision_generic_operation

		available = {
			hidden_trigger = { always = no }
		}

		days_mission_timeout = 160

		fire_only_once = yes

		activation = {
			always = no
		}

		visible = {
			tag = CHL
			NOT = {
				has_government = fascism
			}
			NOT = { 
				OR = {
					has_country_flag = CHL_fascist_and_communist_joint_civil_war_started
					has_global_flag = nacista_coup_attempt_happened
				} 
			}
			NOT = {
				OR = {
					has_completed_focus = CHL_denounce_the_anarchy
					has_completed_focus = CHL_address_the_mapuche_conflict
					has_completed_focus = CHL_rule_by_decree
				}
			}
		}

		cancel_if_not_visible = yes

		is_good = no

		timeout_effect = {
			
			add_political_power = -50

			add_popularity = {
				ideology = fascism
				popularity = 0.05
			}

		}
	}

	### DECISIONS ###

	# Expand the Carabineros
	CHL_expand_the_carabineros  = {

		priority = 80

		icon = GFX_decision_CHL_carabineros

		ai_will_do = {
			base = 200
			modifier = {
				factor = 0
				OR = {
					has_country_flag = CHL_AI_RANDOM_COMMUNIST
					has_game_rule = {
						rule = CHL_ai_behavior
						option = COMMUNIST
					}
				}
				NOT = {
					has_government = communism
				}
			}
		}

		allowed = {  
			original_tag = CHL
		}

		available = {
			NOT = { has_government = fascism }
			has_completed_focus = CHL_suppress_the_nacistas
			NOT = { 
				OR = {
					has_country_flag = CHL_fascist_and_communist_joint_civil_war_started
					has_global_flag = nacista_coup_attempt_happened
				} 
			}
			NOT = { has_completed_focus = CHL_denounce_the_anarchy }
		}

		visible = { 
			tag = CHL
			has_completed_focus = CHL_suppress_the_nacistas
			NOT = { has_government = fascism }
			NOT = { 
				OR = {
					has_country_flag = CHL_fascist_and_communist_joint_civil_war_started
					has_global_flag = nacista_coup_attempt_happened
				} 
			}
			NOT = { 
				OR = {
					has_completed_focus = CHL_denounce_the_anarchy
					has_completed_focus = CHL_avenge_the_pacification_of_araucania
				} 
			}
			NOT = { has_country_flag = CHL_expanded_carabineros_flag }
		} 

		days_remove = 70 

		cost = 75

		complete_effect = {
		}

		modifier = {
			consumer_goods_factor = 0.1
		}

		remove_effect = {
			
			add_stability = 0.03

			custom_effect_tooltip = CHL_skip_one_line_tt

			custom_effect_tooltip = CHL_expand_the_carabineros_tt

			custom_effect_tooltip = CHL_skip_one_line_tt

			CHL_anarchic_society_level_down = yes

			hidden_effect = {
				set_country_flag = CHL_expanded_carabineros_flag
			}
		}

	}

	# Open up Investigations against Jorge Gonzales
	CHL_open_investigations_against_the_nacistas  = {

		priority = 78

		icon = GFX_decision_eng_trade_unions_support

		ai_will_do = {
			base = 50
			modifier = {
				factor = 0
				OR = {
					has_country_flag = CHL_AI_RANDOM_COMMUNIST
					has_game_rule = {
						rule = CHL_ai_behavior
						option = COMMUNIST
					}
				}
				NOT = {
					has_government = communism
				}
			}
		}

		allowed = {  
			original_tag = CHL
		}

		available = {
			NOT = { has_government = fascism }
			NOT = { 
				OR = {
					has_country_flag = CHL_fascist_and_communist_joint_civil_war_started
					has_global_flag = nacista_coup_attempt_happened
				} 
			}
			NOT = { has_completed_focus = CHL_denounce_the_anarchy }
		}

		visible = { 
			tag = CHL
			NOT = { has_government = fascism }
			NOT = { 
				OR = {
					has_country_flag = CHL_fascist_and_communist_joint_civil_war_started
					has_global_flag = nacista_coup_attempt_happened
				} 
			}
			NOT = { 
				OR = {
					has_completed_focus = CHL_denounce_the_anarchy
					has_completed_focus = CHL_address_the_mapuche_conflict
				} 
			}
			NOT = { has_country_flag = CHL_investigated_nacistas_flag }
		} 

		days_remove = 48 

		cost = 75

		complete_effect = {
		}

		modifier = {
			political_power_factor = -0.15
		}

		remove_effect = {
			
			add_popularity = {
				ideology = fascism
				popularity = -0.1
			}	

			custom_effect_tooltip = CHL_skip_one_line_tt

			add_days_mission_timeout = {
				mission = CHL_nacista_coup_attempt
				days = -140
			}

			custom_effect_tooltip = CHL_open_investigations_against_the_nacistas_tt

			hidden_effect = {
				set_country_flag = CHL_investigated_nacistas_flag 
			}
		}

	}

	# Counterract Nationalist Thought in Universities
	CHL_counterract_nationalist_thought_in_universities  = {

		priority = 77

		icon = GFX_decision_SWI_no_elected_president

		ai_will_do = {
			base = 50
		}

		allowed = {  
			original_tag = CHL
		}

		available = {
			NOT = { has_government = fascism }
			NOT = { has_completed_focus = CHL_address_the_mapuche_conflict }
			NOT = { 
				OR = {
					has_country_flag = CHL_fascist_and_communist_joint_civil_war_started
					has_global_flag = nacista_coup_attempt_happened
				} 
			}
			NOT = { has_completed_focus = CHL_denounce_the_anarchy }
			has_active_mission = CHL_nacista_influence_in_the_universities_mission
		}

		visible = { 
			tag = CHL
			NOT = { has_government = fascism }
			NOT = { 
				OR = {	
					has_country_flag = CHL_fascist_and_communist_joint_civil_war_started
					has_global_flag = nacista_coup_attempt_happened
				} 
			}
			NOT = { 
				OR = {
					has_completed_focus = CHL_denounce_the_anarchy
					has_completed_focus = CHL_avenge_the_pacification_of_araucania
					has_completed_focus = CHL_rule_by_decree
				} 
			}
			NOT = { has_country_flag = CHL_counterracted_nationalist_universities_flag }
			OR = {
				has_active_mission = CHL_nacista_influence_in_the_universities_mission
				has_active_mission = CHL_nacistas_approaching_ibanez_mission
			}
		} 

		days_remove = 35 

		cost = 50

		complete_effect = {
		}

		modifier = {
			political_power_factor = -0.1
		}

		remove_effect = {
			
			add_popularity = {
				ideology = communism
				popularity = 0.1
			}	

			add_popularity = {
				ideology = democratic
				popularity = 0.05
			}	

			custom_effect_tooltip = CHL_skip_one_line_tt

			custom_effect_tooltip = CHL_counterract_nationalist_thought_in_universities_tt

			hidden_effect = {
				set_country_flag = CHL_counterracted_nationalist_universities_flag 
			}
		}

	}

	# Strengthen the Anti-Fascist Coalition
	CHL_strengthen_the_anti_fascist_coalition  = {

		priority = 89

		icon = GFX_decision_hol_exchange_intelligence_data

		ai_will_do = {
			base = 20
			modifier = {
				add = 800
				OR = {
					has_country_flag = CHL_AI_RANDOM_COMMUNIST
					has_game_rule = {
						rule = CHL_ai_behavior
						option = COMMUNIST
					}
				}
			}
			modifier = {
				factor = 0
				is_historical_focus_on = yes 
				NOT = {
					OR = {
						has_country_flag = CHL_AI_RANDOM_COMMUNIST
						has_game_rule = {
							rule = CHL_ai_behavior
							option = COMMUNIST
						}
					}
				}
			}
		}

		allowed = {  
			original_tag = CHL
		}

		available = {
			NOT = { has_government = fascism }
			NOT = { 
				OR = {
					has_country_flag = CHL_fascist_and_communist_joint_civil_war_started
					has_global_flag = nacista_coup_attempt_happened
				} 
			}
			NOT = { has_completed_focus = CHL_denounce_the_anarchy }
		}

		visible = { 
			tag = CHL
			NOT = { has_government = fascism }
			NOT = { 
				OR = {
					has_country_flag = CHL_fascist_and_communist_joint_civil_war_started
					has_global_flag = nacista_coup_attempt_happened
				} 
			}
			NOT = { 
				OR = {
					has_completed_focus = CHL_denounce_the_anarchy
					has_completed_focus = CHL_address_the_mapuche_conflict
					has_completed_focus = CHL_rule_by_decree
				} 
			}
			NOT = { has_country_flag = CHL_the_anti_fascist_coalition_flag }
		} 

		days_remove = 42 

		cost = 75

		complete_effect = {
		}

		modifier = {
			political_power_factor = -0.1
		}

		remove_effect = {
			custom_effect_tooltip = CHL_skip_one_line_tt

			custom_effect_tooltip = CHL_towards_communism_tt

			custom_effect_tooltip = CHL_skip_one_line_tt

			add_popularity = {
				ideology = fascism
				popularity = -0.05
			}	

			add_popularity = {
				ideology = democratic
				popularity = -0.05
			}	

			add_popularity = {
				ideology = communism
				popularity = 0.15 
			}	



			add_days_mission_timeout = {
				mission = CHL_nacista_coup_attempt
				days = -70
			}

			custom_effect_tooltip = CHL_open_investigations_against_the_nacistas_tt

			hidden_effect = {
				set_country_flag = CHL_the_anti_fascist_coalition_flag 
			}
		}

	}

	# Criticize Liberal Complacency
	CHL_criticize_liberal_complacency = {

		priority = 69

		icon = GFX_decision_generic_political_rally

		ai_will_do = {
			base = 10
			modifier = {
				add = 800
				OR = {
					has_country_flag = CHL_AI_RANDOM_COMMUNIST
					has_game_rule = {
						rule = CHL_ai_behavior
						option = COMMUNIST
					}
				}
			}
		}

		allowed = {  
			original_tag = CHL
		}

		available = {
			NOT = { has_government = fascism }
			NOT = { 
				OR = {
					has_country_flag = CHL_fascist_and_communist_joint_civil_war_started
					has_global_flag = nacista_coup_attempt_happened
				} 
			}
			NOT = { 
				OR = {
					has_completed_focus = CHL_denounce_the_anarchy 
					has_completed_focus = CHL_look_to_tradition
				}
			}
		}

		visible = { 
			tag = CHL
			NOT = { has_government = fascism }
			NOT = { 
				OR = {
					has_country_flag = CHL_fascist_and_communist_joint_civil_war_started
					has_global_flag = nacista_coup_attempt_happened
				} 
			}
			NOT = { 
				OR = {
					has_completed_focus = CHL_denounce_the_anarchy
					has_completed_focus = CHL_look_to_tradition
				} 
			}
			NOT = { has_country_flag = CHL_critiziced_liberal_complacency_flag }
			has_country_flag = CHL_the_anti_fascist_coalition_flag
		} 

		days_remove = 56 

		cost = 100

		complete_effect = {
		}

		modifier = {
			stability_weekly = -0.002
		}

		remove_effect = {
			
			add_popularity = {
				ideology = democratic
				popularity = -0.15
			}	

			add_stability = -0.05

			custom_effect_tooltip = CHL_skip_one_line_tt

			custom_effect_tooltip = CHL_towards_communism_tt

			hidden_effect = {
				set_country_flag = CHL_critiziced_liberal_complacency_flag 
			}
		}

	}

	# A Motion of No Confidence against Alessandri
	CHL_demand_snap_election = {

		priority = 68

		icon = GFX_decision_generic_civil_support

		ai_will_do = {
			base = 0
			modifier = {
				add = 800
				OR = {
					has_country_flag = CHL_AI_RANDOM_COMMUNIST
					has_game_rule = {
						rule = CHL_ai_behavior
						option = COMMUNIST
					}
				}
			}
		}

		allowed = {  
			original_tag = CHL
		}

		available = {
			NOT = { has_government = fascism }
			NOT = { 
				OR = {
					has_country_flag = CHL_fascist_and_communist_joint_civil_war_started
					has_global_flag = nacista_coup_attempt_happened
				} 
			}
			NOT = { 
				has_completed_focus = CHL_denounce_the_anarchy 
				has_completed_focus = CHL_look_to_tradition
			}
			democratic < 0.5
			#has_stability < 0.2
			has_country_leader = { 
			    character = CHL_arturo_alessandri
			    ruling_only = yes
			}
		}

		visible = { 
			tag = CHL
			NOT = { has_government = fascism }
			NOT = { 
				OR = {
					has_country_flag = CHL_fascist_and_communist_joint_civil_war_started
					has_global_flag = nacista_coup_attempt_happened
				} 
			}
			NOT = { 
				OR = {
					has_completed_focus = CHL_denounce_the_anarchy
					has_completed_focus = CHL_avenge_the_pacification_of_araucania
					has_completed_focus = CHL_look_to_tradition
				} 
			}
			NOT = { has_country_flag = CHL_demanded_snap_election_flag }
			has_country_flag = CHL_critiziced_liberal_complacency_flag
		} 

		days_remove = 14 

		cost = 100

		complete_effect = {
		}

		modifier = {
		}

		remove_effect = {
			
			country_event = {
				id = CHL_political_events.19
				hours = 0
			}

			add_stability = -0.05
 
			hidden_effect = {
				set_country_flag = CHL_demanded_snap_election_flag 
			}
		}

	}

} 



political_actions = {

	CHL_promote_ideology_rallies_americas = {
		priority = 50

		icon = generic_political_rally

		ai_will_do = {
			base = 1
			modifier = {
				factor = 2
				has_political_power > 160
			}
		}

		targets = {  ARG URG PAR BOL BRA PRU GYA SUR CAY ECU COL VEN PAN CRC TRI BAS GDL PUE DOM HAI JAM CUB BAH COS NIC HON ELS GUA BLZ MEX CAN RAP YUC RIG QUE GRN  }

		target_trigger = {
			country_exists = FROM
			NOT = { has_war_with = FROM }
			NOT = { FROM = { is_subject_of = ROOT } }
			NOT = { has_government = FROM }
			is_neighbor_of = FROM
		}

		target_root_trigger = {
			has_completed_focus = CHL_sponsor_american_revolutions
			is_subject = no
		}

		allowed = {
			original_tag = CHL
		}

		available = {
			FROM = {
				is_subject = no
				NOT = { has_war_with = ROOT }
				NOT = {
					has_government = communism
				}
			}
		}

		visible = {
		}

		days_remove = 14

		fire_only_once = yes

		cost = 50

		modifier = {
			political_power_gain = -0.25
		}

		complete_effect = {
		}

		remove_effect = {
			FROM = {
				country_event = { id = NSB_soviet_foreign_politics_events.2 hours = 4 random_hours = 2 }
			}
			custom_effect_tooltip = SOV_promote_rallies_effects_tt
			custom_effect_tooltip = SOV_promote_ideological_rallies_cd_tt
		}
	}

	# Recall Pedro Dartnell to Active Service
	CHL_recall_pedro_dartnell_to_active_service  = {

		priority = 50

		icon = GFX_decision_generic_pickelhaube

		ai_will_do = {
			base = 50
		}

		allowed = {  
			original_tag = CHL
			has_dlc = "Trial of Allegiance"
		}

		available = {
			NOT = { 
				OR = {
					has_government = communism 
					has_government = fascism 
				}
			}
			NOT = { has_completed_focus = CHL_avenge_the_pacification_of_araucania }
			has_war = yes
		}

		visible = { 
			tag = CHL
			NOT = { 
				OR = {
					has_government = communism 
					has_government = fascism 
				}
			}
			NOT = { has_completed_focus = CHL_avenge_the_pacification_of_araucania }
			NOT = { has_country_flag = CHL_recalled_pedro_dartnell_flag }
		} 

		days_remove = 24 

		cost = 30

		complete_effect = {
		}

		modifier = {
		}

		remove_effect = {
			
			add_command_power = 30

			custom_effect_tooltip = CHL_recall_pedro_dartnell_to_active_service_tt

			hidden_effect = {
				set_country_flag = CHL_recalled_pedro_dartnell_flag 
			}
		}

	}

	# Invite Peter Adolf Caesar Hansen to Chile
	CHL_invite_peter_adolf_ceasar_to_chile  = {

		priority = 80

		icon = GFX_decision_generic_army_support

		ai_will_do = {
			base = 50
		}

		allowed = {  
			original_tag = CHL
			has_dlc = "Trial of Allegiance"
		}

		available = {
			has_government = fascism 
			GER = {
				OR = {
					NOT = {
						has_government = fascism
					}
					is_in_faction_with = ROOT
					has_subject = ROOT
					is_subject_of = ROOT
				}
			}
			
		}

		visible = { 
			original_tag = CHL
			has_government = fascism 
			NOT = { has_country_flag = recalled_peter_hansen }
		} 

		#days_remove = 24 

		cost = 75

		complete_effect = {
			custom_effect_tooltip = CHL_invite_peter_adolf_ceasar_to_chile_tt

			hidden_effect = {
				set_country_flag = recalled_peter_hansen  
			}
		}

		modifier = {
		}

		remove_effect = {
		}

	}

	# Recall Manuel Santiago Concha Pedregal to Active Service
	CHL_recall_manuel_santiago_pedregal_to_active_service  = {

		priority = 40

		icon = GFX_decision_generic_army_support

		ai_will_do = {
			base = 40
		}

		allowed = {  
			original_tag = CHL
			has_dlc = "Trial of Allegiance"
		}

		available = {
			NOT = { 
				OR = {
					has_government = communism
					has_government = fascism
				}
			}
			NOT = { has_completed_focus = CHL_avenge_the_pacification_of_araucania }
			has_war = yes
		}

		visible = { 
			tag = CHL
			NOT = { 
				OR = {
					has_government = communism
					has_government = fascism
				}
			}
			NOT = { has_completed_focus = CHL_avenge_the_pacification_of_araucania }
			NOT = { has_country_flag = CHL_recalled_manuel_pedregal_flag }
		} 

		days_remove = 24 

		cost = 25

		complete_effect = {
		}

		modifier = {
		}

		remove_effect = {
			
			add_command_power = 10

			custom_effect_tooltip = CHL_recall_manuel_santiago_pedregal_to_active_service_tt

			hidden_effect = {
				set_country_flag = CHL_recalled_manuel_pedregal_flag 
			}
		}

	}



}


CHL_nacista_decisions = {
	
	### MISSIONS ###
	
	CHL_anti_fascist_coalition_forming = {

		priority = 100

		icon = GFX_decision_generic_political_discourse

		available = {
			hidden_trigger = { always = no }
		}

		days_mission_timeout = 84

		fire_only_once = yes

		activation = {
			always = no
		}

		visible = {
			tag = CHL
			NOT = {
				OR = {
					has_government = fascism
					has_completed_focus = CHL_commence_the_counter_revolution
				}
			}
		}

		cancel_if_not_visible = yes

		is_good = no

		timeout_effect = {
			
			add_popularity = {
				ideology = democratic
				popularity = 0.05
			}	

			add_popularity = {
				ideology = communism
				popularity = 0.05
			}

			add_war_support = -0.02

			hidden_effect = { activate_mission = CHL_crackdown_on_fascists_bad_mission }
		}
	}

	CHL_crackdown_on_fascists_bad_mission = {

		priority = 99

		icon = GFX_decision_hol_radio_oranje

		available = {
			hidden_trigger = { always = no }
		}

		days_mission_timeout = 70

		fire_only_once = yes

		activation = {
			always = no
		}

		visible = {
			tag = CHL
			NOT = {
				OR = {
					has_government = fascism
					has_completed_focus = CHL_commence_the_counter_revolution
				}
			}
		}

		cancel_if_not_visible = yes

		is_good = no

		timeout_effect = {
			
			CHL_anarchic_society_level_down = yes	

			add_stability = -0.03

			add_war_support = -0.03

			add_political_power = -50

			add_popularity = {
				ideology = fascism
				popularity = -0.1
			}	

			hidden_effect = { activate_mission = CHL_carabineros_being_secured_mission }
		}
	}

	CHL_carabineros_being_secured_mission = {

		priority = 98

		icon = GFX_decision_CHL_carabineros

		available = {
			hidden_trigger = { always = no }
		}

		days_mission_timeout = 42

		fire_only_once = yes

		activation = {
			always = no
		}

		visible = {
			tag = CHL
			NOT = {
				OR = {
					has_government = fascism
					has_completed_focus = CHL_commence_the_counter_revolution
				}
			}
			NOT = {
				has_completed_focus = CHL_inflitrate_the_carabinieros
			}
		}

		cancel_if_not_visible = yes

		is_good = no

		timeout_effect = {
			
			CHL_anarchic_society_level_down = yes	

			add_stability = -0.05

			add_war_support = -0.05

			add_manpower = -10000

			add_popularity = {
				ideology = fascism
				popularity = -0.05
			}	

			hidden_effect = {
				set_country_flag = CHL_carabineros_secured_by_opposition
				activate_mission = CHL_national_falange_cooperation_mission
			}
		}
	}

	CHL_national_falange_cooperation_mission = {

		priority = 96

		icon = GFX_decision_generic_political_discourse

		available = {
			hidden_trigger = { always = no }
		}

		days_mission_timeout = 56

		fire_only_once = yes

		activation = {
			always = no
		}

		visible = {
			tag = CHL
			NOT = {
				OR = {
					has_government = fascism
					has_completed_focus = CHL_commence_the_counter_revolution
				}
			}
		}

		cancel_if_not_visible = yes

		is_good = no

		timeout_effect = {

			add_political_power = -10
			
			add_war_support = -0.05

			add_popularity = {
				ideology = democratic
				popularity = 0.05
			}	

			hidden_effect = { activate_mission = CHL_government_funds_being_extracted_mission }
		}
	}

	CHL_government_funds_being_extracted_mission = {

		priority = 95

		icon = GFX_decision_gre_investment_decisions

		available = {
			hidden_trigger = { always = no }
		}

		days_mission_timeout = 70

		fire_only_once = yes

		activation = {
			always = no
		}

		visible = {
			tag = CHL
			NOT = {
				OR = {
					has_government = fascism
					has_completed_focus = CHL_commence_the_counter_revolution
				}
			}
		}

		cancel_if_not_visible = yes

		is_good = no

		timeout_effect = {

			add_political_power = -75

			add_timed_idea = {
				idea = CHL_lack_of_funds
				days = 600
			}	

			hidden_effect = { activate_mission = CHL_republican_guards_in_exile_mission }
		}
	}

	CHL_republican_guards_in_exile_mission = {

		priority = 94

		icon = GFX_decision_generic_army_support

		available = {
			hidden_trigger = { always = no }
		}

		days_mission_timeout = 85

		fire_only_once = yes

		activation = {
			always = no
		}

		visible = {
			tag = CHL
			NOT = {
				OR = {
					has_government = fascism
					has_completed_focus = CHL_commence_the_counter_revolution
				}
			}
		}

		cancel_if_not_visible = yes

		is_good = no

		timeout_effect = {

			every_country = {
				limit = {
					OR = {
						original_tag = ARG
						original_tag = PRU
						original_tag = BOL
						original_tag = PAR
					}
					NOT = {
						has_government = fascism
					}
				}
				add_ideas = CHL_republican_guards_in_exile
			}

			hidden_effect = { activate_mission = CHL_preparing_another_naval_mutiny_mission }
		}
	}

	CHL_preparing_another_naval_mutiny_mission = {

		priority = 93

		icon = GFX_decision_generic_merge_plant_ship

		available = {
			hidden_trigger = { always = no }
		}

		days_mission_timeout = 70

		fire_only_once = yes

		activation = {
			always = no
		}

		visible = {
			tag = CHL
			NOT = {
				OR = {
					has_government = fascism
					has_completed_focus = CHL_commence_the_counter_revolution
				}
			}
		}

		cancel_if_not_visible = yes

		is_good = no

		timeout_effect = {

			add_war_support = -0.1

			add_timed_idea = {
				idea = CHL_naval_mutiny
				days = 365
			}

			#hidden_effect = { activate_mission = CHL_government_funds_being_extracted_mission }
		}
	}



	### DECISIONS ###

	# Reintegrate Tacna
	CHL_reintigrate_tacna_fascist  = {

		priority = 40

		icon = GFX_decision_generic_nationalism

		ai_will_do = {
			base = 50
		}

		highlight_states = {
			highlight_state_targets = {
				state = 947
			}
		}

		allowed = {  
			original_tag = CHL
		}

		available = {
			has_completed_focus = CHL_expand_the_department_of_provinces
			controls_state = 947
		}

		visible = { 
			original_tag = CHL
			has_completed_focus = CHL_expand_the_department_of_provinces
			NOT = { has_country_flag = CHL_reintigrated_tacna_flag }
			947 = {
				NOT = {
					is_core_of = ROOT
				}
			}
		} 

		days_remove = 35 

		cost = 50

		complete_effect = {
		}

		modifier = {
			political_power_factor = -0.2
		}

		remove_effect = {
			
			IF = {
				limit = {
					947 = {
						is_claimed_by = ROOT
					}
				}
				947 = {
					remove_claim_by = ROOT
				}
			}

			IF = {
				limit = {
					947 = {
						NOT = {
							is_core_of = ROOT
						}
					}
				}
				947 = {
					add_core_of = ROOT
				}
			}

			hidden_effect = {
				set_country_flag = CHL_reintigrated_tacna_flag 
			}
		}

	}

	# Integrate Tierra Del Fuego
	CHL_intigrate_tierra_del_fuego_fascist  = {

		priority = 35

		icon = GFX_decision_generic_nationalism

		ai_will_do = {
			base = 50
		}

		highlight_states = {
			highlight_state_targets = {
				state = 953
			}
		}

		allowed = {  
			original_tag = CHL
		}

		available = {
			has_completed_focus = CHL_expand_the_department_of_provinces
			controls_state = 953
		}

		visible = { 
			original_tag = CHL
			has_completed_focus = CHL_expand_the_department_of_provinces
			NOT = { has_country_flag = CHL_intigrated_tierra_del_fuego_flag }
			953 = {
				NOT = {
					is_core_of = ROOT
				}
			}
		} 

		days_remove = 35 

		cost = 50

		complete_effect = {
		}

		modifier = {
			political_power_factor = -0.2
		}

		remove_effect = {
			
			IF = {
				limit = {
					953 = {
						is_claimed_by = ROOT
					}
				}
				953 = {
					remove_claim_by = ROOT
				}
			}

			IF = {
				limit = {
					953 = {
						NOT = {
							is_core_of = ROOT
						}
					}
				}
				953 = {
					add_core_of = ROOT
				}
			}

			hidden_effect = {
				set_country_flag = CHL_intigrated_tierra_del_fuego_flag 
			}
		}

	}

	# Occupy the Panama Canal
	CHL_occupy_the_panama_canal  = {

		priority = 20

		icon = GFX_decision_infiltrate_state

		ai_will_do = {
			base = 25
		}

		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 685
			}
		}

		allowed = {  
			original_tag = CHL
		}

		available = {
			has_completed_focus = CHL_undo_colonialist_occupations
			NOT = {
				OR = {
					controls_state = 685
					owns_state = 685
				}
			}
			any_country = {
				owns_state = 685
				NOT = {
					has_war_with = ROOT
				}
				NOT = {
					is_in_faction_with = ROOT
				}
				NOT = {
					is_subject_of = ROOT
				}
				NOT = {
					has_non_aggression_pact_with = ROOT
				}
			}
		}

		visible = { 
			original_tag = CHL
			has_completed_focus = CHL_undo_colonialist_occupations
			NOT = { has_country_flag = CHL_occupied_the_canal_flag }
			685 = {
				NOT = {
					is_core_of = ROOT
					is_owned_by = ROOT
				}
			}
		} 

		days_remove = 42 

		cost = 100

		complete_effect = {
		}

		modifier = {
			weekly_manpower = -250
		}

		remove_effect = {

			random_country = {
				limit = {
					owns_state = 685
				}
				country_event = {
					id = CHL_political_events.64
					hours = 2
					random_hours = 6
				}	
			}
			
			transfer_state = 685

			add_war_support = 0.05

			army_experience = 25

			hidden_effect = {
				set_country_flag = CHL_occupied_the_canal_flag 
			}
		}

	}

	# Occupy Belize
	CHL_occupy_belize  = {

		priority = 19

		icon = GFX_decision_infiltrate_state

		ai_will_do = {
			base = 25
		}

		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 311
				state = 1368
			}
		}

		allowed = {  
			original_tag = CHL
		}

		available = {
			has_completed_focus = CHL_undo_colonialist_occupations
			NOT = {
				OR = {
					OR = {
						controls_state = 311
						owns_state = 311
					}
					OR = {
						controls_state = 1368
						owns_state = 1368
					}
				}
			}
			any_country = {
				OR = {
					owns_state = 311
					owns_state = 1368
				}
				NOT = {
					has_war_with = ROOT
				}
				NOT = {
					is_in_faction_with = ROOT
				}
				NOT = {
					is_subject_of = ROOT
				}
				NOT = {
					has_non_aggression_pact_with = ROOT
				}
				NOT = {
					original_tag = BLZ
				}
			}
		}

		visible = { 
			original_tag = CHL
			has_completed_focus = CHL_undo_colonialist_occupations
			NOT = { has_country_flag = CHL_occupied_belize_flag }
			OR = {
				311 = {
					NOT = {
						is_core_of = ROOT
						is_owned_by = ROOT
					}
				}
				1368 = {
					NOT = {
						is_core_of = ROOT
						is_owned_by = ROOT
					}
				}
			}
		} 

		days_remove = 42 

		cost = 100

		complete_effect = {
		}

		modifier = {
			weekly_manpower = -250
		}

		remove_effect = {

			every_country = {
				limit = {
					OR = {
						owns_state = 311
						owns_state = 1368
					}
				}
				country_event = {
					id = CHL_political_events.65
					hours = 2
					random_hours = 6
				}	
			}
			
			transfer_state = 311
			transfer_state = 1368

			add_war_support = 0.05

			army_experience = 25

			hidden_effect = {
				set_country_flag = CHL_occupied_belize_flag 
			}
		}

	}

	# Integrate the Río de la Plata region
	CHL_integrate_rio_de_la_plata  = {

		priority = 50

		icon = GFX_decision_generic_form_nation

		ai_will_do = {
			base = 120
		}

		#highlight_states = {
		#	highlight_state_targets = {
		#		state = 953
		#	}
		#}

		allowed = {  
			original_tag = CHL
		}

		available = {
			has_completed_focus = CHL_restore_the_old_kingdom
			# Remaining Argentina
			controls_state = 956
			controls_state = 509
			controls_state = 510
			controls_state = 957
			# Uruguay
			controls_state = 946
			controls_state = 300
			controls_state = 945
			# Brazil
			controls_state = 502
			controls_state = 503
			controls_state = 944
			controls_state = 504
			# Paraguay
			controls_state = 301
			controls_state = 688
		}

		visible = { 
			original_tag = CHL
			has_completed_focus = CHL_restore_the_old_kingdom
			NOT = { has_country_flag = CHL_integrated_rio_de_la_plata_flag }
		} 

		days_remove = 70 

		cost = 100

		complete_effect = {
		}

		modifier = {
			political_power_factor = -0.2
			weekly_manpower = -200
		}

		remove_effect = {
			
			every_state = {
				limit = {
					NOT = {
						is_core_of = ROOT
					}
					OR = {
						state = 956
						state = 509
						state = 510
						state = 957
						state = 946
						state = 300
						state = 945
						state = 502
						state = 503
						state = 944
						state = 504
						state = 301
						state = 688
					}
				}
				add_core_of = ROOT
			}

			add_stability = 0.1

			add_war_support = 0.1

			hidden_effect = {
				set_country_flag = CHL_integrated_rio_de_la_plata_flag 
			}
		}

	}

	# Introduce Authoritarian Policies
	CHL_introduce_authoritarianism_fascist  = {

		priority = 20

		icon = GFX_decision_generic_police_action

		ai_will_do = {
			base = 80
		}

		allowed = {  
			original_tag = CHL
		}

		available = {
			has_government = fascism
		}

		visible = { 
			original_tag = CHL
			has_completed_focus = CHL_denounce_the_anarchy
			NOT = { has_country_flag = CHL_introduced_authotitarianism_flag }
		} 

		days_remove = 140 

		cost = 50

		complete_effect = {
		}

		modifier = {
			stability_factor = -0.1
			war_support_factor = -0.05
			political_power_factor = -0.25
		}

		remove_effect = {

			add_stability = 0.2

			every_state = {
				limit = {
					is_owned_and_controlled_by = ROOT
					NOT = {
						is_core_of = ROOT
					}
				}
				add_resistance = -0.1
			}
			
			add_popularity = {
				ideology = fascism
				popularity = 0.1
			}	

			hidden_effect = {
				set_country_flag = CHL_introduced_authotitarianism_flag 
			}
		}

	}

	# Adopt the Patria Vieja Flag
	CHL_adopt_the_patria_vieja_flag_decision  = {

		priority = 25

		icon = GFX_decision_eng_trade_unions_support

		ai_will_do = {
			base = 0
		}

		allowed = {  
			original_tag = CHL
		}

		available = {
			has_government = fascism
		}

		visible = { 
			original_tag = CHL
			has_completed_focus = CHL_enforce_the_chilean_identity
			NOT = { has_country_flag = CHL_adopted_patria_vieja_flag }
			NOT = {
				OR = {
					has_completed_focus = CHL_restore_the_old_kingdom
					has_completed_focus = CHL_unite_hispanic_america
				}
			}
		} 

		#days_remove = 140 

		cost = 25

		complete_effect = {

			set_cosmetic_tag = CHL_patria_vieja_fasc_flag

			hidden_effect = {
				set_country_flag = CHL_adopted_patria_vieja_flag 
			}
		}

		modifier = {
		}

		remove_effect = {	
		}

	}


}

CHL_anti_colonialism_category = {
	
	# Support Resistance
	CHL_support_resistance_decision = {
		icon = GFX_decision_generic_nationalism
		#target_trigger = {
		#	FROM = { is_east_african_colony_state = yes }
		#}
		target_array = CHL.american_colonial_states_array 
		target_root_trigger = { original_tag = CHL } 
		state_target = yes
		on_map_mode = map_only
		fire_only_once = yes 
		available = {
			NOT = { has_country_flag = CHL_resistance_support_progress_flag }
			NOT = { FROM.owner = { is_in_faction_with = ROOT } }
		}

		visible = {
			FROM = {
				NOT = {
					has_dynamic_modifier = {
						modifier = CHL_state_supporting_resistance_modifier
						scope = THIS.owner 
					}
				}
			} 
			FROM = { NOT = { is_core_of = THIS.owner } } # Hide it if no longer a colony 
			FROM = { NOT = { is_owned_by = ROOT } }# It gets kind of silly when you start supporting resistance against yourself, doesn't it

			FROM = {
				controller = {
					NOT = { is_in_faction_with = ROOT }
					OR = {
						NOT = {
							capital_scope = {
								is_on_continent = south_america
							}
						}
						has_war_with = ROOT
					}
				}
			}

			

		}
		days_remove = 30
 
		custom_cost_trigger = {
			command_power > 24.9
		}
		custom_cost_text = ETH_support_resistance_decision_cost

		modifier = {
			industrial_capacity_factory = -0.15
			command_power_gain_mult = -0.1
		}

		complete_effect = {
			set_country_flag = CHL_resistance_support_progress_flag
			add_command_power = -25
		}

		remove_effect = {
			clr_country_flag = CHL_resistance_support_progress_flag
			FROM = {
				add_compliance = -35
				add_resistance = 10  
				add_dynamic_modifier = {
					modifier = CHL_state_supporting_resistance_modifier
					scope = THIS.owner 
					days = 365
				}
			}
		}

		ai_will_do = {
			base = 0
			modifier = {
				add = 175
				AND = {
					has_war = no 
					command_power > 50
				}
			}
			modifier = {
				factor = 2
				has_government = communism
			}
		}
	}

	# Arm the Resistance
	CHL_arm_resistance_decision = {
		icon = GFX_decision_generic_prepare_civil_war
		target_array = CHL.american_colonial_states_array 
		target_root_trigger = { original_tag = CHL } 
		state_target = yes
		on_map_mode = map_only
		fire_only_once = yes 
		available = {
			NOT = { FROM.owner = { is_in_faction_with = ROOT } }
			NOT = { has_country_flag = CHL_arm_resistance_flag }
		}
		visible = {
			FROM = {
				has_dynamic_modifier = {
					modifier = CHL_state_supporting_resistance_modifier
					scope = THIS.owner 
				}
			} 
			FROM = { NOT = { is_core_of = THIS.owner } } # Hide it if no longer a colony 

		}
		days_remove = 7
		custom_cost_trigger = {
			has_equipment = { infantry_equipment > 999 }
		}
		custom_cost_text = decision_cost_ie_1000
		modifier = {
	
		}
		
		complete_effect = {
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = -1000
			}
			set_country_flag = CHL_arm_resistance_flag	
		}
		remove_effect = {
			clr_country_flag = CHL_arm_resistance_flag
			FROM = {
				add_resistance = 30
			}
		}

		ai_will_do = {
			base = 0
			modifier = {
				add = 200
				AND = {
					has_war = no 
					has_equipment = { infantry_equipment > 999 }
				}
			}
			modifier = {
				factor = 2
				has_government = communism
			}
		}
	}

}


CHL_hispanic_unity_decisions = {
	
	# Integrate the Carribbean
	CHL_integrate_the_caribbean  = {

		priority = 40

		icon = GFX_decision_generic_nationalism

		ai_will_do = {
			base = 115
		}

		#highlight_states = {
		#	highlight_state_targets = {
		#		state = 953
		#	}
		#}

		allowed = {  
			original_tag = CHL
		}

		available = {

			OR = {
				has_completed_focus = CHL_unite_hispanic_america
				has_completed_focus = CHL_union_of_hispanic_republics
			}
			
			# Caribbean
			controls_state = 692
			controls_state = 1373
			controls_state = 1372
			controls_state = 1371
			controls_state = 694
			controls_state = 1374
			controls_state = 1375
			controls_state = 1376
			controls_state = 308
			controls_state = 1379
			controls_state = 1378
			controls_state = 1377
			controls_state = 686
			controls_state = 1380
			controls_state = 319
			controls_state = 318
			controls_state = 689
			controls_state = 315
			controls_state = 693
			controls_state = 690

		}

		visible = { 
			original_tag = CHL
			OR = {
				has_completed_focus = CHL_unite_hispanic_america
				has_completed_focus = CHL_union_of_hispanic_republics
			}
			NOT = { has_country_flag = CHL_integrated_the_caribbean_flag }
		} 

		days_remove = 14 

		cost = 100

		complete_effect = {
		}

		modifier = {
			political_power_factor = -0.3
		}

		remove_effect = {
			
			every_state = {
				limit = {
					NOT = {
						is_core_of = ROOT
					}
					OR = {
						state = 692
						state = 1373
						state = 1372
						state = 1371
						state = 694
						state = 1374
						state = 1375
						state = 1376
						state = 308
						state = 1379
						state = 1378
						state = 1377
						state = 686
						state = 1380
						state = 319
						state = 318
						state = 689
						state = 315
						state = 693
						state = 690
					}
				}
				add_core_of = ROOT
			}

			hidden_effect = {
				set_country_flag = CHL_integrated_the_caribbean_flag 
			}
		}

	}

	# Integrate Central America
	CHL_integrate_central_america  = {

		priority = 38

		icon = GFX_decision_generic_nationalism

		ai_will_do = {
			base = 115
		}

		#highlight_states = {
		#	highlight_state_targets = {
		#		state = 953
		#	}
		#}

		allowed = {  
			original_tag = CHL
		}

		available = {

			OR = {
				has_completed_focus = CHL_unite_hispanic_america
				has_completed_focus = CHL_union_of_hispanic_republics
			}
			
			# Central America
			controls_state = 304
			#controls_state = 685
			controls_state = 316
			controls_state = 317
			controls_state = 312
			controls_state = 314
			controls_state = 1369
			controls_state = 313
			controls_state = 1342
			controls_state = 1343
			controls_state = 1344
			controls_state = 1345
			#controls_state = 311
			#controls_state = 1368
			controls_state = 1215
			controls_state = 1216

		}

		visible = { 
			original_tag = CHL
			OR = {
				has_completed_focus = CHL_unite_hispanic_america
				has_completed_focus = CHL_union_of_hispanic_republics
			}
			NOT = { has_country_flag = CHL_integrated_central_america_flag }
		} 

		days_remove = 14 

		cost = 100

		complete_effect = {
		}

		modifier = {
			political_power_factor = -0.3
		}

		remove_effect = {
			
			every_state = {
				limit = {
					NOT = {
						is_core_of = ROOT
					}
					OR = {
						state = 304
						state = 685
						state = 316
						state = 317
						state = 312
						state = 314
						state = 1369
						state = 313
						state = 1342
						state = 1343
						state = 1344
						state = 1345
						state = 311
						state = 1368
						state = 1215
						state = 1216
					}
				}
				add_core_of = ROOT
			}

			hidden_effect = {
				set_country_flag = CHL_integrated_central_america_flag 
			}
		}

	}

	# Integrate Mexico
	CHL_integrate_mexico  = {

		priority = 37

		icon = GFX_decision_generic_nationalism

		ai_will_do = {
			base = 115
		}

		#highlight_states = {
		#	highlight_state_targets = {
		#		state = 953
		#	}
		#}

		allowed = {  
			original_tag = CHL
		}

		available = {

			OR = {
				has_completed_focus = CHL_unite_hispanic_america
				has_completed_focus = CHL_union_of_hispanic_republics
			}
			
			# Mexico
			controls_state = 474
			controls_state = 475
			controls_state = 476
			controls_state = 477
			controls_state = 485
			controls_state = 277
			controls_state = 478
			controls_state = 479
			controls_state = 480
			controls_state = 481
			controls_state = 482
			controls_state = 483
			controls_state = 484

		}

		visible = { 
			original_tag = CHL
			OR = {
				has_completed_focus = CHL_unite_hispanic_america
				has_completed_focus = CHL_union_of_hispanic_republics
			}
			NOT = { has_country_flag = CHL_integrated_mexico_flag }
		} 

		days_remove = 14 

		cost = 100

		complete_effect = {
		}

		modifier = {
			political_power_factor = -0.3
		}

		remove_effect = {
			
			every_state = {
				limit = {
					NOT = {
						is_core_of = ROOT
					}
					OR = {
						state = 474
						state = 475
						state = 476
						state = 477
						state = 485
						state = 277
						state = 478
						state = 479
						state = 480
						state = 481
						state = 482
						state = 483
						state = 484
					}
				}
				add_core_of = ROOT
			}

			hidden_effect = {
				set_country_flag = CHL_integrated_mexico_flag 
			}
		}

	}

	# Liberate the American Hispanics
	CHL_liberate_american_hispanics  = {

		priority = 36

		icon = GFX_decision_generic_nationalism

		ai_will_do = {
			base = 115
		}

		#highlight_states = {
		#	highlight_state_targets = {
		#		state = 953
		#	}
		#}

		allowed = {  
			original_tag = CHL
		}

		available = {

			OR = {
				has_completed_focus = CHL_unite_hispanic_america
				has_completed_focus = CHL_union_of_hispanic_republics
			}
			
			# American States
			controls_state = 375
			controls_state = 1666
			controls_state = 1667
			controls_state = 1668
			controls_state = 1669
			controls_state = 1670
			controls_state = 1671
			controls_state = 1672
			controls_state = 1350
			controls_state = 1351
			controls_state = 376
			controls_state = 1657
			controls_state = 1658
			controls_state = 1659
			controls_state = 1660
			controls_state = 1662
			controls_state = 1663
			controls_state = 1664
			controls_state = 1567
			controls_state = 1353
			controls_state = 377
			controls_state = 1641
			controls_state = 1642
			controls_state = 1643
			controls_state = 1644
			controls_state = 1645
			controls_state = 1646
			controls_state = 1647
			controls_state = 1648
			controls_state = 1649
			controls_state = 1650
			controls_state = 1651
			controls_state = 1652
			controls_state = 1653
			controls_state = 1654
			controls_state = 378
			controls_state = 1624
			controls_state = 1625
			controls_state = 1655
			controls_state = 1562
			controls_state = 1563
			controls_state = 1622
			controls_state = 1623
			controls_state = 379
			controls_state = 1673
			controls_state = 1674
			controls_state = 1626
			controls_state = 1627
			controls_state = 1628
			controls_state = 1566
			controls_state = 380
			controls_state = 1638
			controls_state = 382
			controls_state = 1355
			controls_state = 1150
			controls_state = 1151
			controls_state = 1661
			controls_state = 1352
			controls_state = 1152
			controls_state = 1656
			controls_state = 1153
			controls_state = 1665
			controls_state = 1154
			controls_state = 1155
			controls_state = 1637
			controls_state = 1639
			controls_state = 1640
			controls_state = 1156
			controls_state = 1167
			controls_state = 1176
			controls_state = 1178
			controls_state = 1179
			controls_state = 1356
			controls_state = 1354

		}

		visible = { 
			original_tag = CHL
			OR = {
				has_completed_focus = CHL_unite_hispanic_america
				has_completed_focus = CHL_union_of_hispanic_republics
			}
			NOT = { has_country_flag = CHL_integrated_american_south_flag }
		} 

		days_remove = 14 

		cost = 100

		complete_effect = {
		}

		modifier = {
			political_power_factor = -0.3
		}

		remove_effect = {
			
			every_state = {
				limit = {
					NOT = {
						is_core_of = ROOT
					}
					OR = {
						state = 375
						state = 1666
						state = 1667
						state = 1668
						state = 1669
						state = 1670
						state = 1671
						state = 1672
						state = 1350
						state = 1351
						state = 376
						state = 1657
						state = 1658
						state = 1659
						state = 1660
						state = 1662
						state = 1663
						state = 1664
						state = 1567
						state = 1353
						state = 377
						state = 1641
						state = 1642
						state = 1643
						state = 1644
						state = 1645
						state = 1646
						state = 1647
						state = 1648
						state = 1649
						state = 1650
						state = 1651
						state = 1652
						state = 1653
						state = 1654
						state = 378
						state = 1624
						state = 1625
						state = 1655
						state = 1562
						state = 1563
						state = 1622
						state = 1623
						state = 379
						state = 1673
						state = 1674
						state = 1626
						state = 1627
						state = 1628
						state = 1566
						state = 380
						state = 1638
						state = 382
						state = 1355
						state = 1150
						state = 1151
						state = 1661
						state = 1352
						state = 1152
						state = 1656
						state = 1153
						state = 1665
						state = 1154
						state = 1155
						state = 1637
						state = 1639
						state = 1640
						state = 1156
						state = 1167
						state = 1176
						state = 1178
						state = 1179
						state = 1356
						state = 1354
					}
				}
				add_core_of = ROOT
			}

			hidden_effect = {
				set_country_flag = CHL_integrated_american_south_flag 
			}
		}

	}

}



CHL_mapuche_nationalism_decisions = {

	### MISSIONS ##

	CHL_ibanez_ruling_by_decree_mission = {

		priority = 100

		icon = GFX_decision_eng_trade_unions_support

		available = {
			hidden_trigger = { always = no }
		}

		days_mission_timeout = 70

		fire_only_once = yes

		activation = {
			always = no
		}

		visible = {
			tag = CHL
			has_government = neutrality
			NOT = {
				has_completed_focus = CHL_avenge_the_pacification_of_araucania
			}
		}

		cancel_if_not_visible = yes

		is_good = no

		timeout_effect = {
			
			add_country_leader_trait = dictator

			add_political_power = -50

			add_popularity = {
				ideology = democratic
				popularity = 0.1
			}		

			hidden_effect = { activate_mission = CHL_ibanez_seeking_foreign_investments_mission }
		}
	}

	CHL_ibanez_seeking_foreign_investments_mission = {

		priority = 99

		icon = GFX_decision_gre_investment_decisions

		available = {
			hidden_trigger = { always = no }
		}

		days_mission_timeout = 70

		fire_only_once = yes

		activation = {
			always = no
		}

		visible = {
			tag = CHL
			has_government = neutrality
			NOT = {
				has_completed_focus = CHL_avenge_the_pacification_of_araucania
			}
		}

		cancel_if_not_visible = yes

		is_good = no

		timeout_effect = {
			
			custom_effect_tooltip = CHL_ibanez_seeking_foreign_investments_tt

			hidden_effect = { activate_mission = CHL_ibanez_alianza_popular_libertadora_mission }
			hidden_effect = { set_country_flag = CHL_ibanez_secured_foreign_support_flag }
		}
	}

	CHL_ibanez_alianza_popular_libertadora_mission = {

		priority = 99

		icon = GFX_decision_generic_political_discourse

		available = {
			hidden_trigger = { always = no }
		}

		days_mission_timeout = 35

		fire_only_once = yes

		activation = {
			always = no
		}

		visible = {
			tag = CHL
			has_government = neutrality
			NOT = {
				has_completed_focus = CHL_avenge_the_pacification_of_araucania
			}
		}

		cancel_if_not_visible = yes

		is_good = no

		timeout_effect = {
			
			add_popularity = {
				ideology = democratic
				popularity = 0.1
			}

			add_popularity = {
				ideology = neutrality
				popularity = 0.1
			}	

			add_manpower = -1000

			hidden_effect = { activate_mission = CHL_ibanez_outlaw_socialism_mission }
		}
	}

	CHL_ibanez_outlaw_socialism_mission = {

		priority = 99

		icon = GFX_decision_generic_civil_support

		available = {
			hidden_trigger = { always = no }
		}

		days_mission_timeout = 35

		fire_only_once = yes

		activation = {
			always = no
		}

		visible = {
			tag = CHL
			has_government = neutrality
			NOT = {
				has_completed_focus = CHL_avenge_the_pacification_of_araucania
			}
		}

		cancel_if_not_visible = yes

		is_good = no

		timeout_effect = {
			
			hidden_effect = {
				set_temp_variable = {
					var = ban_ideology_var
					value = party_popularity@communism
				}
				multiply_temp_variable = {
					var = ban_ideology_var
					value = -1
				}
				add_popularity = {
					ideology = communism
					popularity = ban_ideology_var
				}
				multiply_temp_variable = {
					var = ban_ideology_var
					value = 0.66
				}
				set_country_flag = banned_communism_flag
				IF = {#NSB -> If country has Trotskyist Revolutionary Uprisings NS, swap it with the weakened version
					limit = {
						has_idea = SOV_trotskyist_revolutionary_agitation
					}
					swap_ideas = {
						remove_idea = SOV_trotskyist_revolutionary_agitation
						add_idea = SOV_trotskyist_revolutionary_agitation_weakened
					}
				}
			}
			remove_communist_spirits_effect = yes
			custom_effect_tooltip = ban_communist_party_tt
			add_stability = ban_ideology_var

			hidden_effect = { activate_mission = CHL_ibanez_strengthening_the_carabineros_mission }
		}
	}

	CHL_ibanez_strengthening_the_carabineros_mission = {

		priority = 99

		icon = GFX_decision_CHL_carabineros

		available = {
			hidden_trigger = { always = no }
		}

		days_mission_timeout = 35

		fire_only_once = yes

		activation = {
			always = no
		}

		visible = {
			tag = CHL
			has_government = neutrality
			NOT = {
				has_completed_focus = CHL_avenge_the_pacification_of_araucania
			}
		}

		cancel_if_not_visible = yes

		is_good = no

		timeout_effect = {
			
			custom_effect_tooltip = CHL_ibanez_strengthening_the_carabineros_tt

			hidden_effect = { set_country_flag = CHL_ibanez_secured_more_carabineros_flag }
			hidden_effect = { activate_mission = CHL_ibanez_cracking_down_on_mapuche_organizations_mission }
		}
	}

	CHL_ibanez_cracking_down_on_mapuche_organizations_mission = {

		priority = 99

		icon = GFX_decision_CHL_ibanez_cracking_down_on_mapuche_organizations_mission

		available = {
			hidden_trigger = { always = no }
		}

		days_mission_timeout = 70

		fire_only_once = yes

		activation = {
			always = no
		}

		visible = {
			tag = CHL
			has_government = neutrality
			NOT = {
				has_completed_focus = CHL_avenge_the_pacification_of_araucania
			}
		}

		cancel_if_not_visible = yes

		is_good = no

		timeout_effect = {
			
			add_stability = -0.1

			add_war_support = -0.05

			add_political_power = -50

			hidden_effect = { activate_mission = CHL_ibanez_utlilizing_national_populism_mission }
		}
	}

	CHL_ibanez_utlilizing_national_populism_mission = {

		priority = 99

		icon = GFX_decision_eng_blackshirt_speech

		available = {
			hidden_trigger = { always = no }
		}

		days_mission_timeout = 35

		fire_only_once = yes

		activation = {
			always = no
		}

		visible = {
			tag = CHL
			has_government = neutrality
			NOT = {
				has_completed_focus = CHL_avenge_the_pacification_of_araucania
			}
		}

		cancel_if_not_visible = yes

		is_good = no

		timeout_effect = {
			
			add_popularity = {
				ideology = neutrality
				popularity = -0.1
			}	

			add_manpower = -1500

			hidden_effect = { activate_mission = CHL_ibanez_selling_arica_mission }
		}
	}

	CHL_ibanez_selling_arica_mission = {

		priority = 99

		icon = GFX_decision_hol_attract_foreign_investors

		available = {
			hidden_trigger = { always = no }
		}

		days_mission_timeout = 70

		fire_only_once = yes

		activation = {
			always = no
		}

		visible = {
			tag = CHL
			has_government = neutrality
			NOT = {
				has_completed_focus = CHL_avenge_the_pacification_of_araucania
			}
		}

		cancel_if_not_visible = yes

		is_good = no

		timeout_effect = {
			
			PRU = {
				transfer_state = 951
			}

			951 = {
				add_core_of = PRU
			}

			506 = {
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}	
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}

			add_political_power = -25
			
			hidden_effect = { activate_mission = CHL_ibanez_securing_weapon_arsenals_mission }
		}
	}

	CHL_ibanez_securing_weapon_arsenals_mission = {

		priority = 99

		icon = GFX_decision_generic_industry

		available = {
			hidden_trigger = { always = no }
		}

		days_mission_timeout = 70

		fire_only_once = yes

		activation = {
			always = no
		}

		visible = {
			tag = CHL
			has_government = neutrality
			NOT = {
				has_completed_focus = CHL_avenge_the_pacification_of_araucania
			}
		}

		cancel_if_not_visible = yes

		is_good = no

		timeout_effect = {
			
			custom_effect_tooltip = CHL_ibanez_securing_weapon_arsenals_tt

			hidden_effect = { 
				set_country_flag = CHL_ibanez_secured_more_weapons_flag
				activate_mission = CHL_ibanez_approaching_argentinian_army_mission
			}

		}
	}

	CHL_ibanez_approaching_argentinian_army_mission = {

		priority = 98

		icon = GFX_decision_generic_military

		available = {
			hidden_trigger = { always = no }
		}

		days_mission_timeout = 160

		fire_only_once = yes

		activation = {
			always = no
		}

		visible = {
			tag = CHL
			has_government = neutrality
			NOT = {
				has_completed_focus = CHL_avenge_the_pacification_of_araucania
			}
			ARG = {
				exists = yes
			}
		}

		cancel_if_not_visible = yes

		is_good = no

		timeout_effect = {
			
			custom_effect_tooltip = CHL_ibanez_approaching_argentinian_army_mission_tt

			hidden_effect = { set_country_flag = CHL_ibanez_secured_argentinian_aid_flag }

		}
	}

	### DECISIONS ###
	
	# Form Local Defense Groups
	CHL_mapuche_form_defense_groups  = {

		priority = 40

		icon = GFX_decision_generic_prepare_civil_war

		ai_will_do = {
			base = 60
		}

		allowed = {  
			original_tag = CHL
		}

		available = {
			has_completed_focus = CHL_address_the_mapuche_conflict
			NOT = {
				has_completed_focus = CHL_avenge_the_pacification_of_araucania
			}
		}

		visible = { 
			has_completed_focus = CHL_address_the_mapuche_conflict
			NOT = {
				has_completed_focus = CHL_avenge_the_pacification_of_araucania
			}
			NOT = {
				has_country_flag = CHL_formed_local_defense_groups_flag
			}
		} 

		days_remove = 35 

		cost = 10

		complete_effect = {
		}

		modifier = {
			consumer_goods_factor = 0.1
			political_power_factor = -0.3
		}

		remove_effect = {
			
			custom_effect_tooltip = CHL_mapuche_form_defense_groups_tt_1
			show_ideas_tooltip = CHL_local_mapuche_defense_groups
			custom_effect_tooltip = CHL_mapuche_form_defense_groups_tt_2

			hidden_effect = {
				set_country_flag = CHL_formed_local_defense_groups_flag
			}
		}

	}

	# Integrate the Falklands and South Georgia
	CHL_integrate_the_south_atlantic_islands_mapuche  = {

		priority = 39

		icon = GFX_decision_generic_nationalism

		ai_will_do = {
			base = 75
		}

		highlight_states = {
			highlight_state_targets = {
				state = 720
				state = 299
			}
		}

		allowed = {  
			original_tag = CHL
		}

		available = {
			AND = {
				has_completed_focus = CHL_taking_back_patagonia
				has_completed_focus = CHL_union_of_american_indigenous_peoples
			}
			controls_state = 299
			controls_state = 720
		}

		visible = { 
			original_tag = CHL
			AND = {
				has_completed_focus = CHL_taking_back_patagonia
				has_completed_focus = CHL_union_of_american_indigenous_peoples
			}
			NOT = { has_country_flag = CHL_integrated_falklands_flag }
			NOT = {
				AND = {
					299 = {
						is_core_of = ROOT
					}
					720 = {
						is_core_of = ROOT
					}
				}
			}
		} 

		days_remove = 56 

		cost = 75

		complete_effect = {
		}

		modifier = {
			political_power_factor = -0.2
		}

		remove_effect = {
			
			IF = {
				limit = {
					299 = {
						is_claimed_by = ROOT
					}
				}
				299 = {
					remove_claim_by = ROOT
				}
			}

			IF = {
				limit = {
					720 = {
						is_claimed_by = ROOT
					}
				}
				720 = {
					remove_claim_by = ROOT
				}
			}

			IF = {
				limit = {
					299 = {
						NOT = {
							is_core_of = ROOT
						}
					}
				}
				299 = {
					add_core_of = ROOT
				}
			}

			IF = {
				limit = {
					720 = {
						NOT = {
							is_core_of = ROOT
						}
					}
				}
				720 = {
					add_core_of = ROOT
				}
			}

			299 = {
				transfer_state_to = ROOT
			}

			720 = {
				transfer_state_to = ROOT
			}

			hidden_effect = {
				set_country_flag = CHL_integrated_falklands_flag 
			}
		}

	}

	# Anti-Imperialism Liberate Rapa Nui
	CHL_mapuche_liberate_rapa_nuis  = {

		priority = 10
		icon = GFX_decision_CHL_mapuche_liberate_rapa_nuis

		ai_will_do = {
			base = 50
		}

		allowed = {  
			original_tag = CHL
		}

		highlight_states = {
			highlight_state_targets = {
				state = 948
			}
		}

		available = {
			has_completed_focus = CHL_crusade_against_imperialism
			OR = {
				AND = {
					controls_state = 948
					RAP = {
						exists = no
					}
				}
				AND = {
					RAP = {
						exists = yes
						controls_state = 948
					}
					has_subject = RAP
				}
				AND = {
					RAP = {
						exists = no
					}
					any_country = {
						is_subject_of = ROOT
						controls_state = 948
					}
				}
			}
		}

		visible = { 
			has_completed_focus = CHL_crusade_against_imperialism
			NOT = {
				has_country_flag = CHL_released_rapa_nui_flag
			}
		} 

		#days_remove = 35 

		cost = 50

		complete_effect = {

			IF = {
				limit = {
					948 = {
						OR = {
							is_controlled_by = ROOT
							any_country = {
								is_subject_of = ROOT
								controls_state = PREV
							}
						}
					}
				}
				948 = { transfer_state_to = RAP }
			}

			IF = {
				limit = {
					270 = {
						NOT = {
							is_core_of = RAP
						}
					}
				}
				270 = {
					add_core_of =  RAP
				}
			}

			IF = {
				limit = {
					270 = {
						OR = {
							is_controlled_by = ROOT
							any_country = {
								is_subject_of = ROOT
								controls_state = PREV
							}
						}
					}
				}
				270 = { transfer_state_to = RAP }
			}

			IF = {
				limit = {
					NOT = {
						has_subject = RAP
					}
				}
				puppet = RAP
			} 

			RAP = {
				add_stability = 0.15
				add_war_support = 0.1
				add_political_power = 150
				add_manpower = 10000

				hidden_effect = {
					division_template = {
					    name = "Guerreros de Rapa Nui"
					    is_locked = no
					    division_names_group = SPR_INF_01
					    priority = 1
					    template_counter = 86
					    override_model = CHL_infantry_alt_1_entity
					    regiments = {
					        infantry = { x = 0 y = 0 } 
					        infantry = { x = 0 y = 1 } 
					        infantry = { x = 0 y = 2 } 
					        infantry = { x = 1 y = 0 }  
					        infantry = { x = 1 y = 1 } 
					        infantry = { x = 1 y = 2 } 
					        infantry = { x = 2 y = 0 }  
					        infantry = { x = 2 y = 1 } 
					        infantry = { x = 2 y = 2 } 
					    }
				    	support = {
				           	recon = { x = 0 y = 0 }
				    	}
					} 
				}
					
				random_state = {
					limit = {
						is_controlled_by = RAP
					}
					create_unit = {
					    division = "name = \"1a Guerreros de Rapa Nui\" division_template = \"Guerreros de Rapa Nui\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = RAP 
					}
					create_unit = {
					    division = "name = \"2a Guerreros de Rapa Nui\" division_template = \"Guerreros de Rapa Nui\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = RAP 
					}
					create_unit = {
					    division = "name = \"3a Guerreros de Rapa Nui\" division_template = \"Guerreros de Rapa Nui\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = RAP 
					}
					create_unit = {
					    division = "name = \"4a Guerreros de Rapa Nui\" division_template = \"Guerreros de Rapa Nui\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = RAP 
					}
				}
			}

			hidden_effect = {
				set_country_flag = CHL_released_rapa_nui_flag
			}
		}

		modifier = {
		}

		remove_effect = {
		}

	}

	# Anti-Imperialism Liberate Tahiti
	CHL_mapuche_liberate_tahiti  = {

		priority = 9
		icon = GFX_decision_CHL_mapuche_liberate_tahiti

		ai_will_do = {
			base = 50
		}

		allowed = {  
			original_tag = CHL
		}

		highlight_states = {
			highlight_state_targets = {
				state = 641
				state = 635
				state = 734
			}
		}

		available = {
			has_completed_focus = CHL_crusade_against_imperialism
			OR = {
				AND = {
					controls_state = 641
					TAH = {
						exists = no
					}
				}
				AND = {
					TAH = {
						exists = no
					}
					any_country = {
						is_subject_of = ROOT
						controls_state = 641
					}
				}
			}
		}

		visible = { 
			has_completed_focus = CHL_crusade_against_imperialism
			NOT = {
				has_country_flag = CHL_released_tahiti_flag
			}
		} 

		#days_remove = 35 

		cost = 50

		complete_effect = {

			every_state = {
				limit = {
					is_core_of = TAH
					OR = {
						is_controlled_by = ROOT
						any_country = {
							is_subject_of = ROOT
							controls_state = PREV
						}
					}
				}
				transfer_state_to = TAH
			}

			IF = {
				limit = {
					NOT = {
						has_subject = TAH
					}
				}
				puppet = TAH
			} 

			TAH = {
				add_stability = 0.15
				add_war_support = 0.1
				add_political_power = 150
				add_manpower = 10000

				hidden_effect = {
					division_template = {
					    name = "Tahitian Warriors"
					    is_locked = no
					    division_names_group = FRA_INF_01
					    priority = 1
					    template_counter = 86
					    override_model = CHL_infantry_alt_1_entity
					    regiments = {
					        infantry = { x = 0 y = 0 } 
					        infantry = { x = 0 y = 1 } 
					        infantry = { x = 0 y = 2 } 
					        infantry = { x = 1 y = 0 }  
					        infantry = { x = 1 y = 1 } 
					        infantry = { x = 1 y = 2 } 
					        infantry = { x = 2 y = 0 }  
					        infantry = { x = 2 y = 1 } 
					        infantry = { x = 2 y = 2 } 
					    }
				    	support = {
				           	recon = { x = 0 y = 0 }
				    	}
					} 
				}
					
				random_state = {
					limit = {
						is_controlled_by = TAH
					}
					create_unit = {
					    division = "name = \"1a Tahitian Warriors\" division_template = \"Tahitian Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = TAH 
					}
					create_unit = {
					    division = "name = \"2a Tahitian Warriors\" division_template = \"Tahitian Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = TAH 
					}
					create_unit = {
					    division = "name = \"3a Tahitian Warriors\" division_template = \"Tahitian Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = TAH 
					}
					create_unit = {
					    division = "name = \"4a Tahitian Warriors\" division_template = \"Tahitian Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = TAH 
					}
				}
			}

			hidden_effect = {
				set_country_flag = CHL_released_tahiti_flag
			}
		}

		modifier = {
		}

		remove_effect = {
		}

	}

	# Anti-Imperialism Liberate Samoa
	CHL_mapuche_liberate_samoa  = {

		priority = 8
		icon = GFX_decision_CHL_mapuche_liberate_samoa

		ai_will_do = {
			base = 50
		}

		allowed = {  
			original_tag = CHL
		}

		highlight_states = {
			highlight_state_targets = {
				state = 726
			}
		}

		available = {
			has_completed_focus = CHL_crusade_against_imperialism
			OR = {
				AND = {
					controls_state = 726 
					SAM = {
						exists = no
					}
				}
				AND = {
					SAM = {
						exists = yes
						controls_state = 726
					}
					has_subject = SAM
				}
				AND = {
					SAM = {
						exists = no
					}
					any_country = {
						is_subject_of = ROOT
						controls_state = 726
					}
				}
			}
		}

		visible = { 
			has_completed_focus = CHL_crusade_against_imperialism
			NOT = {
				has_country_flag = CHL_released_samoa_flag
			}
		} 

		#days_remove = 35 

		cost = 50

		complete_effect = {

			726 = { transfer_state_to = SAM }

			IF = {
				limit = {
					NOT = {
						has_subject = SAM
					}
				}
				puppet = SAM
			} 

			SAM = {
				add_stability = 0.15
				add_war_support = 0.1
				add_political_power = 150
				add_manpower = 10000

				hidden_effect = {
					division_template = {
					    name = "Samoan Warriors"
					    is_locked = no
					    division_names_group = ENG_INF_01
					    template_counter = 86
					    override_model = CHL_infantry_alt_1_entity
					    priority = 1
					    regiments = {
					        infantry = { x = 0 y = 0 } 
					        infantry = { x = 0 y = 1 } 
					        infantry = { x = 0 y = 2 } 
					        infantry = { x = 1 y = 0 }  
					        infantry = { x = 1 y = 1 } 
					        infantry = { x = 1 y = 2 } 
					        infantry = { x = 2 y = 0 }  
					        infantry = { x = 2 y = 1 } 
					        infantry = { x = 2 y = 2 } 
					    }
				    	support = {
				           	recon = { x = 0 y = 0 }
				    	}
					} 
				}
					
				random_state = {
					limit = {
						is_controlled_by = SAM
					}
					create_unit = {
					    division = "name = \"1st Samoan Warriors\" division_template = \"Samoan Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = SAM 
					}
					create_unit = {
					    division = "name = \"2nd Samoan Warriors\" division_template = \"Samoan Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = SAM 
					}
					create_unit = {
					    division = "name = \"3rd Samoan Warriors\" division_template = \"Samoan Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = SAM 
					}
					create_unit = {
					    division = "name = \"4th Samoan Warriors\" division_template = \"Samoan Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = SAM 
					}
				}
			}

			hidden_effect = {
				set_country_flag = CHL_released_samoa_flag
			}
		}

		modifier = {
		}

		remove_effect = {
		}

	}

	# Anti-Imperialism Liberate Hawaii
	CHL_mapuche_liberate_hawaii  = {

		priority = 7
		icon = GFX_decision_CHL_mapuche_liberate_hawaii

		ai_will_do = {
			base = 75
		}

		allowed = {  
			original_tag = CHL
		}

		highlight_states = {
			highlight_state_targets = {
				state = 629
				state = 630
				state = 727
				state = 631
				state = 642
			}
		}

		available = {
			has_completed_focus = CHL_crusade_against_imperialism
			
			OR = {
				AND = {
					controls_state = 629 
					HAW = {
						exists = no
					}
				}
				AND = {
					HAW = {
						exists = no
					}
					any_country = {
						is_subject_of = ROOT
						controls_state = 629 
					}
				}
			}
				
		}

		visible = { 
			has_completed_focus = CHL_crusade_against_imperialism
			NOT = {
				has_country_flag = CHL_released_hawaii_flag
			}
		} 

		#days_remove = 35 

		cost = 50

		complete_effect = {

			every_state = {
				limit = {
					OR = {
						is_controlled_by = ROOT
						any_country = {
							is_subject_of = ROOT
							controls_state = PREV
						}
					}
					is_core_of = HAW
				}
				transfer_state_to = HAW
			} 

			IF = {
				limit = {
					NOT = {
						has_subject = HAW
					}
				}
				puppet = HAW
			} 

			HAW = {
				add_stability = 0.15
				add_war_support = 0.1
				add_political_power = 150
				add_manpower = 10000

				hidden_effect = {
					division_template = {
					    name = "Hawaiian Warriors"
					    is_locked = no
					    division_names_group = USA_INF_01
					    template_counter = 86
					    override_model = CHL_infantry_alt_1_entity
					    priority = 1
					    regiments = {
					        infantry = { x = 0 y = 0 } 
					        infantry = { x = 0 y = 1 } 
					        infantry = { x = 0 y = 2 } 
					        infantry = { x = 1 y = 0 }  
					        infantry = { x = 1 y = 1 } 
					        infantry = { x = 1 y = 2 } 
					        infantry = { x = 2 y = 0 }  
					        infantry = { x = 2 y = 1 } 
					        infantry = { x = 2 y = 2 } 
					    }
				    	support = {
				           	recon = { x = 0 y = 0 }
				    	}
					} 
				}
					
				random_state = {
					limit = {
						is_controlled_by = HAW
					}
					create_unit = {
					    division = "name = \"1st Hawaiian Warriors\" division_template = \"Hawaiian Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = HAW 
					}
					create_unit = {
					    division = "name = \"2nd Hawaiian Warriors\" division_template = \"Hawaiian Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = HAW 
					}
					create_unit = {
					    division = "name = \"3rd Hawaiian Warriors\" division_template = \"Hawaiian Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = HAW 
					}
					create_unit = {
					    division = "name = \"4th Hawaiian Warriors\" division_template = \"Hawaiian Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = HAW 
					}
				}
			}

			hidden_effect = {
				set_country_flag = CHL_released_hawaii_flag
			}
		}

		modifier = {
		}

		remove_effect = {
		}

	}

	# Anti-Imperialism Liberate the Guarani
	CHL_mapuche_liberate_guarani  = {

		priority = 38
		icon = GFX_decision_CHL_mapuche_liberate_guarani

		ai_will_do = {
			base = 75
		}

		allowed = {  
			original_tag = CHL
		}

		highlight_states = {
			highlight_state_targets = {
				state = 301
				state = 688
				state = 957
				state = 510
				state = 504
				state = 944
				state = 503
				state = 502
			}
		}

		available = {
			has_completed_focus = CHL_crusade_against_imperialism

			GAR = {
				exists = no
			}
			
			OR = {
				controls_state = 301 
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 301 
				}
			}

			OR = {
				controls_state = 688 
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 688 
				}
			}

			OR = {
				controls_state = 957 
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 957 
				}
			}

			OR = {
				controls_state = 510 
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 510 
				}
			}

			OR = {
				controls_state = 504 
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 504 
				}
			}

			OR = {
				controls_state = 944 
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 944 
				}
			}

			OR = {
				controls_state = 503 
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 503 
				}
			}

			OR = {
				controls_state = 502 
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 502 
				}
			}
				
		}

		visible = { 
			has_completed_focus = CHL_crusade_against_imperialism
			NOT = {
				has_country_flag = CHL_released_guarani_flag
			}
		} 

		#days_remove = 35 

		cost = 50

		complete_effect = {

			every_state = {
				limit = {
					OR = {
						is_controlled_by = ROOT
						any_country = {
							is_subject_of = ROOT
							controls_state = PREV
						}
					}
					OR = {
						state = 301
						state = 688
						state = 957
						state = 510
						state = 504
						state = 944
						state = 503
						state = 502
					}
				}
				add_core_of = GAR
				transfer_state_to = GAR
			} 

			IF = {
				limit = {
					NOT = {
						has_subject = GAR
					}
				}
				puppet = GAR
			} 

			GAR = {
				add_stability = 0.15
				add_war_support = 0.1
				add_political_power = 150
				add_manpower = 10000

				hidden_effect = {
					division_template = {
					    name = "Guaraní Warriors"
					    is_locked = no
					    division_names_group = SPR_INF_01
					    priority = 1
					    template_counter = 82
					    override_model = CHL_infantry_alt_1_entity
					    regiments = {
					        infantry = { x = 0 y = 0 } 
					        infantry = { x = 0 y = 1 } 
					        infantry = { x = 0 y = 2 } 
					        infantry = { x = 1 y = 0 }  
					        infantry = { x = 1 y = 1 } 
					        infantry = { x = 1 y = 2 } 
					        infantry = { x = 2 y = 0 }  
					        infantry = { x = 2 y = 1 } 
					        infantry = { x = 2 y = 2 } 
					    }
				    	support = {
				           	recon = { x = 0 y = 0 }
				    	}
					} 
				}
					
				random_state = {
					limit = {
						is_controlled_by = GAR
					}
					create_unit = {
					    division = "name = \"1st Guaraní Warriors\" division_template = \"Guaraní Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = GAR 
					}
					create_unit = {
					    division = "name = \"2nd Guaraní Warriors\" division_template = \"Guaraní Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = GAR 
					}
					create_unit = {
					    division = "name = \"3rd Guaraní Warriors\" division_template = \"Guaraní Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = GAR 
					}
				}

				random_state = {
					limit = {
						is_controlled_by = GAR
					}
					create_unit = {
					    division = "name = \"4th Guaraní Warriors\" division_template = \"Guaraní Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = GAR 
					}
					create_unit = {
					    division = "name = \"5th Guaraní Warriors\" division_template = \"Guaraní Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = GAR 
					}
					create_unit = {
					    division = "name = \"6th Guaraní Warriors\" division_template = \"Guaraní Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = GAR 
					}
				}

				random_state = {
					limit = {
						is_controlled_by = GAR
					}
					create_unit = {
					    division = "name = \"7th Guaraní Warriors\" division_template = \"Guaraní Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = GAR 
					}
				}
			}

			hidden_effect = {
				set_country_flag = CHL_released_guarani_flag
			}
		}

		modifier = {
		}

		remove_effect = {
		}

	}

	# Anti-Imperialism Liberate the Inca
	CHL_mapuche_liberate_inca  = {

		priority = 37
		icon = GFX_decision_CHL_mapuche_liberate_inca

		ai_will_do = {
			base = 75
		}

		allowed = {  
			original_tag = CHL
		}

		highlight_states = {
			highlight_state_targets = {
				state = 494
				state = 492
				state = 947
				state = 303
				state = 951
				state = 506
				state = 491
				state = 490
				state = 1395
				state = 1396
				state = 1397
				state = 1398
				state = 305
				state = 940
				state = 1182
				state = 1183
				state = 1185
				state = 1186
				state = 1187
				state = 1188
				state = 1189
				state = 1195
				state = 1218
				state = 1219
				state = 1220
				state = 1234
			}
		}

		available = {
			has_completed_focus = CHL_crusade_against_imperialism

			INC = {
				exists = no
			}
			
			custom_trigger_tooltip = {
				tooltip = release_inca_required_peruvian_states
				OR = {
					controls_state = 494 
						
					any_country = {
						is_subject_of = ROOT
						controls_state = 494 
					}
				}

				OR = {
					controls_state = 492 
						
					any_country = {
						is_subject_of = ROOT
						controls_state = 492 
					}
				}

				OR = {
					controls_state = 947 
						
					any_country = {
						is_subject_of = ROOT
						controls_state = 947 
					}
				}

				OR = {
					controls_state = 303 
						
					any_country = {
						is_subject_of = ROOT
						controls_state = 303 
					}
				}

				OR = {
					controls_state = 491 
						
					any_country = {
						is_subject_of = ROOT
						controls_state = 491 
					}
				}
				
				OR = {
					controls_state = 1183
						
					any_country = {
						is_subject_of = ROOT
						controls_state = 1183
					}
				}
				
				OR = {
					controls_state = 1185
						
					any_country = {
						is_subject_of = ROOT
						controls_state = 1185
					}
				}
				
				OR = {
					controls_state = 1186
						
					any_country = {
						is_subject_of = ROOT
						controls_state = 1186
					}
				}
				
				OR = {
					controls_state = 1195
						
					any_country = {
						is_subject_of = ROOT
						controls_state = 1195
					}
				}
				
				OR = {
					controls_state = 1218
						
					any_country = {
						is_subject_of = ROOT
						controls_state = 1218
					}
				}
				
				OR = {
					controls_state = 1219 
						
					any_country = {
						is_subject_of = ROOT
						controls_state = 1219
					}
				}
				
				OR = {
					controls_state = 1220
						
					any_country = {
						is_subject_of = ROOT
						controls_state = 1220 
					}
				}
			}

			custom_trigger_tooltip = {
				tooltip = release_inca_required_ecuadorian_states

				OR = {
					controls_state = 490 
						
					any_country = {
						is_subject_of = ROOT
						controls_state = 490 
					}
				}
				
				OR = {
					controls_state = 1395
						
					any_country = {
						is_subject_of = ROOT
						controls_state = 1395
					}
				}
				
				OR = {
					controls_state = 1396
						
					any_country = {
						is_subject_of = ROOT
						controls_state = 1396
					}
				}
				
				OR = {
					controls_state = 1397
						
					any_country = {
						is_subject_of = ROOT
						controls_state = 1397
					}
				}
				
				OR = {
					controls_state = 1398
						
					any_country = {
						is_subject_of = ROOT
						controls_state = 1398
					}
				}

				OR = {
					controls_state = 305 
						
					any_country = {
						is_subject_of = ROOT
						controls_state = 305 
					}
				}
				
				OR = {
					controls_state = 1182
						
					any_country = {
						is_subject_of = ROOT
						controls_state = 1182
					}
				}
				
				OR = {
					controls_state = 1187
						
					any_country = {
						is_subject_of = ROOT
						controls_state = 1187
					}
				}
				
				OR = {
					controls_state = 1188
						
					any_country = {
						is_subject_of = ROOT
						controls_state = 1188
					}
				}
				
				OR = {
					controls_state = 1189
						
					any_country = {
						is_subject_of = ROOT
						controls_state = 1189
					}
				}
				
			}
			

			OR = {
				controls_state = 951 
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 951 
				}
			}

			OR = {
				controls_state = 506 
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 506 
				}
			}

			OR = {
				controls_state = 940 
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 940 
				}
			}
			
			OR = {
				controls_state = 1234
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 1234
				}
			}
				
		}

		visible = { 
			has_completed_focus = CHL_crusade_against_imperialism
			NOT = {
				has_country_flag = CHL_released_inca_flag
			}
		} 

		#days_remove = 35 

		cost = 50

		complete_effect = {

			every_state = {
				limit = {
					OR = {
						is_controlled_by = ROOT
						any_country = {
							is_subject_of = ROOT
							controls_state = PREV
						}
					}
					OR = {
						state = 494
						state = 492
						state = 947
						state = 303
						state = 951
						state = 506
						state = 491
						state = 490
						state = 1395
						state = 1396
						state = 1397
						state = 1398
						state = 305
						state = 940
						state = 1182
						state = 1183
						state = 1185
						state = 1186
						state = 1187
						state = 1188
						state = 1189
						state = 1195
						state = 1218
						state = 1219
						state = 1220
						state = 1234
					}
				}
				add_core_of = INC
				transfer_state_to = INC
			} 

			IF = {
				limit = {
					649 = {
						OR = {
							is_controlled_by = ROOT
							any_country = {
								is_subject_of = ROOT
								controls_state = PREV
							}
						}
					}
				}
				649 = {
					transfer_state_to = INC
				}
			}

			649 = {
				add_core_of = INC
			}

			IF = {
				limit = {
					NOT = {
						has_subject = INC
					}
				}
				puppet = INC
			} 

			INC = {
				add_stability = 0.15
				add_war_support = 0.1
				add_political_power = 150
				add_manpower = 10000

				hidden_effect = {
					division_template = {
					    name = "Incan Warriors"
					    is_locked = no
					    division_names_group = SPR_INF_01
					    priority = 1
					    template_counter = 82
					    override_model = CHL_infantry_alt_1_entity
					    regiments = {
					        infantry = { x = 0 y = 0 } 
					        infantry = { x = 0 y = 1 } 
					        infantry = { x = 0 y = 2 } 
					        infantry = { x = 1 y = 0 }  
					        infantry = { x = 1 y = 1 } 
					        infantry = { x = 1 y = 2 } 
					        infantry = { x = 2 y = 0 }  
					        infantry = { x = 2 y = 1 } 
					        infantry = { x = 2 y = 2 } 
					    }
				    	support = {
				           	recon = { x = 0 y = 0 }
				    	}
					} 
				}
					
				random_state = {
					limit = {
						is_controlled_by = INC
					}
					create_unit = {
					    division = "name = \"1st Incan Warriors\" division_template = \"Incan Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = INC 
					}
					create_unit = {
					    division = "name = \"2nd Incan Warriors\" division_template = \"Incan Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = INC 
					}
					create_unit = {
					    division = "name = \"3rd Incan Warriors\" division_template = \"Incan Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = INC 
					}
				}

				random_state = {
					limit = {
						is_controlled_by = INC
					}
					create_unit = {
					    division = "name = \"4th Incan Warriors\" division_template = \"Incan Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = INC 
					}
					create_unit = {
					    division = "name = \"5th Incan Warriors\" division_template = \"Incan Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = INC 
					}
					create_unit = {
					    division = "name = \"6th Incan Warriors\" division_template = \"Incan Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = INC 
					}
				}

				random_state = {
					limit = {
						is_controlled_by = INC
					}
					create_unit = {
					    division = "name = \"7th Incan Warriors\" division_template = \"Incan Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = INC 
					}
				}
			}

			hidden_effect = {
				set_country_flag = CHL_released_inca_flag
			}
		}

		modifier = {
		}

		remove_effect = {
		}

	}

	# Anti-Imperialism Liberate the Miskito
	CHL_mapuche_liberate_miskito  = {

		priority = 36
		icon = GFX_decision_CHL_mapuche_liberate_miskito

		ai_will_do = {
			base = 75
		}

		allowed = {  
			original_tag = CHL
		}

		highlight_states = {
			highlight_state_targets = {
				state = 312
				state = 317
			}
		}

		available = {
			has_completed_focus = CHL_crusade_against_imperialism

			MIS = {
				exists = no
			}
			
			OR = {
				controls_state = 312 
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 312 
				}
			}

			OR = {
				controls_state = 317 
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 317 
				}
			}
				
		}

		visible = { 
			has_completed_focus = CHL_crusade_against_imperialism
			NOT = {
				has_country_flag = CHL_released_miskito_flag
			}
		} 

		#days_remove = 35 

		cost = 50

		complete_effect = {

			317 = {
				add_victory_points = {
					province = 2075
					value = 4
				}	
			}

			every_state = {
				limit = {
					OR = {
						is_controlled_by = ROOT
						any_country = {
							is_subject_of = ROOT
							controls_state = PREV
						}
					}
					OR = {
						state = 312
						state = 317
					}
				}
				add_core_of = MIS
				transfer_state_to = MIS
			} 

			IF = {
				limit = {
					NOT = {
						has_subject = MIS
					}
				}
				puppet = MIS
			} 

			MIS = {
				add_stability = 0.15
				add_war_support = 0.1
				add_political_power = 150
				add_manpower = 10000

				hidden_effect = {
					division_template = {
					    name = "Miskito Warriors"
					    is_locked = no
					    division_names_group = SPR_INF_01
					    template_counter = 85
					    override_model = CHL_infantry_alt_1_entity
					    priority = 1
					    regiments = {
					        infantry = { x = 0 y = 0 } 
					        infantry = { x = 0 y = 1 } 
					        infantry = { x = 0 y = 2 } 
					        infantry = { x = 1 y = 0 }  
					        infantry = { x = 1 y = 1 } 
					        infantry = { x = 1 y = 2 } 
					        infantry = { x = 2 y = 0 }  
					        infantry = { x = 2 y = 1 } 
					        infantry = { x = 2 y = 2 } 
					    }
				    	support = {
				           	recon = { x = 0 y = 0 }
				    	}
					} 
				}
					
				random_state = {
					limit = {
						is_controlled_by = MIS
					}
					create_unit = {
					    division = "name = \"1st Miskito Warriors\" division_template = \"Miskito Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = MIS 
					}
					create_unit = {
					    division = "name = \"2nd Miskito Warriors\" division_template = \"Miskito Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = MIS 
					}
					create_unit = {
					    division = "name = \"3rd Miskito Warriors\" division_template = \"Miskito Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = MIS 
					}
				}

				random_state = {
					limit = {
						is_controlled_by = MIS
					}
					create_unit = {
					    division = "name = \"4th Miskito Warriors\" division_template = \"Miskito Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = MIS 
					}
					create_unit = {
					    division = "name = \"5th Miskito Warriors\" division_template = \"Miskito Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = MIS 
					}
				}
			}

			hidden_effect = {
				set_country_flag = CHL_released_miskito_flag
			}
		}

		modifier = {
		}

		remove_effect = {
		}

	}

	# Anti-Imperialism Liberate the Maya
	CHL_mapuche_liberate_maya  = {

		priority = 35
		icon = GFX_decision_CHL_mapuche_liberate_maya

		ai_will_do = {
			base = 75
		}

		allowed = {  
			original_tag = CHL
		}

		highlight_states = {
			highlight_state_targets = {
				state = 313
				state = 1342
				state = 1343
				state = 1344
				state = 1345
				state = 475
				state = 476
				state = 474
			}
		}

		available = {
			has_completed_focus = CHL_crusade_against_imperialism

			MAY = {
				exists = no
			}
			
			OR = {
				controls_state = 313 
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 313 
				}
			}
			
			OR = {
				controls_state = 1342
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 1342
				}
			}
			
			OR = {
				controls_state = 1343
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 1343 
				}
			}
			
			OR = {
				controls_state = 1344
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 1344
				}
			}
			
			OR = {
				controls_state = 1345 
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 1345
				}
			}

			OR = {
				controls_state = 475 
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 475 
				}
			}

			OR = {
				controls_state = 476 
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 476 
				}
			}

			OR = {
				controls_state = 474 
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 474 
				}
			}
				
		}

		visible = { 
			has_completed_focus = CHL_crusade_against_imperialism
			NOT = {
				has_country_flag = CHL_released_maya_flag
			}
		} 

		#days_remove = 35 

		cost = 50

		complete_effect = {

			every_state = {
				limit = {
					OR = {
						is_controlled_by = ROOT
						any_country = {
							is_subject_of = ROOT
							controls_state = PREV
						}
					}
					OR = {
						state = 313
						state = 1342
						state = 1343
						state = 1344
						state = 1345
						state = 475
						state = 476
						state = 474
					}
				}
				add_core_of = MAY
				transfer_state_to = MAY
			} 

			IF = {
				limit = {
					NOT = {
						has_subject = MAY
					}
				}
				puppet = MAY
			} 

			MAY = {
				add_stability = 0.15
				add_war_support = 0.1
				add_political_power = 150
				add_manpower = 10000

				hidden_effect = {
					division_template = {
					    name = "Mayan Warriors"
					    is_locked = no
					    division_names_group = SPR_INF_01
					    template_counter = 85
					    override_model = CHL_infantry_alt_1_entity
					    priority = 1
					    regiments = {
					        infantry = { x = 0 y = 0 } 
					        infantry = { x = 0 y = 1 } 
					        infantry = { x = 0 y = 2 } 
					        infantry = { x = 1 y = 0 }  
					        infantry = { x = 1 y = 1 } 
					        infantry = { x = 1 y = 2 } 
					        infantry = { x = 2 y = 0 }  
					        infantry = { x = 2 y = 1 } 
					        infantry = { x = 2 y = 2 } 
					    }
				    	support = {
				           	recon = { x = 0 y = 0 }
				    	}
					} 
				}
					
				random_state = {
					limit = {
						is_controlled_by = MAY
					}
					create_unit = {
					    division = "name = \"1st Mayan Warriors\" division_template = \"Mayan Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = MAY 
					}
					create_unit = {
					    division = "name = \"2nd Mayan Warriors\" division_template = \"Mayan Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = MAY 
					}
					create_unit = {
					    division = "name = \"3rd Mayan Warriors\" division_template = \"Mayan Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = MAY 
					}
				}

				random_state = {
					limit = {
						is_controlled_by = MAY
					}
					create_unit = {
					    division = "name = \"4th Mayan Warriors\" division_template = \"Mayan Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = MAY 
					}
					create_unit = {
					    division = "name = \"5th Mayan Warriors\" division_template = \"Mayan Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = MAY 
					}
					create_unit = {
					    division = "name = \"6th Mayan Warriors\" division_template = \"Mayan Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = MAY 
					}
				}
			}

			hidden_effect = {
				set_country_flag = CHL_released_maya_flag
			}
		}

		modifier = {
		}

		remove_effect = {
		}

	}

	# Anti-Imperialism Liberate the Inuit
	CHL_mapuche_liberate_inuit  = {

		priority = 34
		icon = GFX_decision_CHL_mapuche_liberate_inuit

		ai_will_do = {
			base = 75
		}

		allowed = {  
			original_tag = CHL
		}

		highlight_states = {
			highlight_state_targets = {
				state = 463
				state = 1568
				state = 1569
				state = 1570
				state = 1571
				state = 1572
				state = 1573
				state = 1574
				state = 1575
				state = 1576
				state = 1577
				state = 1578
				state = 1579
				state = 1580
				state = 1581
				state = 864
				state = 1586
				state = 1588
				state = 472
				state = 1166
				state = 1582
				state = 1594
				state = 1583
				state = 1586
				state = 1587
				state = 1589
				state = 1590
				state = 1593
				state = 683
				state = 1595
				state = 1596
				state = 1597
				state = 1598
				state = 1599
				state = 1600
				state = 1601
				state = 466
				state = 1602
				state = 1603
				state = 1604
				state = 1605
				state = 332
				state = 101
				state = 861
			}
		}

		available = {
			has_completed_focus = CHL_crusade_against_imperialism

			INU = {
				exists = no
			}
			
			OR = {
				controls_state = 463 
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 463 
				}
			}
			
			OR = {
				controls_state = 1568
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 1568
				}
			}
			
			OR = {
				controls_state = 1569
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 1569
				}
			}
			
			OR = {
				controls_state = 1570
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 1570
				}
			}
			
			OR = {
				controls_state = 1571
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 1571
				}
			}
			
			OR = {
				controls_state = 1572
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 1572
				}
			}
			
			OR = {
				controls_state = 1573
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 1573
				}
			}
			
			OR = {
				controls_state = 1574
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 1574
				}
			}
			
			OR = {
				controls_state = 1575
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 1575
				}
			}
			
			OR = {
				controls_state = 1576
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 1576
				}
			}
			
			OR = {
				controls_state = 1577
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 1577
				}
			}
			
			OR = {
				controls_state = 1578
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 1578
				}
			}
			
			OR = {
				controls_state = 1579
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 1579
				}
			}
			
			OR = {
				controls_state = 1580
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 1580
				}
			}
			
			OR = {
				controls_state = 1581
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 1581
				}
			}

			OR = {
				controls_state = 864 
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 864 
				}
			}
			
			OR = {
				controls_state = 1586
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 1586
				}
			}
			
			OR = {
				controls_state = 1588
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 1588
				}
			}

			OR = {
				controls_state = 472 
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 472 
				}
			}
			
			OR = {
				controls_state = 1166
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 1166
				}
			}
			
			OR = {
				controls_state = 1582 
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 1582 
				}
			}
			
			OR = {
				controls_state = 1594
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 1594
				}
			}
			
			OR = {
				controls_state = 1583 
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 1583
				}
			}
			
			OR = {
				controls_state = 1586
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 1586
				}
			}
			
			OR = {
				controls_state = 1587
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 1587 
				}
			}
			
			OR = {
				controls_state = 1589
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 1589
				}
			}
			
			OR = {
				controls_state = 1590
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 1590
				}
			}
			
			OR = {
				controls_state = 1593
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 1593 
				}
			}

			OR = {
				controls_state = 683 
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 683 
				}
			}
			
			OR = {
				controls_state = 1595
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 1595
				}
			}
			
			OR = {
				controls_state = 1596 
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 1596
				}
			}
			
			OR = {
				controls_state = 1597
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 1597
				}
			}
			
			OR = {
				controls_state = 1598
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 1598
				}
			}
			
			OR = {
				controls_state = 1599
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 1599
				}
			}
			
			OR = {
				controls_state = 1600
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 1600
				}
			}
			
			OR = {
				controls_state = 1601
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 1601
				}
			}

			OR = {
				controls_state = 466 
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 466 
				}
			}
			
			OR = {
				controls_state = 1601
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 1601
				}
			}
			
			OR = {
				controls_state = 1602
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 1602
				}
			}
			
			OR = {
				controls_state = 1603
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 1603
				}
			}
			
			OR = {
				controls_state = 1604
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 1604
				}
			}
			
			OR = {
				controls_state = 1605
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 1605
				}
			}

			OR = {
				controls_state = 332 
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 332 
				}
			}

			OR = {
				controls_state = 101 
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 101 
				}
			}

			OR = {
				controls_state = 861 
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 861 
				}
			}
				
		}

		visible = { 
			has_completed_focus = CHL_crusade_against_imperialism
			NOT = {
				has_country_flag = CHL_released_inuit_flag
			}
		} 

		#days_remove = 35 

		cost = 50

		complete_effect = {

			every_state = {
				limit = {
					OR = {
						is_controlled_by = ROOT
						any_country = {
							is_subject_of = ROOT
							controls_state = PREV
						}
					}
					OR = {
						state = 463
						state = 1568
						state = 1569
						state = 1570
						state = 1571
						state = 1572
						state = 1573
						state = 1574
						state = 1575
						state = 1576
						state = 1577
						state = 1578
						state = 1579
						state = 1580
						state = 1581
						state = 864
						state = 472
						state = 1166
						state = 1582
						state = 1594
						state = 1583
						state = 1586
						state = 1587
						state = 1589
						state = 1590
						state = 1593
						state = 683
						state = 1595
						state = 1596
						state = 1597
						state = 1598
						state = 1599
						state = 1600
						state = 1601
						state = 466
						state = 1602
						state = 1603
						state = 1604
						state = 1605
						state = 332
						state = 101
						state = 861
					}
				}
				add_core_of = INU
				transfer_state_to = INU
			} 

			IF = {
				limit = {
					NOT = {
						has_subject = INU
					}
				}
				puppet = INU
			} 

			INU = {
				add_stability = 0.15
				add_war_support = 0.1
				add_political_power = 150
				add_manpower = 10000

				hidden_effect = {
					division_template = {
					    name = "Inuit Warriors"
					    is_locked = no
					    division_names_group = ENG_INF_01
					    template_counter = 83
					    override_model = CHL_infantry_alt_1_entity
					    priority = 1
					    regiments = {
					        infantry = { x = 0 y = 0 } 
					        infantry = { x = 0 y = 1 } 
					        infantry = { x = 0 y = 2 } 
					        infantry = { x = 1 y = 0 }  
					        infantry = { x = 1 y = 1 } 
					        infantry = { x = 1 y = 2 } 
					        infantry = { x = 2 y = 0 }  
					        infantry = { x = 2 y = 1 } 
					        infantry = { x = 2 y = 2 } 
					    }
				    	support = {
				           	recon = { x = 0 y = 0 }
				    	}
					} 
				}
					
				random_state = {
					limit = {
						is_controlled_by = INU
					}
					create_unit = {
					    division = "name = \"1st Inuit Warriors\" division_template = \"Inuit Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = INU 
					}
					create_unit = {
					    division = "name = \"2nd Inuit Warriors\" division_template = \"Inuit Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = INU 
					}
					create_unit = {
					    division = "name = \"3rd Inuit Warriors\" division_template = \"Inuit Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = INU 
					}
				}

				random_state = {
					limit = {
						is_controlled_by = INU
					}
					create_unit = {
					    division = "name = \"4th Inuit Warriors\" division_template = \"Inuit Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = INU 
					}
					create_unit = {
					    division = "name = \"5th Inuit Warriors\" division_template = \"Inuit Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = INU 
					}
					create_unit = {
					    division = "name = \"6th Inuit Warriors\" division_template = \"Inuit Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = INU 
					}
					create_unit = {
					    division = "name = \"7th Inuit Warriors\" division_template = \"Inuit Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = INU 
					}
				}
			}

			hidden_effect = {
				set_country_flag = CHL_released_inuit_flag
			}
		}

		modifier = {
		}

		remove_effect = {
		}

	}

	# Anti-Imperialism Liberate the Charrua
	CHL_mapuche_liberate_charrua  = {

		priority = 33
		icon = GFX_decision_CHL_mapuche_liberate_charrua

		ai_will_do = {
			base = 75
		}

		allowed = {  
			original_tag = CHL
		}

		highlight_states = {
			highlight_state_targets = {
				state = 300
				state = 945
				state = 946
			}
		}

		available = {
			has_completed_focus = CHL_crusade_against_imperialism

			CHR = {
				exists = no
			}
			
			OR = {
				controls_state = 300 
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 300 
				}
			}

			OR = {
				controls_state = 945 
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 945 
				}
			}

			OR = {
				controls_state = 946 
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 946 
				}
			}
				
		}

		visible = { 
			has_completed_focus = CHL_crusade_against_imperialism
			NOT = {
				has_country_flag = CHL_released_charrua_flag
			}
		} 

		#days_remove = 35 

		cost = 50

		complete_effect = {

			every_state = {
				limit = {
					OR = {
						is_controlled_by = ROOT
						any_country = {
							is_subject_of = ROOT
							controls_state = PREV
						}
					}
					OR = {
						state = 300
						state = 945
						state = 946
					}
				}
				add_core_of = CHR
				transfer_state_to = CHR
			} 

			IF = {
				limit = {
					NOT = {
						has_subject = CHR
					}
				}
				puppet = CHR
			} 

			CHR = {
				add_stability = 0.15
				add_war_support = 0.1
				add_political_power = 150
				add_manpower = 10000

				hidden_effect = {
					division_template = {
					    name = "Charrúa Warriors"
					    is_locked = no
					    division_names_group = SPR_INF_01
					    template_counter = 83
					    override_model = CHL_infantry_alt_1_entity
					    priority = 1
					    regiments = {
					        infantry = { x = 0 y = 0 } 
					        infantry = { x = 0 y = 1 } 
					        infantry = { x = 0 y = 2 } 
					        infantry = { x = 1 y = 0 }  
					        infantry = { x = 1 y = 1 } 
					        infantry = { x = 1 y = 2 } 
					        infantry = { x = 2 y = 0 }  
					        infantry = { x = 2 y = 1 } 
					        infantry = { x = 2 y = 2 } 
					    }
				    	support = {
				           	recon = { x = 0 y = 0 }
				    	}
					} 
				}
					
				random_state = {
					limit = {
						is_controlled_by = CHR
					}
					create_unit = {
					    division = "name = \"1st Charrúa Warriors\" division_template = \"Charrúa Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = CHR 
					}
					create_unit = {
					    division = "name = \"2nd Charrúa Warriors\" division_template = \"Charrúa Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = CHR 
					}
					create_unit = {
					    division = "name = \"3rd Charrúa Warriors\" division_template = \"Charrúa Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = CHR 
					}
				}

				random_state = {
					limit = {
						is_controlled_by = CHR
					}
					create_unit = {
					    division = "name = \"4th Charrúa Warriors\" division_template = \"Charrúa Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = CHR 
					}
					create_unit = {
					    division = "name = \"5th Charrúa Warriors\" division_template = \"Charrúa Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = CHR 
					}
				}
			}

			hidden_effect = {
				set_country_flag = CHL_released_charrua_flag
			}
		}

		modifier = {
		}

		remove_effect = {
		}

	}

	# Anti-Imperialism Liberate the Itza
	CHL_mapuche_liberate_itza  = {

		priority = 32
		icon = GFX_decision_CHL_mapuche_liberate_itza

		ai_will_do = {
			base = 75
		}

		allowed = {  
			original_tag = CHL
		}

		highlight_states = {
			highlight_state_targets = {
				state = 311
				state = 1368
			}
		}

		available = {
			has_completed_focus = CHL_crusade_against_imperialism

			ITZ = {
				exists = no
			}
			
			OR = {
				311 = {
					OR = {
						is_controlled_by = ROOT
							
						any_country = {
							is_subject_of = ROOT
							controls_state = 311 
						}
					}
				}
				1368 = {
					OR = {
						is_controlled_by = ROOT
							
						any_country = {
							is_subject_of = ROOT
							controls_state = 1368 
						}
					}
				}
			}
				
		}

		visible = { 
			has_completed_focus = CHL_crusade_against_imperialism
			NOT = {
				has_country_flag = CHL_released_itza_flag
			}
		} 

		#days_remove = 35 

		cost = 50

		complete_effect = {
			if = {
				limit = {
					311 = {
						OR = {
							is_controlled_by = ROOT
									
							any_country = {
								is_subject_of = ROOT
								controls_state = 311 
							}
						}
					}
				}
				311 = {
					add_victory_points = {
						province = 2077
						value = 2
					}	
					set_province_name = {
						id = 2077
						name = 2077_indigenous_city_name
					}
				}
			}

			every_state = {
				limit = {
					OR = {
						is_controlled_by = ROOT
						any_country = {
							is_subject_of = ROOT
							controls_state = PREV
						}
					}
					
					state = 311
					state = 1368
				}
				add_core_of = ITZ
				transfer_state_to = ITZ
			} 

			IF = {
				limit = {
					NOT = {
						has_subject = ITZ
					}
				}
				puppet = ITZ
			} 

			ITZ = {
				add_stability = 0.15
				add_war_support = 0.1
				add_political_power = 150
				add_manpower = 10000

				hidden_effect = {
					division_template = {
					    name = "Itza Warriors"
					    is_locked = no
					    division_names_group = SPR_INF_01
					    template_counter = 85
					    override_model = CHL_infantry_alt_1_entity
					    priority = 1
					    regiments = {
					        infantry = { x = 0 y = 0 } 
					        infantry = { x = 0 y = 1 } 
					        infantry = { x = 0 y = 2 } 
					        infantry = { x = 1 y = 0 }  
					        infantry = { x = 1 y = 1 } 
					        infantry = { x = 1 y = 2 } 
					        infantry = { x = 2 y = 0 }  
					        infantry = { x = 2 y = 1 } 
					        infantry = { x = 2 y = 2 } 
					    }
				    	support = {
				           	recon = { x = 0 y = 0 }
				    	}
					} 
				}
					
				random_state = {
					limit = {
						is_controlled_by = ITZ
					}
					create_unit = {
					    division = "name = \"1st Itza Warriors\" division_template = \"Itza Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = ITZ 
					}
					create_unit = {
					    division = "name = \"2nd Itza Warriors\" division_template = \"Itza Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = ITZ 
					}
					create_unit = {
					    division = "name = \"3rd Itza Warriors\" division_template = \"Itza Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = ITZ 
					}
				}
			}

			hidden_effect = {
				set_country_flag = CHL_released_itza_flag
			}
		}

		modifier = {
		}

		remove_effect = {
		}

	}

	# Anti-Imperialism Liberate the Nahua
	CHL_mapuche_liberate_nahua  = {

		priority = 31
		icon = GFX_decision_CHL_mapuche_liberate_nahua

		ai_will_do = {
			base = 75
		}

		allowed = {  
			original_tag = CHL
		}

		highlight_states = {
			highlight_state_targets = {
				state = 314
				state = 1369
			}
		}

		available = {
			has_completed_focus = CHL_crusade_against_imperialism

			NAH = {
				exists = no
			}
			
			OR = {
				314 = {
					is_controlled_by = ROOT
						
					any_country = {
						is_subject_of = ROOT
						controls_state = PREV 
					}
				}
				1369 = {
					is_controlled_by = ROOT
						
					any_country = {
						is_subject_of = ROOT
						controls_state = PREV 
					}
				}
			}
				
		}

		visible = { 
			has_completed_focus = CHL_crusade_against_imperialism
			NOT = {
				has_country_flag = CHL_released_nahua_flag
			}
		} 

		#days_remove = 35 

		cost = 50

		complete_effect = {

			every_state = {
				limit = {
					OR = {
						is_controlled_by = ROOT
						any_country = {
							is_subject_of = ROOT
							controls_state = PREV
						}
					}
					
					state = 314
					state = 1369
					
				}
				add_core_of = NAH
				transfer_state_to = NAH
			} 

			IF = {
				limit = {
					NOT = {
						has_subject = NAH
					}
				}
				puppet = NAH
			} 

			NAH = {
				add_stability = 0.15
				add_war_support = 0.1
				add_political_power = 150
				add_manpower = 10000

				hidden_effect = {
					division_template = {
					    name = "Nahua Warriors"
					    is_locked = no
					    division_names_group = SPR_INF_01
					    template_counter = 85
					    override_model = CHL_infantry_alt_1_entity
					    priority = 1
					    regiments = {
					        infantry = { x = 0 y = 0 } 
					        infantry = { x = 0 y = 1 } 
					        infantry = { x = 0 y = 2 } 
					        infantry = { x = 1 y = 0 }  
					        infantry = { x = 1 y = 1 } 
					        infantry = { x = 1 y = 2 } 
					        infantry = { x = 2 y = 0 }  
					        infantry = { x = 2 y = 1 } 
					        infantry = { x = 2 y = 2 } 
					    }
				    	support = {
				           	recon = { x = 0 y = 0 }
				    	}
					} 
				}
					
				random_state = {
					limit = {
						is_controlled_by = NAH
					}
					create_unit = {
					    division = "name = \"1st Nahua Warriors\" division_template = \"Nahua Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = NAH 
					}
					create_unit = {
					    division = "name = \"2nd Nahua Warriors\" division_template = \"Nahua Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = NAH 
					}
					create_unit = {
					    division = "name = \"3rd Nahua Warriors\" division_template = \"Nahua Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = NAH 
					}
				}
			}

			hidden_effect = {
				set_country_flag = CHL_released_nahua_flag
			}
		}

		modifier = {
		}

		remove_effect = {
		}

	}

	# Anti-Imperialism Liberate the Isthmo-Amerindians
	CHL_mapuche_liberate_isthmo_amerindia  = {

		priority = 30
		icon = GFX_decision_CHL_mapuche_liberate_isthmo_amerindia

		ai_will_do = {
			base = 75
		}

		allowed = {  
			original_tag = CHL
		}

		highlight_states = {
			highlight_state_targets = {
				state = 493
				state = 304
				state = 685
				state = 316
				state = 306
				state = 486
				state = 489
				state = 307
				state = 695
				state = 691
				state = 1370
				state = 1184
				state = 1190
				state = 1191
				state = 1192
				state = 1193
				state = 1194
				state = 1196
				state = 1197
				state = 1198
				state = 1199
				state = 1200
				state = 1201
				state = 1202
				state = 1203
				state = 1204
				state = 1205
				state = 1211
				state = 1212
				state = 1213
				state = 1215
				state = 1216
			}
		}

		available = {
			has_completed_focus = CHL_crusade_against_imperialism

			IAS = {
				exists = no
			}
			
			custom_trigger_tooltip = {
				tooltip = release_inca_required_colombian_states
				OR = {
					controls_state = 493 
						
					any_country = {
						is_subject_of = ROOT
						controls_state = 493 
					}
				}

				OR = {
					controls_state = 306 
						
					any_country = {
						is_subject_of = ROOT
						controls_state = 306 
					}
				}

				OR = {
					controls_state = 486 
						
					any_country = {
						is_subject_of = ROOT
						controls_state = 486 
					}
				}
				
				OR = {
					controls_state = 1184
						
					any_country = {
						is_subject_of = ROOT
						controls_state = 1184
					}
				}
				
				OR = {
					controls_state = 1190
						
					any_country = {
						is_subject_of = ROOT
						controls_state = 1190
					}
				}
				
				OR = {
					controls_state = 1191
						
					any_country = {
						is_subject_of = ROOT
						controls_state = 1191
					}
				}
				
				OR = {
					controls_state = 1192
						
					any_country = {
						is_subject_of = ROOT
						controls_state = 1192
					}
				}
				
				OR = {
					controls_state = 1193
						
					any_country = {
						is_subject_of = ROOT
						controls_state = 1193
					}
				}
				
				OR = {
					controls_state = 1194
						
					any_country = {
						is_subject_of = ROOT
						controls_state = 1194
					}
				}
				
				OR = {
					controls_state = 1196
						
					any_country = {
						is_subject_of = ROOT
						controls_state = 1196
					}
				}
				
				OR = {
					controls_state = 1197
						
					any_country = {
						is_subject_of = ROOT
						controls_state = 1197
					}
				}
				
				OR = {
					controls_state = 1198
						
					any_country = {
						is_subject_of = ROOT
						controls_state = 1198
					}
				}
				
				OR = {
					controls_state = 1199
						
					any_country = {
						is_subject_of = ROOT
						controls_state = 1199
					}
				}
				
				OR = {
					controls_state = 1200
						
					any_country = {
						is_subject_of = ROOT
						controls_state = 1200
					}
				}
				
				OR = {
					controls_state = 1201
						
					any_country = {
						is_subject_of = ROOT
						controls_state = 1201
					}
				}
				
				OR = {
					controls_state = 1202
						
					any_country = {
						is_subject_of = ROOT
						controls_state = 1202
					}
				}
			}

			OR = {
				controls_state = 307 
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 307 
				}
			}

			OR = {
				controls_state = 489 
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 489 
				}
			}

			OR = {
				controls_state = 304 
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 304 
				}
			}

			OR = {
				controls_state = 316 
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 316 
				}
			}
			
			OR = {
				controls_state = 1215 
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 1215
				}
			}
			
			OR = {
				controls_state = 1216
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 1216
				}
			}
			
			OR = {
				controls_state = 1203
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 1203
				}
			}
			
			OR = {
				controls_state = 1204
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 1204
				}
			}
			
			OR = {
				controls_state = 1205
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 1205
				}
			}
			
			OR = {
				controls_state = 1211
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 1211
				}
			}
			
			OR = {
				controls_state = 1212
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 1212
				}
			}
			
			OR = {
				controls_state = 1213
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 1213
				}
			}
		}

		visible = { 
			has_completed_focus = CHL_crusade_against_imperialism
			NOT = {
				has_country_flag = CHL_released_isthmo_amerindia_flag
			}
		} 

		#days_remove = 35 

		cost = 50

		complete_effect = {

			every_state = {
				limit = {
					OR = {
						is_controlled_by = ROOT
						any_country = {
							is_subject_of = ROOT
							controls_state = PREV
						}
					}
					OR = {
						state = 316
						state = 304
						state = 493
						state = 306
						state = 486
						state = 307
						state = 489
						state = 1184
						state = 1190
						state = 1191
						state = 1192
						state = 1193
						state = 1194
						state = 1196
						state = 1197
						state = 1198
						state = 1199
						state = 1200
						state = 1201
						state = 1202
						state = 1203
						state = 1204
						state = 1205
						state = 1211
						state = 1212
						state = 1213
						state = 1215
						state = 1216
					}
				}
				add_core_of = IAS
				transfer_state_to = IAS
			} 

			every_state = {
				limit = {
					OR = {
						state = 685
						state = 695
						state = 691
						state = 1370
					}
				}
				add_core_of = IAS
			}

			IF = {
				limit = {
					685 = {
						OR = {
							is_controlled_by = ROOT
							any_country = {
								is_subject_of = ROOT
								controls_state = PREV
							}
						}
					}
				}
				685 = {
					transfer_state_to = IAS
				}
			}

			IF = {
				limit = {
					695 = {
						OR = {
							is_controlled_by = ROOT
							any_country = {
								is_subject_of = ROOT
								controls_state = PREV
							}
						}
					}
				}
				695 = {
					transfer_state_to = IAS
				}
			}

			IF = {
				limit = {
					691 = {
						OR = {
							is_controlled_by = ROOT
							any_country = {
								is_subject_of = ROOT
								controls_state = PREV
							}
						}
					}
				}
				691 = {
					transfer_state_to = IAS
				}
			}
			
			IF = {
				limit = {
					1370 = {
						OR = {
							is_controlled_by = ROOT
							any_country = {
								is_subject_of = ROOT
								controls_state = PREV
							}
						}
					}
				}
				1370 = {
					transfer_state_to = IAS
				}
			}

			IF = {
				limit = {
					NOT = {
						has_subject = IAS
					}
				}
				puppet = IAS
			} 

			IAS = {
				add_stability = 0.15
				add_war_support = 0.1
				add_political_power = 150
				add_manpower = 10000

				hidden_effect = {
					division_template = {
					    name = "Isthmo-Amerindian Warriors"
					    is_locked = no
					    division_names_group = SPR_INF_01
					    template_counter = 83
					    override_model = CHL_infantry_alt_1_entity
					    priority = 1
					    regiments = {
					        infantry = { x = 0 y = 0 } 
					        infantry = { x = 0 y = 1 } 
					        infantry = { x = 0 y = 2 } 
					        infantry = { x = 1 y = 0 }  
					        infantry = { x = 1 y = 1 } 
					        infantry = { x = 1 y = 2 } 
					        infantry = { x = 2 y = 0 }  
					        infantry = { x = 2 y = 1 } 
					        infantry = { x = 2 y = 2 } 
					    }
				    	support = {
				           	recon = { x = 0 y = 0 }
				    	}
					} 
				}
					
				random_state = {
					limit = {
						is_controlled_by = IAS
					}
					create_unit = {
					    division = "name = \"1st Isthmo-Amerindian Warriors\" division_template = \"Isthmo-Amerindian Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = IAS 
					}
					create_unit = {
					    division = "name = \"2nd Isthmo-Amerindian Warriors\" division_template = \"Isthmo-Amerindian Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = IAS 
					}
					create_unit = {
					    division = "name = \"3rd Isthmo-Amerindian Warriors\" division_template = \"Isthmo-Amerindian Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = IAS 
					}
				}

				random_state = {
					limit = {
						is_controlled_by = IAS
					}
					create_unit = {
					    division = "name = \"4th Isthmo-Amerindian Warriors\" division_template = \"Isthmo-Amerindian Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = IAS 
					}
					create_unit = {
					    division = "name = \"5th Isthmo-Amerindian Warriors\" division_template = \"Isthmo-Amerindian Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = IAS 
					}
					create_unit = {
					    division = "name = \"6th Isthmo-Amerindian Warriors\" division_template = \"Isthmo-Amerindian Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = IAS 
					}
				}

				random_state = {
					limit = {
						is_controlled_by = IAS
					}
					create_unit = {
					    division = "name = \"7th Isthmo-Amerindian Warriors\" division_template = \"Isthmo-Amerindian Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = IAS 
					}
				}
			}

			hidden_effect = {
				set_country_flag = CHL_released_isthmo_amerindia_flag
			}
		}

		modifier = {
		}

		remove_effect = {
		}

	}

	# Anti-Imperialism Reorganize the Bolivian Government
	CHL_mapuche_reorganize_the_bolivian_government  = {

		priority = 29
		icon = GFX_decision_CHL_mapuche_reorganize_the_bolivian_government

		ai_will_do = {
			base = 75
		}

		allowed = {  
			original_tag = CHL
		}

		highlight_states = {
			highlight_state_targets = {
				state = 487
				state = 302
				state = 1225
				state = 1226
				state = 1227
				state = 1228
				state = 1229
				state = 1230
				state = 1231
				state = 1232
			}
		}

		available = {
			has_completed_focus = CHL_crusade_against_imperialism

			OR = {
				AND = {
					BOL = {
						exists = yes
						is_subject_of = ROOT
					}
				}
				AND = {
					BOL = {
						exists = no
					}
					OR = {
						controls_state = 487 
							
						any_country = {
							is_subject_of = ROOT
							controls_state = 487 
						}
					}
					OR = {
						controls_state = 302 
							
						any_country = {
							is_subject_of = ROOT
							controls_state = 302 
						}
					}
					OR = {
						controls_state = 1225
							
						any_country = {
							is_subject_of = ROOT
							controls_state = 1225
						}
					}
					OR = {
						controls_state = 1226
							
						any_country = {
							is_subject_of = ROOT
							controls_state = 1226
						}
					}
					OR = {
						controls_state = 1227
							
						any_country = {
							is_subject_of = ROOT
							controls_state = 1227
						}
					}
					OR = {
						controls_state = 1228
							
						any_country = {
							is_subject_of = ROOT
							controls_state = 1228
						}
					}
					OR = {
						controls_state = 1229
							
						any_country = {
							is_subject_of = ROOT
							controls_state = 1229
						}
					}
					OR = {
						controls_state = 1230
							
						any_country = {
							is_subject_of = ROOT
							controls_state = 1230
						}
					}
					OR = {
						controls_state = 1231
							
						any_country = {
							is_subject_of = ROOT
							controls_state = 1231
						}
					}
					OR = {
						controls_state = 1232
							
						any_country = {
							is_subject_of = ROOT
							controls_state = 1232
						}
					}
				}
			}
			
		}

		visible = { 
			has_completed_focus = CHL_crusade_against_imperialism
			NOT = {
				has_country_flag = CHL_reorganized_bolivia_flag
			}
		} 

		#days_remove = 35 

		cost = 50

		complete_effect = {

			every_state = {
				limit = {
					OR = {
						is_controlled_by = ROOT
						any_country = {
							is_subject_of = ROOT
							controls_state = PREV
						}
					}
					OR = {
						state = 487
						state = 302
						state = 1225
						state = 1226
						state = 1227
						state = 1228
						state = 1229
						state = 1230
						state = 1231
						state = 1232
					}
				}
				add_core_of = BOL
				transfer_state_to = BOL
			} 

			942 = {
				add_core_of = BOL
			}

			IF = {
				limit = {
					942 = {
						OR = {
							is_controlled_by = ROOT
							any_country = {
								is_subject_of = ROOT
								controls_state = PREV
							}
						}
					}
				}
				942 = {
					transfer_state_to = BOL
				}
			}

			IF = {
				limit = {
					NOT = {
						has_subject = BOL
					}
				}
				puppet = BOL
			} 

			BOL = {

				drop_cosmetic_tag = yes
				set_cosmetic_tag = true_plurinational_bolivia

				hidden_effect = {
					BOL_indigenous_council = {
						add_country_leader_role = {
							promote_leader = yes
							country_leader = {
								ideology = despotism
								traits = { non_aligned_council_trait }
								expire = "1980.1.1.1"
								id = -1
							}
						}
						add_country_leader_role = {
							promote_leader = yes
							country_leader = {
								ideology = conservatism
								traits = { democratic_council_trait }
								expire = "1980.1.1.1"
								id = -1
							}
						}
						add_country_leader_role = {
							promote_leader = yes
							country_leader = {
								ideology = marxism
								traits = { communist_council_trait }
								expire = "1980.1.1.1"
								id = -1
							}
						}
						add_country_leader_role = {
							promote_leader = yes
							country_leader = {
								ideology = falangism
								traits = { fascist_council_trait }
								expire = "1980.1.1.1"
								id = -1
							}
						}
					}
				}

				add_stability = 0.15
				add_war_support = 0.1
				add_manpower = 10000

				hidden_effect = {
					division_template = {
					    name = "Bolivian Indigenous Warriors"
					    is_locked = no
					    division_names_group = SPR_INF_01
					    template_counter = 82
					    override_model = CHL_infantry_alt_1_entity
					    priority = 1
					    regiments = {
					        infantry = { x = 0 y = 0 } 
					        infantry = { x = 0 y = 1 } 
					        infantry = { x = 0 y = 2 } 
					        infantry = { x = 1 y = 0 }  
					        infantry = { x = 1 y = 1 } 
					        infantry = { x = 1 y = 2 } 
					        infantry = { x = 2 y = 0 }  
					        infantry = { x = 2 y = 1 } 
					        infantry = { x = 2 y = 2 } 
					    }
				    	support = {
				           	recon = { x = 0 y = 0 }
				    	}
					} 
				}
					
				random_state = {
					limit = {
						is_controlled_by = BOL
					}
					create_unit = {
					    division = "name = \"1st Bolivian Indigenous Warriors\" division_template = \"Bolivian Indigenous Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = BOL 
					}
					create_unit = {
					    division = "name = \"2nd Bolivian Indigenous Warriors\" division_template = \"Bolivian Indigenous Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = BOL 
					}
					create_unit = {
					    division = "name = \"3rd Bolivian Indigenous Warriors\" division_template = \"Bolivian Indigenous Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = BOL 
					}
				}

				random_state = {
					limit = {
						is_controlled_by = BOL
					}
					create_unit = {
					    division = "name = \"4th Bolivian Indigenous Warriors\" division_template = \"Bolivian Indigenous Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = BOL 
					}
					create_unit = {
					    division = "name = \"5th Bolivian Indigenous Warriors\" division_template = \"Bolivian Indigenous Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = BOL 
					}
				}
			}

			hidden_effect = {
				set_country_flag = CHL_reorganized_bolivia_flag
			}
		}

		modifier = {
		}

		remove_effect = {
		}

	}

	# Anti-Imperialism Reorganize the Brazilian Government
	CHL_mapuche_reorganize_the_brazilian_government  = {

		priority = 28
		icon = GFX_decision_CHL_mapuche_reorganize_the_brazilian_government

		ai_will_do = {
			base = 75
		}

		allowed = {  
			original_tag = CHL
		}

		highlight_states = {
			highlight_state_targets = {
				state = 495
				state = 1392
				state = 938
				state = 280
				state = 1383
				state = 1382
				state = 497
				state = 941
				state = 937
				state = 935
				state = 498
				state = 936
				state = 499
				state = 505
				state = 496
				state = 943
				state = 500
				state = 501
				state = 961
				state = 962
				state = 963
				state = 964
				state = 965
				state = 966
				state = 967
				state = 968
				state = 1391
				state = 1221
				state = 1222
				state = 1224
				state = 1271
				state = 1272
				state = 1273
				state = 1274
				state = 1275
			}
		}

		available = {
			has_completed_focus = CHL_crusade_against_imperialism

			OR = {
				AND = {
					BRA = {
						exists = yes
						is_subject_of = ROOT
					}
				}
				AND = {
					BRA = {
						exists = no
					}
					custom_trigger_tooltip = {
						tooltip = CHL_requires_bra_states_tt
						OR = {
							controls_state = 495 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 495 
							}
						}
						
						OR = {
							controls_state = 1392 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1392 
							}
						}

						OR = {
							controls_state = 938 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 938 
							}
						}

						OR = {
							controls_state = 280 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 280 
							}
						}
						
						OR = {
							controls_state = 1383 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1383 
							}
						}
						
						OR = {
							controls_state = 1382 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1382
							}
						}

						OR = {
							controls_state = 497 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 497 
							}
						}

						OR = {
							controls_state = 941 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 941 
							}
						}

						OR = {
							controls_state = 937 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 937 
							}
						}

						OR = {
							controls_state = 935 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 935 
							}
						}

						OR = {
							controls_state = 498 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 498 
							}
						}

						OR = {
							controls_state = 936 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 936 
							}
						}

						OR = {
							controls_state = 499 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 499 
							}
						}

						OR = {
							controls_state = 505 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 505 
							}
						}

						OR = {
							controls_state = 496 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 496 
							}
						}

						OR = {
							controls_state = 943 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 943 
							}
						}

						OR = {
							controls_state = 500 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 500 
							}
						}

						OR = {
							controls_state = 501 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 501 
							}
						}
						
						OR = {
							controls_state = 1221
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1221
							}
						}
						
						OR = {
							controls_state = 1222
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1222
							}
						}
						
						OR = {
							controls_state = 1224
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1224
							}
						}
						
						OR = {
							controls_state = 1271
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1271
							}
						}
						
						OR = {
							controls_state = 1272
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1272
							}
						}
						
						OR = {
							controls_state = 1273
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1273
							}
						}
						
						OR = {
							controls_state = 1274
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1274
							}
						}
						
						OR = {
							controls_state = 1275
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1275
							}
						}
					}
				}
			}
			
		}

		visible = { 
			has_completed_focus = CHL_crusade_against_imperialism
			NOT = {
				has_country_flag = CHL_reorganized_brazil_flag
			}
		} 

		#days_remove = 35 

		cost = 50

		complete_effect = {

			custom_effect_tooltip = CHL_releases_bra_tt
			hidden_effect = {
				every_state = {
					limit = {
						OR = {
							is_controlled_by = ROOT
							any_country = {
								is_subject_of = ROOT
								controls_state = PREV
							}
						}
						OR = {
							state = 495
							state = 1392 
							state = 938
							state = 280
							state = 1383
							state = 1382
							state = 497
							state = 941
							state = 937
							state = 935
							state = 498
							state = 936
							state = 499
							state = 505
							state = 496
							state = 943
							state = 500
							state = 501
							state = 961
							state = 962
							state = 963
							state = 964
							state = 965
							state = 966
							state = 967
							state = 968
							state = 1391
							state = 1221
							state = 1222
							state = 1224
							state = 1271
							state = 1272
							state = 1273
							state = 1274
							state = 1275
						}
					}
					add_core_of = BRA
					transfer_state_to = BRA
				} 
			}

			IF = {
				limit = {
					NOT = {
						has_subject = BRA
					}
				}
				puppet = BRA
			} 

			BRA = {

				drop_cosmetic_tag = yes
				set_cosmetic_tag = indigenous_brazil

				hidden_effect = {
					BRA_indigenous_council = {
						add_country_leader_role = {
							promote_leader = yes
							country_leader = {
								ideology = despotism
								traits = { non_aligned_council_trait }
								expire = "1980.1.1.1"
								id = -1
							}
						}
						add_country_leader_role = {
							promote_leader = yes
							country_leader = {
								ideology = conservatism
								traits = { democratic_council_trait }
								expire = "1980.1.1.1"
								id = -1
							}
						}
						add_country_leader_role = {
							promote_leader = yes
							country_leader = {
								ideology = marxism
								traits = { communist_council_trait }
								expire = "1980.1.1.1"
								id = -1
							}
						}
						add_country_leader_role = {
							promote_leader = yes
							country_leader = {
								ideology = falangism
								traits = { fascist_council_trait }
								expire = "1980.1.1.1"
								id = -1
							}
						}
					}
				}

				add_stability = 0.15
				add_war_support = 0.1
				add_manpower = 10000

				hidden_effect = {
					division_template = {
					    name = "Brazilian Indigenous Warriors"
					    is_locked = no
					    division_names_group = POR_INF_01
					    template_counter = 83
					    override_model = CHL_infantry_alt_1_entity
					    priority = 1
					    regiments = {
					        infantry = { x = 0 y = 0 } 
					        infantry = { x = 0 y = 1 } 
					        infantry = { x = 0 y = 2 } 
					        infantry = { x = 1 y = 0 }  
					        infantry = { x = 1 y = 1 } 
					        infantry = { x = 1 y = 2 } 
					        infantry = { x = 2 y = 0 }  
					        infantry = { x = 2 y = 1 } 
					        infantry = { x = 2 y = 2 } 
					    }
				    	support = {
				           	recon = { x = 0 y = 0 }
				    	}
					} 
				}
					
				random_state = {
					limit = {
						is_controlled_by = BRA
					}
					create_unit = {
					    division = "name = \"1st Brazilian Indigenous Warriors\" division_template = \"Brazilian Indigenous Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = BRA 
					}
					create_unit = {
					    division = "name = \"2nd Brazilian Indigenous Warriors\" division_template = \"Brazilian Indigenous Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = BRA 
					}
					create_unit = {
					    division = "name = \"3rd Brazilian Indigenous Warriors\" division_template = \"Brazilian Indigenous Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = BRA 
					}
				}

				random_state = {
					limit = {
						is_controlled_by = BRA
					}
					create_unit = {
					    division = "name = \"4th Brazilian Indigenous Warriors\" division_template = \"Brazilian Indigenous Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = BRA 
					}
					create_unit = {
					    division = "name = \"5th Brazilian Indigenous Warriors\" division_template = \"Brazilian Indigenous Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = BRA 
					}
				}
			}

			hidden_effect = {
				set_country_flag = CHL_reorganized_brazil_flag
			}
		}

		modifier = {
		}

		remove_effect = {
		}

	}

	# Anti-Imperialism Reorganize the Mexican Government
	CHL_mapuche_reorganize_the_mexican_government  = {

		priority = 27
		icon = GFX_decision_CHL_mapuche_reorganize_the_mexican_government

		ai_will_do = {
			base = 75
		}

		allowed = {  
			original_tag = CHL
		}

		highlight_states = {
			highlight_state_targets = {
				state = 477
				state = 485
				state = 277
				state = 478
				state = 479
				state = 480
				state = 481
				state = 482
				state = 483
				state = 484
			}
		}

		available = {
			has_completed_focus = CHL_crusade_against_imperialism

			OR = {
				AND = {
					MEX = {
						exists = yes
						is_subject_of = ROOT
					}
				}
				AND = {
					MEX = {
						exists = no
					}
					custom_trigger_tooltip = {
						tooltip = CHL_requires_mex_states_tt
						OR = {
							controls_state = 477 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 477 
							}
						}

						OR = {
							controls_state = 485 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 485 
							}
						}

						OR = {
							controls_state = 277 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 277 
							}
						}

						OR = {
							controls_state = 478 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 478 
							}
						}

						OR = {
							controls_state = 479 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 479 
							}
						}

						OR = {
							controls_state = 480 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 480 
							}
						}

						OR = {
							controls_state = 481 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 481 
							}
						}

						OR = {
							controls_state = 482 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 482 
							}
						}

						OR = {
							controls_state = 483 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 483 
							}
						}

						OR = {
							controls_state = 484 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 484 
							}
						}
					}
				}
			}
			
		}

		visible = { 
			has_completed_focus = CHL_crusade_against_imperialism
			NOT = {
				has_country_flag = CHL_reorganized_mexico_flag
			}
		} 

		#days_remove = 35 

		cost = 50

		complete_effect = {

			custom_effect_tooltip = CHL_releases_mex_tt
			hidden_effect = {
				every_state = {
					limit = {
						OR = {
							is_controlled_by = ROOT
							any_country = {
								is_subject_of = ROOT
								controls_state = PREV
							}
						}
						OR = {
							state = 477
							state = 485
							state = 277
							state = 478
							state = 479
							state = 480
							state = 481
							state = 482
							state = 483
							state = 484
						}
					}
					add_core_of = MEX
					transfer_state_to = MEX
				} 
			}

			IF = {
				limit = {
					NOT = {
						has_subject = MEX
					}
				}
				puppet = MEX
			} 

			MEX = {

				drop_cosmetic_tag = yes
				set_cosmetic_tag = indigenous_mexico

				hidden_effect = {
					MEX_indigenous_council = {
						add_country_leader_role = {
							promote_leader = yes
							country_leader = {
								ideology = despotism
								traits = { non_aligned_council_trait }
								expire = "1980.1.1.1"
								id = -1
							}
						}
						add_country_leader_role = {
							promote_leader = yes
							country_leader = {
								ideology = conservatism
								traits = { democratic_council_trait }
								expire = "1980.1.1.1"
								id = -1
							}
						}
						add_country_leader_role = {
							promote_leader = yes
							country_leader = {
								ideology = marxism
								traits = { communist_council_trait }
								expire = "1980.1.1.1"
								id = -1
							}
						}
						add_country_leader_role = {
							promote_leader = yes
							country_leader = {
								ideology = falangism
								traits = { fascist_council_trait }
								expire = "1980.1.1.1"
								id = -1
							}
						}
					}
				}

				add_stability = 0.15
				add_war_support = 0.1
				add_manpower = 10000

				hidden_effect = {
					division_template = {
					    name = "Mexican Indigenous Warriors"
					    is_locked = no
					    division_names_group = SPR_INF_01
					    template_counter = 82
					    override_model = CHL_infantry_alt_1_entity
					    priority = 1
					    regiments = {
					        infantry = { x = 0 y = 0 } 
					        infantry = { x = 0 y = 1 } 
					        infantry = { x = 0 y = 2 } 
					        infantry = { x = 1 y = 0 }  
					        infantry = { x = 1 y = 1 } 
					        infantry = { x = 1 y = 2 } 
					        infantry = { x = 2 y = 0 }  
					        infantry = { x = 2 y = 1 } 
					        infantry = { x = 2 y = 2 } 
					    }
				    	support = {
				           	recon = { x = 0 y = 0 }
				    	}
					} 
				}
					
				random_state = {
					limit = {
						is_controlled_by = MEX
					}
					create_unit = {
					    division = "name = \"1st Mexican Indigenous Warriors\" division_template = \"Mexican Indigenous Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = MEX 
					}
					create_unit = {
					    division = "name = \"2nd Mexican Indigenous Warriors\" division_template = \"Mexican Indigenous Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = MEX 
					}
					create_unit = {
					    division = "name = \"3rd Mexican Indigenous Warriors\" division_template = \"Mexican Indigenous Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = MEX 
					}
				}

				random_state = {
					limit = {
						is_controlled_by = MEX
					}
					create_unit = {
					    division = "name = \"4th Mexican Indigenous Warriors\" division_template = \"Mexican Indigenous Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = MEX 
					}
					create_unit = {
					    division = "name = \"5th Mexican Indigenous Warriors\" division_template = \"Mexican Indigenous Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = MEX 
					}
					create_unit = {
					    division = "name = \"6th Mexican Indigenous Warriors\" division_template = \"Mexican Indigenous Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = MEX 
					}
				}
			}

			hidden_effect = {
				set_country_flag = CHL_reorganized_mexico_flag
			}
		}

		modifier = {
		}

		remove_effect = {
		}

	}

	# Anti-Imperialism Establish a Federation in the Guianas
	CHL_mapuche_establish_a_guianan_government  = {

		priority = 27
		icon = GFX_decision_CHL_mapuche_establish_a_guianan_government

		ai_will_do = {
			base = 75
		}

		allowed = {  
			original_tag = CHL
		}

		highlight_states = {
			highlight_state_targets = {
				state = 310
				state = 1394
				state = 1393
				state = 309
				state = 687
				state = 488
				state = 939
				state = 969
				state = 1206
				state = 1207
				state = 1208
				state = 1209
				state = 1210
				state = 1214
				state = 1217
				state = 1233
			}
		}

		available = {
			has_completed_focus = CHL_crusade_against_imperialism

			OR = {
				AND = {
					SUR = {
						exists = yes
						is_subject_of = ROOT
					}
				}
				AND = {
					SUR = {
						exists = no
					}
					
					OR = {
						controls_state = 310 
							
						any_country = {
							is_subject_of = ROOT
							controls_state = 310 
						}
					}
					
					OR = {
						controls_state = 1394 
							
						any_country = {
							is_subject_of = ROOT
							controls_state = 1394
						}
					}
					
					OR = {
						controls_state = 1393
							
						any_country = {
							is_subject_of = ROOT
							controls_state = 1393
						}
					}

					OR = {
						controls_state = 309 
							
						any_country = {
							is_subject_of = ROOT
							controls_state = 309 
						}
					}

					OR = {
						controls_state = 687 
							
						any_country = {
							is_subject_of = ROOT
							controls_state = 687 
						}
					}

					OR = {
						controls_state = 488 
							
						any_country = {
							is_subject_of = ROOT
							controls_state = 488 
						}
					}

					OR = {
						controls_state = 939 
							
						any_country = {
							is_subject_of = ROOT
							controls_state = 939 
						}
					}

					OR = {
						controls_state = 969
							
						any_country = {
							is_subject_of = ROOT
							controls_state = 939 
						}
					}
					
					OR = {
						controls_state = 1206
							
						any_country = {
							is_subject_of = ROOT
							controls_state = 1206
						}
					}
					
					OR = {
						controls_state = 1207
							
						any_country = {
							is_subject_of = ROOT
							controls_state = 1207
						}
					}
					
					OR = {
						controls_state = 1208
							
						any_country = {
							is_subject_of = ROOT
							controls_state = 1208
						}
					}
					
					OR = {
						controls_state = 1209
							
						any_country = {
							is_subject_of = ROOT
							controls_state = 1209
						}
					}
					
					OR = {
						controls_state = 1210
							
						any_country = {
							is_subject_of = ROOT
							controls_state = 1210
						}
					}
					
					OR = {
						controls_state = 1214
							
						any_country = {
							is_subject_of = ROOT
							controls_state = 1214
						}
					}
					
					OR = {
						controls_state = 1217
							
						any_country = {
							is_subject_of = ROOT
							controls_state = 1217
						}
					}
					
					OR = {
						controls_state = 1233
							
						any_country = {
							is_subject_of = ROOT
							controls_state = 1233
						}
					}
					
				}
			}
			
		}

		visible = { 
			has_completed_focus = CHL_crusade_against_imperialism
			NOT = {
				has_country_flag = CHL_established_the_guianas_flag
			}
		} 

		#days_remove = 35 

		cost = 50

		complete_effect = {

				every_state = {
					limit = {
						OR = {
							is_controlled_by = ROOT
							any_country = {
								is_subject_of = ROOT
								controls_state = PREV
							}
						}
						OR = {
							state = 310
							state = 1394
							state = 1393
							state = 309
							state = 687
							state = 488
							state = 939
							state = 969
							state = 1206
							state = 1207
							state = 1208
							state = 1209
							state = 1210
							state = 1214
							state = 1217
							state = 1233
						}
					}
					add_core_of = SUR
					transfer_state_to = SUR
				} 
			

			IF = {
				limit = {
					NOT = {
						has_subject = SUR
					}
				}
				puppet = SUR
			} 

			SUR = {

				drop_cosmetic_tag = yes
				set_cosmetic_tag = united_guiana

				hidden_effect = {
					SUR_guianan_indigenous_council = {
						add_country_leader_role = {
							promote_leader = yes
							country_leader = {
								ideology = despotism
								traits = { non_aligned_council_trait }
								expire = "1980.1.1.1"
								id = -1
							}
						}
						add_country_leader_role = {
							promote_leader = yes
							country_leader = {
								ideology = conservatism
								traits = { democratic_council_trait }
								expire = "1980.1.1.1"
								id = -1
							}
						}
						add_country_leader_role = {
							promote_leader = yes
							country_leader = {
								ideology = marxism
								traits = { communist_council_trait }
								expire = "1980.1.1.1"
								id = -1
							}
						}
						add_country_leader_role = {
							promote_leader = yes
							country_leader = {
								ideology = falangism
								traits = { fascist_council_trait }
								expire = "1980.1.1.1"
								id = -1
							}
						}
					}
				}

				add_stability = 0.15
				add_war_support = 0.1
				add_manpower = 10000

				hidden_effect = {
					division_template = {
					    name = "Guianan Indigenous Warriors"
					    is_locked = no
					    division_names_group = HOL_INF_01
					    template_counter = 85
					    override_model = CHL_infantry_alt_1_entity
					    priority = 1
					    regiments = {
					        infantry = { x = 0 y = 0 } 
					        infantry = { x = 0 y = 1 } 
					        infantry = { x = 0 y = 2 } 
					        infantry = { x = 1 y = 0 }  
					        infantry = { x = 1 y = 1 } 
					        infantry = { x = 1 y = 2 } 
					        infantry = { x = 2 y = 0 }  
					        infantry = { x = 2 y = 1 } 
					        infantry = { x = 2 y = 2 } 
					    }
				    	support = {
				           	recon = { x = 0 y = 0 }
				    	}
					} 
				}
					
				random_state = {
					limit = {
						is_controlled_by = SUR
					}
					create_unit = {
					    division = "name = \"1st Guianan Indigenous Warriors\" division_template = \"Guianan Indigenous Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = SUR 
					}
					create_unit = {
					    division = "name = \"2nd Guianan Indigenous Warriors\" division_template = \"Guianan Indigenous Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = SUR 
					}
					create_unit = {
					    division = "name = \"3rd Guianan Indigenous Warriors\" division_template = \"Guianan Indigenous Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = SUR 
					}
				}

				random_state = {
					limit = {
						is_controlled_by = SUR
					}
					create_unit = {
					    division = "name = \"4th Guianan Indigenous Warriors\" division_template = \"Guianan Indigenous Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = SUR 
					}
					create_unit = {
					    division = "name = \"5th Guianan Indigenous Warriors\" division_template = \"Guianan Indigenous Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = SUR 
					}
				}
			}

			hidden_effect = {
				set_country_flag = CHL_established_the_guianas_flag
				set_global_flag = guiana_flag
			}
		}

		modifier = {
		}

		remove_effect = {
		}

	}

	# Anti-Imperialism Reorganize the Canadian Government
	CHL_mapuche_reorganize_the_canadian_government  = {

		priority = 25
		icon = GFX_decision_CHL_mapuche_reorganize_the_canadian_government

		ai_will_do = {
			base = 75
		}

		allowed = {  
			original_tag = CHL
		}

		highlight_states = {
			highlight_state_targets = {
				state = 860
				state = 863
				state = 862
				state = 468
				state = 465
				state = 464
				state = 276
				state = 682
				state = 866
				state = 867
				state = 467
				state = 865
				state = 469
				state = 1364
				state = 470
				state = 1591
				state = 1362
				state = 473
				state = 471
				state = 740
				state = 739
				state = 331
				state = 730
				state = 1162
				state = 1163
				state = 1592
				state = 1164
				state = 1363
				state = 1165
				state = 1166
				state = 1582
				state = 1594
				state = 1583
				state = 1584
				state = 1585
			}
		}

		available = {
			has_completed_focus = CHL_crusade_against_imperialism

			OR = {
				AND = {
					CAN = {
						exists = yes
						is_subject_of = ROOT
					}
				}
				AND = {
					CAN = {
						exists = no
					}
					custom_trigger_tooltip = {
						tooltip = CHL_requires_can_states_tt
						OR = {
							controls_state = 860 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 860 
							}
						}

						OR = {
							controls_state = 863 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 863 
							}
						}

						OR = {
							controls_state = 862 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 862 
							}
						}

						OR = {
							controls_state = 468 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 468 
							}
						}

						OR = {
							controls_state = 465 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 465 
							}
						}

						OR = {
							controls_state = 464 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 464 
							}
						}

						OR = {
							controls_state = 276 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 276 
							}
						}

						OR = {
							controls_state = 682 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 682 
							}
						}

						OR = {
							controls_state = 866 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 866 
							}
						}

						OR = {
							controls_state = 867 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 867 
							}
						}

						OR = {
							controls_state = 467 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 467 
							}
						}

						OR = {
							controls_state = 865 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 865 
							}
						}

						OR = {
							controls_state = 469 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 469 
							}
						}
						
						OR = {
							controls_state = 1364
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1364 
							}
						}

						OR = {
							controls_state = 470 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 470 
							}
						}
						
						OR = {
							controls_state = 1591
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1591
							}
						}
						
						OR = {
							controls_state = 1362
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1362
							}
						}

						OR = {
							controls_state = 473 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 473 
							}
						}

						OR = {
							controls_state = 471 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 471 
							}
						}

						OR = {
							controls_state = 740 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 740 
							}
						}
						
						OR = {
							controls_state = 1162
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1162
							}
						}
						
						OR = {
							controls_state = 1163
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1163
							}
						}
						
						OR = {
							controls_state = 1592
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1592
							}
						}
						
						OR = {
							controls_state = 1164
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1164
							}
						}
						
						OR = {
							controls_state = 1363
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1363
							}
						}
						
						OR = {
							controls_state = 1165
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1165
							}
						}
						
						OR = {
							controls_state = 1166
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1166
							}
						}
						
						OR = {
							controls_state = 1582
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1582
							}
						}
						
						OR = {
							controls_state = 1594
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1594
							}
						}
						
						OR = {
							controls_state = 1583
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1583
							}
						}
						
						OR = {
							controls_state = 1584
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1584
							}
						}
						
						OR = {
							controls_state = 1585
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1585
							}
						}
					}
				}
			}
			
		}

		visible = { 
			has_completed_focus = CHL_crusade_against_imperialism
			NOT = {
				has_country_flag = CHL_reorganized_canada_flag
			}
		} 

		#days_remove = 35 

		cost = 50

		complete_effect = {

			custom_effect_tooltip = CHL_releases_can_tt
			hidden_effect = {
				every_state = {
					limit = {
						OR = {
							is_controlled_by = ROOT
							any_country = {
								is_subject_of = ROOT
								controls_state = PREV
							}
						}
						OR = {
							state = 860
							state = 863
							state = 862
							state = 468
							state = 465
							state = 464
							state = 276
							state = 682
							state = 866
							state = 867
							state = 467
							state = 865
							state = 469
							state = 1364
							state = 470
							state = 1591
							state = 1362
							state = 473
							state = 471
							state = 740
							state = 1162
							state = 1163
							state = 1592
							state = 1164
							state = 1363
							state = 1165
							state = 1166
							state = 1582
							state = 1594
							state = 1583
							state = 1584
							state = 1585
						}
					}
					add_core_of = CAN
					transfer_state_to = CAN
				} 
			}

			IF = {
				limit = {
					739 = {
						OR = {
							is_controlled_by = ROOT
							any_country = {
								is_subject_of = ROOT
								controls_state = PREV
							}
						}
					}
				}
				739 = {
					transfer_state_to = CAN
				}
			}

			IF = {
				limit = {
					331 = {
						OR = {
							is_controlled_by = ROOT
							any_country = {
								is_subject_of = ROOT
								controls_state = PREV
							}
						}
					}
				}
				331 = {
					transfer_state_to = CAN
				}
			}

			IF = {
				limit = {
					730 = {
						OR = {
							is_controlled_by = ROOT
							any_country = {
								is_subject_of = ROOT
								controls_state = PREV
							}
						}
					}
				}
				730 = {
					transfer_state_to = CAN
				}
			}

			730 = {
				add_core_of = CAN
			}

			IF = {
				limit = {
					NOT = {
						has_subject = CAN
					}
				}
				puppet = CAN
			} 

			CAN = {

				drop_cosmetic_tag = yes
				set_cosmetic_tag = first_nations_canada

				hidden_effect = {
					CAN_first_nations_council = {
						add_country_leader_role = {
							promote_leader = yes
							country_leader = {
								ideology = despotism
								traits = { non_aligned_council_trait }
								expire = "1980.1.1.1"
								id = -1
							}
						}
						add_country_leader_role = {
							promote_leader = yes
							country_leader = {
								ideology = conservatism
								traits = { democratic_council_trait }
								expire = "1980.1.1.1"
								id = -1
							}
						}
						add_country_leader_role = {
							promote_leader = yes
							country_leader = {
								ideology = marxism
								traits = { communist_council_trait }
								expire = "1980.1.1.1"
								id = -1
							}
						}
						add_country_leader_role = {
							promote_leader = yes
							country_leader = {
								ideology = falangism
								traits = { fascist_council_trait }
								expire = "1980.1.1.1"
								id = -1
							}
						}
					}
				}

				add_stability = 0.15
				add_war_support = 0.1
				add_manpower = 10000

				hidden_effect = {
					division_template = {
					    name = "First Nations Warriors"
					    is_locked = no
					    division_names_group = ENG_INF_01
					    template_counter = 85
					    override_model = CHL_infantry_alt_1_entity
					    priority = 1
					    regiments = {
					        infantry = { x = 0 y = 0 } 
					        infantry = { x = 0 y = 1 } 
					        infantry = { x = 0 y = 2 } 
					        infantry = { x = 1 y = 0 }  
					        infantry = { x = 1 y = 1 } 
					        infantry = { x = 1 y = 2 } 
					        infantry = { x = 2 y = 0 }  
					        infantry = { x = 2 y = 1 } 
					        infantry = { x = 2 y = 2 } 
					    }
				    	support = {
				           	recon = { x = 0 y = 0 }
				    	}
					} 
				}
					
				random_state = {
					limit = {
						is_controlled_by = CAN
					}
					create_unit = {
					    division = "name = \"1st First Nations Warriors\" division_template = \"First Nations Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = CAN 
					}
					create_unit = {
					    division = "name = \"2nd First Nations Warriors\" division_template = \"First Nations Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = CAN 
					}
					create_unit = {
					    division = "name = \"3rd First Nations Warriors\" division_template = \"First Nations Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = CAN 
					}
				}

				random_state = {
					limit = {
						is_controlled_by = CAN
					}
					create_unit = {
					    division = "name = \"4th First Nations Warriors\" division_template = \"First Nations Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = CAN 
					}
					create_unit = {
					    division = "name = \"5th First Nations Warriors\" division_template = \"First Nations Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = CAN 
					}
					create_unit = {
					    division = "name = \"6th First Nations Warriors\" division_template = \"First Nations Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = CAN 
					}
				}
			}

			hidden_effect = {
				set_country_flag = CHL_reorganized_canada_flag
			}
		}

		modifier = {
		}

		remove_effect = {
		}

	}

	# Anti-Imperialism Reorganize the American Government
	CHL_mapuche_reorganize_the_american_government  = {

		priority = 24
		icon = GFX_decision_CHL_mapuche_reorganize_the_american_government

		ai_will_do = {
			base = 75
		}

		allowed = {  
			original_tag = CHL
		}

		highlight_states = {
			highlight_state_targets = {
				state = 386
				state = 1615
				state = 1415
				state = 1564
				state = 1565
				state = 1613
				state = 385
				state = 1616
				state = 1617
				state = 1618
				state = 1619
				state = 1620
				state = 1621
				state = 1561
				state = 378
				state = 1624
				state = 1625
				state = 1655
				state = 1562
				state = 1563
				state = 1622
				state = 1623
				state = 379
				state = 1673
				state = 1674
				state = 1626
				state = 1627
				state = 1628
				state = 1566
				state = 387
				state = 1630
				state = 1631
				state = 1632
				state = 1633
				state = 1634
				state = 1635
				state = 388
				state = 381
				state = 1358
				state = 380
				state = 1638
				state = 382
				state = 1355
				state = 377
				state = 1641
				state = 1642
				state = 1643
				state = 1644
				state = 1645
				state = 1646
				state = 1647
				state = 1648
				state = 1649
				state = 1650
				state = 1651
				state = 1652
				state = 1653
				state = 1654
				state = 376
				state = 1657
				state = 1658
				state = 1659
				state = 1660
				state = 1662
				state = 1663
				state = 1664
				state = 1567
				state = 1353
				state = 389
				state = 1365
				state = 390
				state = 1677
				state = 1366
				state = 384
				state = 383
				state = 1675
				state = 374
				state = 1676
				state = 375
				state = 1666
				state = 1667
				state = 1668
				state = 1669
				state = 1670
				state = 1671
				state = 1672
				state = 1350
				state = 1351
				state = 391
				state = 1367
				state = 392
				state = 373
				state = 1678
				state = 1679
				state = 372
				state = 1680
				state = 371
				state = 1346
				state = 1347
				state = 1348
				state = 1349
				state = 394
				state = 1685
				state = 395
				state = 1686
				state = 393
				state = 1683
				state = 1684
				state = 396
				state = 261
				state = 1681
				state = 1682
				state = 369
				state = 1687
				state = 368
				state = 1688
				state = 370
				state = 367
				state = 1689
				state = 365
				state = 366
				state = 1690
				state = 1691
				state = 364
				state = 1692
				state = 363
				state = 1693
				state = 362
				state = 1697
				state = 1698
				state = 1699
				state = 816
				state = 1694
				state = 1695
				state = 1696
				state = 361
				state = 360
				state = 359
				state = 358
				state = 357
				state = 1150
				state = 1151
				state = 1661
				state = 1352
				state = 1152
				state = 1656
				state = 1153
				state = 1665
				state = 1154
				state = 1155
				state = 1637
				state = 1639
				state = 1640
				state = 1156
				state = 1157
				state = 1158
				state = 1359
				state = 1360
				state = 1361
				state = 1159
				state = 1629
				state = 1160
				state = 1636
				state = 1161
				state = 1614
				state = 1167
				state = 1176
				state = 1177
				state = 1178
				state = 1179
				state = 1356
				state = 1354
				state = 1180
				state = 1357
			}
		}

		available = {
			has_completed_focus = CHL_crusade_against_imperialism

			OR = {
				AND = {
					USA = {
						exists = yes
						is_subject_of = ROOT
					}
				}
				AND = {
					USA = {
						exists = no
					}
					custom_trigger_tooltip = {
						tooltip = CHL_requires_usa_states_tt
						OR = {
							controls_state = 386 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 386 
							}
						}
						
						OR = {
							controls_state = 1615
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1615
							}
						}
						
						OR = {
							controls_state = 1415
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1415 
							}
						}
						
						OR = {
							controls_state = 1564 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1564 
							}
						}
						
						OR = {
							controls_state = 1565 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1565
							}
						}
						
						OR = {
							controls_state = 1613
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1613
							}
						}

						OR = {
							controls_state = 385 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 385 
							}
						}
						
						OR = {
							controls_state = 1616
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1616
							}
						}
						
						OR = {
							controls_state = 1617
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1617
							}
						}
						
						OR = {
							controls_state = 1618
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1618
							}
						}
						
						OR = {
							controls_state = 1619
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1619
							}
						}
						
						OR = {
							controls_state = 1620
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1620
							}
						}
						
						OR = {
							controls_state = 1621
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1621
							}
						}
						
						OR = {
							controls_state = 1561
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1561
							}
						}

						OR = {
							controls_state = 378 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 378 
							}
						}
						
						OR = {
							controls_state = 1624
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1624
							}
						}
						
						OR = {
							controls_state = 1625
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1625
							}
						}
						
						OR = {
							controls_state = 1655
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1655
							}
						}
						
						OR = {
							controls_state = 1562
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1562
							}
						}
						
						OR = {
							controls_state = 1563
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1563
							}
						}
						
						OR = {
							controls_state = 1622
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1622
							}
						}
						
						OR = {
							controls_state = 1623
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1623
							}
						}

						OR = {
							controls_state = 379 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 379 
							}
						}
						
						OR = {
							controls_state = 1673
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1673
							}
						}
						
						OR = {
							controls_state = 1674
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1674
							}
						}
						
						OR = {
							controls_state = 1626
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1626
							}
						}
						
						OR = {
							controls_state = 1627
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1627
							}
						}
						
						OR = {
							controls_state = 1628
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1628
							}
						}
						
						OR = {
							controls_state = 1566 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1566
							}
						}

						OR = {
							controls_state = 387 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 387 
							}
						}
						
						OR = {
							controls_state = 1630
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1630
							}
						}
						
						OR = {
							controls_state = 1631
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1631
							}
						}
						
						OR = {
							controls_state = 1632
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1632
							}
						}
						
						OR = {
							controls_state = 1633
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1633
							}
						}
						
						OR = {
							controls_state = 1634
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1634
							}
						}
						
						OR = {
							controls_state = 1635
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1635
							}
						}

						OR = {
							controls_state = 388 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 388 
							}
						}

						OR = {
							controls_state = 381 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 381 
							}
						}
						
						OR = {
							controls_state = 1358
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1358
							}
						}

						OR = {
							controls_state = 380 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 380 
							}
						}
						
						OR = {
							controls_state = 1638
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1638
							}
						}

						OR = {
							controls_state = 382 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 382 
							}
						}
						
						OR = {
							controls_state = 1355 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1355 
							}
						}

						OR = {
							controls_state = 377 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 377 
							}
						}
						
						OR = {
							controls_state = 1641
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1641
							}
						}
						
						OR = {
							controls_state = 1642
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1642
							}
						}
						
						OR = {
							controls_state = 1643
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1643
							}
						}
						
						OR = {
							controls_state = 1644
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1644
							}
						}
						
						OR = {
							controls_state = 1645
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1645
							}
						}
						
						OR = {
							controls_state = 1646
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1646
							}
						}
						
						OR = {
							controls_state = 1647
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1647
							}
						}
						
						OR = {
							controls_state = 1648
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1648
							}
						}
						
						OR = {
							controls_state = 1649
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1649
							}
						}
						
						OR = {
							controls_state = 1650
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1650
							}
						}
						
						OR = {
							controls_state = 1651
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1651
							}
						}
						
						OR = {
							controls_state = 1652
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1652
							}
						}
						
						OR = {
							controls_state = 1653
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1653
							}
						}
						
						OR = {
							controls_state = 1654
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1654
							}
						}

						OR = {
							controls_state = 376 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 376 
							}
						}
						
						OR = {
							controls_state = 1657
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1657
							}
						}
						
						OR = {
							controls_state = 1658
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1658
							}
						}
						
						OR = {
							controls_state = 1659
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1659
							}
						}
						
						OR = {
							controls_state = 1660
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1660
							}
						}
						
						OR = {
							controls_state = 1662
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1662
							}
						}
						
						OR = {
							controls_state = 1663
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1663
							}
						}
						
						OR = {
							controls_state = 1664
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1664
							}
						}
						
						OR = {
							controls_state = 1567
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1567
							}
						}
						
						OR = {
							controls_state = 1353
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1353 
							}
						}

						OR = {
							controls_state = 389 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 389 
							}
						}
						
						OR = {
							controls_state = 1365
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1365
							}
						}

						OR = {
							controls_state = 390 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 390 
							}
						}
						
						OR = {
							controls_state = 1677 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1677
							}
						}
						
						OR = {
							controls_state = 1366 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1366
							}
						}

						OR = {
							controls_state = 384 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 384 
							}
						}

						OR = {
							controls_state = 383 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 383 
							}
						}
						
						OR = {
							controls_state = 1675
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1675
							}
						}

						OR = {
							controls_state = 374 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 374 
							}
						}
						
						OR = {
							controls_state = 1676 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1676
							}
						}

						OR = {
							controls_state = 375 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 375 
							}
						}
						
						OR = {
							controls_state = 1666
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1666
							}
						}
						
						OR = {
							controls_state = 1667
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1667
							}
						}
						
						OR = {
							controls_state = 1668
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1668
							}
						}
						
						OR = {
							controls_state = 1669
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1669
							}
						}
						
						OR = {
							controls_state = 1670
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1670
							}
						}
						
						OR = {
							controls_state = 1671
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1671
							}
						}
						
						OR = {
							controls_state = 1672
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1672
							}
						}
						
						OR = {
							controls_state = 1350
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1350 
							}
						}
						
						OR = {
							controls_state = 1351 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1351 
							}
						}

						OR = {
							controls_state = 391 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 391 
							}
						}
						
						OR = {
							controls_state = 1367 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1367 
							}
						}

						OR = {
							controls_state = 392 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 392 
							}
						}

						OR = {
							controls_state = 373 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 373 
							}
						}
						
						OR = {
							controls_state = 1678
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1678
							}
						}
						
						OR = {
							controls_state = 1679
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1679
							}
						}

						OR = {
							controls_state = 372 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 372 
							}
						}
						
						OR = {
							controls_state = 1680
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1680
							}
						}

						OR = {
							controls_state = 371 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 371 
							}
						}
						
						OR = {
							controls_state = 1346 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1346 
							}
						}
						
						OR = {
							controls_state = 1347
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1347
							}
						}
						
						OR = {
							controls_state = 1348
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1348 
							}
						}
						
						OR = {
							controls_state = 1349
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1349
							}
						}

						OR = {
							controls_state = 394 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 394 
							}
						}
						
						OR = {
							controls_state = 1685 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1685 
							}
						}

						OR = {
							controls_state = 395 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 395 
							}
						}
						
						OR = {
							controls_state = 1686 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1686 
							}
						}

						OR = {
							controls_state = 393 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 393 
							}
						}
						
						OR = {
							controls_state = 1683
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1683
							}
						}
						
						OR = {
							controls_state = 1684
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1684
							}
						}

						OR = {
							controls_state = 396 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 396 
							}
						}

						OR = {
							controls_state = 261 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 261 
							}
						}
						
						OR = {
							controls_state = 1681 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1681
							}
						}
						
						OR = {
							controls_state = 1682 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1682
							}
						}

						OR = {
							controls_state = 369 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 369 
							}
						}
						
						OR = {
							controls_state = 1687 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1687
							}
						}

						OR = {
							controls_state = 368 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 368 
							}
						}
						
						OR = {
							controls_state = 1688
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1688
							}
						}

						OR = {
							controls_state = 370 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 370 
							}
						}

						OR = {
							controls_state = 367 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 367 
							}
						}
						
						OR = {
							controls_state = 1689
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1689
							}
						}

						OR = {
							controls_state = 365 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 365 
							}
						}

						OR = {
							controls_state = 366 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 366 
							}
						}
						
						OR = {
							controls_state = 1690
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1690
							}
						}
						
						OR = {
							controls_state = 1691
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1691
							}
						}

						OR = {
							controls_state = 364 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 364 
							}
						}
						
						OR = {
							controls_state = 1692
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1692
							}
						}

						OR = {
							controls_state = 363 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 363 
							}
						}
						
						OR = {
							controls_state = 1693
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1693
							}
						}

						OR = {
							controls_state = 362 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 362 
							}
						}
						
						OR = {
							controls_state = 1697
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1697
							}
						}
						
						OR = {
							controls_state = 1698
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1698
							}
						}
						
						OR = {
							controls_state = 1699
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1699
							}
						}

						OR = {
							controls_state = 816 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 816 
							}
						}
						
						OR = {
							controls_state = 1694
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1694
							}
						}
						
						OR = {
							controls_state = 1695
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1695
							}
						}
						
						OR = {
							controls_state = 1696
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1696
							}
						}

						OR = {
							controls_state = 361 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 361 
							}
						}

						OR = {
							controls_state = 360 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 360 
							}
						}

						OR = {
							controls_state = 359 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 359 
							}
						}

						OR = {
							controls_state = 358 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 358 
							}
						}

						OR = {
							controls_state = 357 
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 357 
							}
						}
						
						OR = {
							controls_state = 1150
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1150
							}
						}
						
						OR = {
							controls_state = 1151
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1151
							}
						}
						
						OR = {
							controls_state = 1661
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1661
							}
						}
						
						OR = {
							controls_state = 1352
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1352
							}
						}
						
						OR = {
							controls_state = 1152
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1152
							}
						}
						
						OR = {
							controls_state = 1656
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1656
							}
						}
						
						OR = {
							controls_state = 1153
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1153
							}
						}
						
						OR = {
							controls_state = 1665
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1665
							}
						}
						
						OR = {
							controls_state = 1154
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1154
							}
						}
						
						OR = {
							controls_state = 1155
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1155
							}
						}
						
						OR = {
							controls_state = 1637
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1637
							}
						}
						
						OR = {
							controls_state = 1639
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1639
							}
						}
						
						OR = {
							controls_state = 1640
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1640
							}
						}
						
						OR = {
							controls_state = 1156
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1156
							}
						}
						
						OR = {
							controls_state = 1157
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1157
							}
						}
						
						OR = {
							controls_state = 1158
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1158
							}
						}
						
						OR = {
							controls_state = 1359
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1359
							}
						}
						
						OR = {
							controls_state = 1360
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1360
							}
						}
						
						OR = {
							controls_state = 1361
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1361
							}
						}
						
						OR = {
							controls_state = 1159
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1159
							}
						}
						
						OR = {
							controls_state = 1629
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1629
							}
						}
						
						OR = {
							controls_state = 1160
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1160
							}
						}
						
						OR = {
							controls_state = 1636
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1636
							}
						}
						
						OR = {
							controls_state = 1161
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1161
							}
						}
						
						OR = {
							controls_state = 1614
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1614
							}
						}
						
						OR = {
							controls_state = 1167
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1167
							}
						}
						
						OR = {
							controls_state = 1176
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1176
							}
						}
						
						OR = {
							controls_state = 1177
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1177
							}
						}
						
						OR = {
							controls_state = 1178
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1178
							}
						}
						
						OR = {
							controls_state = 1179
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1179
							}
						}
						
						OR = {
							controls_state = 1356
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1356
							}
						}
						
						OR = {
							controls_state = 1354
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1354
							}
						}
						
						OR = {
							controls_state = 1180
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1180
							}
						}
						
						OR = {
							controls_state = 1357
								
							any_country = {
								is_subject_of = ROOT
								controls_state = 1357
							}
						}
					}
				}
			}
			
		}

		visible = { 
			has_completed_focus = CHL_crusade_against_imperialism
			NOT = {
				has_country_flag = CHL_reorganized_usa_flag
			}
		} 

		#days_remove = 35 

		cost = 50

		complete_effect = {

			custom_effect_tooltip = CHL_releases_usa_tt
			hidden_effect = {
				every_state = {
					limit = {
						OR = {
							is_controlled_by = ROOT
							any_country = {
								is_subject_of = ROOT
								controls_state = PREV
							}
						}
						OR = {
							state = 386
							state = 1615
							state = 1415
							state = 1564
							state = 1565
							state = 1613
							state = 385
							state = 1616
							state = 1617
							state = 1618
							state = 1619
							state = 1620
							state = 1621
							state = 1561
							state = 378
							state = 1624
							state = 1625
							state = 1655
							state = 1562
							state = 1563
							state = 1622
							state = 1623
							state = 379
							state = 1673
							state = 1674
							state = 1626
							state = 1627
							state = 1628
							state = 1566
							state = 387
							state = 1630
							state = 1631
							state = 1632
							state = 1633
							state = 1634
							state = 1635
							state = 388
							state = 381
							state = 1358
							state = 380
							state = 1638
							state = 382
							state = 1355
							state = 377
							state = 1641
							state = 1642
							state = 1643
							state = 1644
							state = 1645
							state = 1646
							state = 1647
							state = 1648
							state = 1649
							state = 1650
							state = 1651
							state = 1652
							state = 1653
							state = 1654
							state = 376
							state = 1657
							state = 1658
							state = 1659
							state = 1660
							state = 1662
							state = 1663
							state = 1664
							state = 1567
							state = 1353
							state = 389
							state = 1365
							state = 390
							state = 1677
							state = 1366
							state = 384
							state = 383
							state = 1675
							state = 374
							state = 1676
							state = 375
							state = 1666
							state = 1667
							state = 1668
							state = 1669
							state = 1670
							state = 1671
							state = 1672
							state = 1350
							state = 1351
							state = 391
							state = 1367
							state = 392
							state = 373
							state = 1678
							state = 1679
							state = 372
							state = 1680
							state = 371
							state = 1346
							state = 1347
							state = 1348
							state = 1349
							state = 394
							state = 1685
							state = 395
							state = 1686
							state = 393
							state = 1683
							state = 1684
							state = 396
							state = 261
							state = 1681
							state = 1682
							state = 369
							state = 1687
							state = 368
							state = 1688
							state = 370
							state = 367
							state = 1689
							state = 365
							state = 366
							state = 1690
							state = 1691
							state = 364
							state = 1692
							state = 363
							state = 1693
							state = 362
							state = 1697
							state = 1698
							state = 1699
							state = 816
							state = 1694
							state = 1695
							state = 1696
							state = 361
							state = 360
							state = 359
							state = 358
							state = 357
							state = 1150
							state = 1151
							state = 1661
							state = 1352
							state = 1152
							state = 1656
							state = 1153
							state = 1665
							state = 1154
							state = 1155
							state = 1637
							state = 1639
							state = 1640
							state = 1156
							state = 1157
							state = 1158
							state = 1359
							state = 1360
							state = 1361
							state = 1159
							state = 1629
							state = 1160
							state = 1636
							state = 1161
							state = 1614
							state = 1167
							state = 1176
							state = 1177
							state = 1178
							state = 1179
							state = 1356
							state = 1354
							state = 1180
							state = 1357
						}
					}
					add_core_of = USA
					transfer_state_to = USA
				} 
			}

			IF = {
				limit = {
					NOT = {
						has_subject = USA
					}
				}
				puppet = USA
			} 

			USA = {

				drop_cosmetic_tag = yes
				set_cosmetic_tag = native_american_usa

				hidden_effect = {
					USA_native_american_council = {
						add_country_leader_role = {
							promote_leader = yes
							country_leader = {
								ideology = despotism
								traits = { non_aligned_council_trait }
								expire = "1980.1.1.1"
								id = -1
							}
						}
						add_country_leader_role = {
							promote_leader = yes
							country_leader = {
								ideology = conservatism
								traits = { democratic_council_trait }
								expire = "1980.1.1.1"
								id = -1
							}
						}
						add_country_leader_role = {
							promote_leader = yes
							country_leader = {
								ideology = marxism
								traits = { communist_council_trait }
								expire = "1980.1.1.1"
								id = -1
							}
						}
						add_country_leader_role = {
							promote_leader = yes
							country_leader = {
								ideology = falangism
								traits = { fascist_council_trait }
								expire = "1980.1.1.1"
								id = -1
							}
						}
					}
				}

				add_stability = 0.15
				add_war_support = 0.1
				add_manpower = 10000

				hidden_effect = {
					division_template = {
					    name = "Native American Warriors"
					    is_locked = no
					    division_names_group = USA_INF_01
					    template_counter = 82
					    override_model = CHL_infantry_alt_1_entity
					    priority = 1
					    regiments = {
					        infantry = { x = 0 y = 0 } 
					        infantry = { x = 0 y = 1 } 
					        infantry = { x = 0 y = 2 } 
					        infantry = { x = 1 y = 0 }  
					        infantry = { x = 1 y = 1 } 
					        infantry = { x = 1 y = 2 } 
					        infantry = { x = 2 y = 0 }  
					        infantry = { x = 2 y = 1 } 
					        infantry = { x = 2 y = 2 } 
					    }
				    	support = {
				           	recon = { x = 0 y = 0 }
				    	}
					} 
				}
					
				random_state = {
					limit = {
						is_controlled_by = USA
					}
					create_unit = {
					    division = "name = \"1st Native American Warriors\" division_template = \"Native American Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = USA 
					}
					create_unit = {
					    division = "name = \"2nd Native American Warriors\" division_template = \"Native American Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = USA 
					}
					create_unit = {
					    division = "name = \"3rd Native American Warriors\" division_template = \"Native American Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = USA 
					}
				}

				random_state = {
					limit = {
						is_controlled_by = USA
					}
					create_unit = {
					    division = "name = \"4th Native American Warriors\" division_template = \"Native American Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = USA 
					}
					create_unit = {
					    division = "name = \"5th Native American Warriors\" division_template = \"Native American Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = USA 
					}
					create_unit = {
					    division = "name = \"6th Native American Warriors\" division_template = \"Native American Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = USA 
					}
				}

				random_state = {
					limit = {
						is_controlled_by = USA
					}
					create_unit = {
					    division = "name = \"7th Native American Warriors\" division_template = \"Native American Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = USA 
					}
					create_unit = {
					    division = "name = \"8th Native American Warriors\" division_template = \"Native American Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = USA 
					}
					create_unit = {
					    division = "name = \"9th Native American Warriors\" division_template = \"Native American Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = USA 
					}
				}

				random_state = {
					limit = {
						is_controlled_by = USA
					}
					create_unit = {
					    division = "name = \"10th Native American Warriors\" division_template = \"Native American Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = USA 
					}
					create_unit = {
					    division = "name = \"11th Native American Warriors\" division_template = \"Native American Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = USA 
					}
					create_unit = {
					    division = "name = \"12th Native American Warriors\" division_template = \"Native American Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = USA 
					}
				}
			}

			hidden_effect = {
				set_country_flag = CHL_reorganized_usa_flag
			}
		}

		modifier = {
		}

		remove_effect = {
		}

	}




}


CHL_monarchist_decisions = {
	

	# Integrate the Kingdom of Mexico
	CHL_integrate_the_kingdom_of_mexico  = {

		priority = 40

		icon = GFX_decision_generic_nationalism

		ai_will_do = {
			base = 120
		}

		highlight_states = {
			highlight_state_targets = {
				state = 277
			}
		}

		allowed = {  
			original_tag = CHL
		}

		available = {
			has_completed_focus = CHL_claim_the_mexican_throne
			MEX = {
				exists = no
				all_core_state = {
					is_controlled_by = ROOT
				}
			}
		}

		visible = { 
			original_tag = CHL
			has_completed_focus = CHL_claim_the_mexican_throne
			NOT = { has_country_flag = CHL_integrated_mexico_kingdom_flag }
		} 

		days_remove = 140 

		cost = 100

		complete_effect = {
		}

		modifier = {
			political_power_factor = -0.2
			stability_factor = -0.1
		}

		remove_effect = {
			
			every_state = {
				limit = {
					NOT = {
						is_core_of = ROOT
					}
					is_core_of = MEX
					is_controlled_by = ROOT
				}
				add_core_of = ROOT
			}

			hidden_effect = {
				set_country_flag = CHL_integrated_mexico_kingdom_flag 
			}
		}

	}

	# Integrate Cayenne
	CHL_integrate_french_guyana  = {

		priority = 20

		icon = GFX_decision_generic_nationalism

		ai_will_do = {
			base = 50
		}

		highlight_states = {
			highlight_state_targets = {
				state = 310
				state = 1394
				state = 1393
			}
		}

		allowed = {  
			original_tag = CHL
		}

		available = {
			has_completed_focus = CHL_return_to_the_continent
			controls_state = 310
			controls_state = 1394
			controls_state = 1393
		}

		visible = { 
			original_tag = CHL
			has_completed_focus = CHL_return_to_the_continent
			NOT = { has_country_flag = CHL_integrated_french_guyana_flag }
			310 = {
				NOT = {
					is_core_of = ROOT
				}
			}
			1394 = {
				NOT = {
					is_core_of = ROOT
				}
			}
			1393 = {
				NOT = {
					is_core_of = ROOT
				}
			}
		} 

		days_remove = 35 

		cost = 50

		complete_effect = {
		}

		modifier = {
			political_power_factor = -0.2
		}

		remove_effect = {
			
			IF = {
				limit = {
					310 = {
						is_claimed_by = ROOT
					}
				}
				310 = {
					remove_claim_by = ROOT
				}
			}

			IF = {
				limit = {
					310 = {
						NOT = {
							is_core_of = ROOT
						}
					}
				}
				310 = {
					add_core_of = ROOT
				}
			}
			
			IF = {
				limit = {
					1394 = {
						is_claimed_by = ROOT
					}
				}
				1394 = {
					remove_claim_by = ROOT
				}
			}

			IF = {
				limit = {
					1394 = {
						NOT = {
							is_core_of = ROOT
						}
					}
				}
				1394 = {
					add_core_of = ROOT
				}
			}
			
			
			IF = {
				limit = {
					1393 = {
						is_claimed_by = ROOT
					}
				}
				1393 = {
					remove_claim_by = ROOT
				}
			}

			IF = {
				limit = {
					1393 = {
						NOT = {
							is_core_of = ROOT
						}
					}
				}
				1393 = {
					add_core_of = ROOT
				}
			}

			hidden_effect = {
				set_country_flag = CHL_integrated_french_guyana_flag 
			}
		}

	}

	# Integrate St Pierre
	CHL_integrate_st_pierre  = {

		priority = 20

		icon = GFX_decision_generic_nationalism

		ai_will_do = {
			base = 50
		}

		highlight_states = {
			highlight_state_targets = {
				state = 730
			}
		}

		allowed = {  
			original_tag = CHL
		}

		available = {
			has_completed_focus = CHL_return_to_the_continent
			controls_state = 730
		}

		visible = { 
			original_tag = CHL
			has_completed_focus = CHL_return_to_the_continent
			NOT = { has_country_flag = CHL_integrated_st_pierre_flag }
			730 = {
				NOT = {
					is_core_of = ROOT
				}
			}
		} 

		days_remove = 14 

		cost = 25

		complete_effect = {
		}

		modifier = {
			political_power_factor = -0.2
		}

		remove_effect = {
			
			IF = {
				limit = {
					730 = {
						is_claimed_by = ROOT
					}
				}
				730 = {
					remove_claim_by = ROOT
				}
			}

			IF = {
				limit = {
					730 = {
						NOT = {
							is_core_of = ROOT
						}
					}
				}
				730 = {
					add_core_of = ROOT
				}
			}

			hidden_effect = {
				set_country_flag = CHL_integrated_st_pierre_flag 
			}
		}

	}

	# Integrate the French Carribean
	CHL_integrate_french_caribbean  = {

		priority = 25

		icon = GFX_decision_generic_nationalism

		ai_will_do = {
			base = 50
		}

		highlight_states = {
			highlight_state_targets = {
				state = 694
				state = 1374
				state = 1375
			}
		}

		allowed = {  
			original_tag = CHL
		}

		available = {
			has_completed_focus = CHL_return_to_the_continent
			controls_state = 694
			controls_state = 1374
			controls_state = 1375
		}

		visible = { 
			original_tag = CHL
			has_completed_focus = CHL_return_to_the_continent
			NOT = { has_country_flag = CHL_integrated_french_caribbean_flag }
			694 = {
				NOT = {
					is_core_of = ROOT
				}
			}
			1374 = {
				NOT = {
					is_core_of = ROOT
				}
			}
			1375 = {
				NOT = {
					is_core_of = ROOT
				}
			}
		} 

		days_remove = 35 

		cost = 50

		complete_effect = {
		}

		modifier = {
			political_power_factor = -0.2
		}

		remove_effect = {
			
			IF = {
				limit = {
					694 = {
						is_claimed_by = ROOT
					}
				}
				694 = {
					remove_claim_by = ROOT
				}
			}
			IF = {
				limit = {
					1374 = {
						is_claimed_by = ROOT
					}
				}
				1374 = {
					remove_claim_by = ROOT
				}
			}
			IF = {
				limit = {
					1375 = {
						is_claimed_by = ROOT
					}
				}
				1375 = {
					remove_claim_by = ROOT
				}
			}

			IF = {
				limit = {
					694 = {
						NOT = {
							is_core_of = ROOT
						}
					}
				}
				694 = {
					add_core_of = ROOT
				}
			}
			IF = {
				limit = {
					1374 = {
						NOT = {
							is_core_of = ROOT
						}
					}
				}
				1374 = {
					add_core_of = ROOT
				}
			}
			IF = {
				limit = {
					1375 = {
						NOT = {
							is_core_of = ROOT
						}
					}
				}
				1375 = {
					add_core_of = ROOT
				}
			}

			hidden_effect = {
				set_country_flag = CHL_integrated_french_caribbean_flag 
			}
		}

	}

	# Integrate Corsica
	CHL_integrate_corsica  = {

		priority = 30

		icon = GFX_decision_generic_nationalism

		ai_will_do = {
			base = 50
		}

		highlight_states = {
			highlight_state_targets = {
				state = 1
			}
		}

		allowed = {  
			original_tag = CHL
		}

		available = {
			has_completed_focus = CHL_return_to_the_continent
			controls_state = 1
		}

		visible = { 
			original_tag = CHL
			has_completed_focus = CHL_return_to_the_continent
			NOT = { has_country_flag = CHL_integrated_corsica_flag }
			1 = {
				NOT = {
					is_core_of = ROOT
				}
			}
		} 

		days_remove = 35 

		cost = 50

		complete_effect = {
		}

		modifier = {
			political_power_factor = -0.2
		}

		remove_effect = {
			
			IF = {
				limit = {
					1 = {
						is_claimed_by = ROOT
					}
				}
				1 = {
					remove_claim_by = ROOT
				}
			}

			IF = {
				limit = {
					1 = {
						NOT = {
							is_core_of = ROOT
						}
					}
				}
				1 = {
					add_core_of = ROOT
				}
			}

			hidden_effect = {
				set_country_flag = CHL_integrated_corsica_flag 
			}
		}

	}

	# Integrate Northern France
	CHL_integrate_northern_france  = {

		priority = 35

		icon = GFX_decision_generic_nationalism

		ai_will_do = {
			base = 50
		}

		highlight_states = {
			highlight_state_targets = {
				state = 16
			}
		}

		allowed = {  
			original_tag = CHL
		}

		available = {
			has_completed_focus = CHL_return_to_the_continent
			controls_state = 16
			controls_state = 1517
			controls_state = 1518
			controls_state = 1519
			controls_state = 1520
			controls_state = 785
			controls_state = 1401
			controls_state = 29
			controls_state = 18
			controls_state = 1402
			controls_state = 28
			controls_state = 17
			controls_state = 27
			controls_state = 1521
			controls_state = 24
			controls_state = 30
			controls_state = 14
			controls_state = 23
			controls_state = 1257
			controls_state = 1258
			controls_state = 1259
		}

		visible = { 
			original_tag = CHL
			has_completed_focus = CHL_return_to_the_continent
			NOT = { has_country_flag = CHL_integrated_northern_france_flag }
			16 = {
				NOT = {
					is_core_of = ROOT
				}
			}
		} 

		days_remove = 210 

		cost = 120

		complete_effect = {
		}

		modifier = {
			political_power_factor = -0.2
		}

		remove_effect = {

			every_state = {
				limit = {
					NOT = {
						is_core_of = ROOT
					}
					OR = {
						state = 16
						state = 1517
						state = 1518
						state = 1519
						state = 1520
						state = 785
						state = 1401
						state = 29
						state = 18
						state = 1402
						state = 28
						state = 17
						state = 27
						state = 1521
						state = 24
						state = 30
						state = 14
						state = 23
						state = 1257
						state = 1258
						state = 1259
					}
				}
				remove_claim_by = ROOT
				add_core_of = ROOT
			}

			hidden_effect = {
				set_country_flag = CHL_integrated_northern_france_flag 
			}
		}

	}

	# Integrate Southern France
	CHL_integrate_southern_france  = {

		priority = 34

		icon = GFX_decision_generic_nationalism

		ai_will_do = {
			base = 50
		}

		highlight_states = {
			highlight_state_targets = {
				state = 20
			}
		}

		allowed = {  
			original_tag = CHL
		}

		available = {
			has_completed_focus = CHL_return_to_the_continent
			controls_state = 19
			controls_state = 806
			controls_state = 31
			controls_state = 25
			controls_state = 33
			controls_state = 26
			controls_state = 20
			controls_state = 1522
			controls_state = 22
			controls_state = 32
			controls_state = 21
			controls_state = 851
			controls_state = 735
			controls_state = 1301
			controls_state = 1302
			controls_state = 1303
			controls_state = 1304
			controls_state = 1305
			controls_state = 1306
		}

		visible = { 
			original_tag = CHL
			has_completed_focus = CHL_return_to_the_continent
			NOT = { has_country_flag = CHL_integrated_southern_france_flag }
			20 = {
				NOT = {
					is_core_of = ROOT
				}
			}
		} 

		days_remove = 210 

		cost = 120

		complete_effect = {
		}

		modifier = {
			political_power_factor = -0.2
		}

		remove_effect = {

			every_state = {
				limit = {
					NOT = {
						is_core_of = ROOT
					}
					OR = {
						state = 19
						state = 806
						state = 31
						state = 25
						state = 33
						state = 26
						state = 20
						state = 1522
						state = 22
						state = 32
						state = 21
						state = 851
						state = 735
						state = 1301
						state = 1302
						state = 1303
						state = 1304
						state = 1305
						state = 1306
					}
				}
				remove_claim_by = ROOT
				add_core_of = ROOT
			}

			hidden_effect = {
				set_country_flag = CHL_integrated_southern_france_flag 
			}
		}

	}

	# Integrate Rio Grande do Sul
	CHL_integrate_rio_grande_do_sul  = {

		priority = 29

		icon = GFX_decision_generic_nationalism

		ai_will_do = {
			base = 50
		}

		highlight_states = {
			highlight_state_targets = {
				state = 502
			}
		}

		allowed = {  
			original_tag = CHL
		}

		available = {
			has_completed_focus = CHL_a_new_empire_of_brazil
			controls_state = 502
			controls_state = 503
			controls_state = 944
			controls_state = 510
			OR = {
				AND = {
					controls_state = 946
					controls_state = 945
					controls_state = 300
				}
				AND = {
					URG = {
						exists = yes
						is_subject_of = ROOT
						controls_state = 946
						controls_state = 945
						controls_state = 300
					}
				}
			}
		}

		visible = { 
			original_tag = CHL
			has_completed_focus = CHL_a_new_empire_of_brazil
			NOT = { has_country_flag = CHL_integrated_rio_grande_do_sul_flag }
			NOT = {
				AND = {
					502 = {
						is_core_of = ROOT
					}
					503 = {
						is_core_of = ROOT
					}
					944 = {
						is_core_of = ROOT
					}
					510 = {
						is_core_of = ROOT
					}
					946 = {
						is_core_of = ROOT
					}
					945 = {
						is_core_of = ROOT
					}
					300 = {
						is_core_of = ROOT
					}
				}
			}
		} 

		days_remove = 70 

		cost = 100

		complete_effect = {
		}

		modifier = {
			political_power_factor = -0.2
		}

		remove_effect = {

			every_state = {
				limit = {
					NOT = {
						is_core_of = ROOT
					}
					OR = {
						state = 502
						state = 503
						state = 944
						state = 510
						state = 946
						state = 945
						state = 300
					}
				}
				hidden_effect = { #CM: Shorter TT
					remove_claim_by = ROOT
				}
				add_core_of = ROOT
			}

			IF = {
				limit = {
					URG = {
						is_subject_of = ROOT
					}
				}
				annex_country = {
					target = URG
					transfer_troops = yes
				}	
			}

			hidden_effect = {
				set_country_flag = CHL_integrated_rio_grande_do_sul_flag 
			}
		}

	}

	# Integrate Québec
	CHL_integrate_quebec  = {

		priority = 42

		icon = GFX_decision_generic_nationalism

		ai_will_do = {
			base = 200
		}

		highlight_states = {
			highlight_state_targets = {
				state = 468
			}
		}

		allowed = {  
			original_tag = CHL
		}

		available = {
			has_completed_focus = CHL_reclaiming_quebec
			QUE = {
				exists = no
				all_core_state = {
					is_controlled_by = ROOT
				}
			}
		}

		visible = { 
			original_tag = CHL
			has_completed_focus = CHL_reclaiming_quebec
			NOT = { has_country_flag = CHL_integrated_quebec_flag }
		} 

		days_remove = 70 

		cost = 100

		complete_effect = {
		}

		modifier = {
			political_power_factor = -0.25
		}

		remove_effect = {
			hidden_effect = {
				every_state = {
					limit = {
						NOT = {
							is_core_of = ROOT
						}
						is_core_of = QUE
						is_controlled_by = ROOT
					}
					transfer_state_to = ROOT
					add_core_of = ROOT
				}
			}
			effect_tooltip = {
				every_state = {
					limit = {
						NOT = {
							is_core_of = ROOT
						}
						is_core_of = QUE
					}
					transfer_state_to = ROOT
					add_core_of = ROOT
				}
			}

			hidden_effect = {
				set_country_flag = CHL_integrated_quebec_flag 
			}
		}

	}

	# Establish a new Incan Kingdom
	CHL_araucania_establish_inca_kingdom  = {

		priority = 40
		icon = GFX_decision_CHL_mapuche_liberate_inca

		ai_will_do = {
			base = 75
		}

		allowed = {  
			original_tag = CHL
		}

		highlight_states = {
			highlight_state_targets = {
				state = 494
				state = 492
				state = 947
				state = 303
				state = 951
				state = 506
				state = 491
				state = 490
				state = 1395
				state = 1396
				state = 1397
				state = 1398
				state = 305
				state = 940
				state = 1182
				state = 1183
				state = 1185
				state = 1186
				state = 1187
				state = 1188
				state = 1189
				state = 1195
				state = 1218
				state = 1219
				state = 1220
				state = 1234
			}
		}

		available = {
			has_completed_focus = CHL_satellite_kingdoms

			INC = {
				exists = no
			}
			
			custom_trigger_tooltip = {
				tooltip = release_inca_required_peruvian_states
				OR = {
					controls_state = 494 
						
					any_country = {
						is_subject_of = ROOT
						controls_state = 494 
					}
				}

				OR = {
					controls_state = 492 
						
					any_country = {
						is_subject_of = ROOT
						controls_state = 492 
					}
				}

				OR = {
					controls_state = 947 
						
					any_country = {
						is_subject_of = ROOT
						controls_state = 947 
					}
				}

				OR = {
					controls_state = 303 
						
					any_country = {
						is_subject_of = ROOT
						controls_state = 303 
					}
				}

				OR = {
					controls_state = 491 
						
					any_country = {
						is_subject_of = ROOT
						controls_state = 491 
					}
				}
				
				OR = {
					controls_state = 1183
						
					any_country = {
						is_subject_of = ROOT
						controls_state = 1183
					}
				}
				
				OR = {
					controls_state = 1185
						
					any_country = {
						is_subject_of = ROOT
						controls_state = 1185
					}
				}
				
				OR = {
					controls_state = 1186
						
					any_country = {
						is_subject_of = ROOT
						controls_state = 1186
					}
				}
				
				OR = {
					controls_state = 1195
						
					any_country = {
						is_subject_of = ROOT
						controls_state = 1195
					}
				}
				
				OR = {
					controls_state = 1218
						
					any_country = {
						is_subject_of = ROOT
						controls_state = 1218
					}
				}
				
				OR = {
					controls_state = 1219 
						
					any_country = {
						is_subject_of = ROOT
						controls_state = 1219
					}
				}
				
				OR = {
					controls_state = 1220
						
					any_country = {
						is_subject_of = ROOT
						controls_state = 1220 
					}
				}
			}

			custom_trigger_tooltip = {
				tooltip = release_inca_required_ecuadorian_states

				OR = {
					controls_state = 490 
						
					any_country = {
						is_subject_of = ROOT
						controls_state = 490 
					}
				}
				
				OR = {
					controls_state = 1395
						
					any_country = {
						is_subject_of = ROOT
						controls_state = 1395
					}
				}
				
				OR = {
					controls_state = 1396
						
					any_country = {
						is_subject_of = ROOT
						controls_state = 1396
					}
				}
				
				OR = {
					controls_state = 1397
						
					any_country = {
						is_subject_of = ROOT
						controls_state = 1397
					}
				}
				
				OR = {
					controls_state = 1398
						
					any_country = {
						is_subject_of = ROOT
						controls_state = 1398
					}
				}

				OR = {
					controls_state = 305 
						
					any_country = {
						is_subject_of = ROOT
						controls_state = 305 
					}
				}
				
				OR = {
					controls_state = 1182
						
					any_country = {
						is_subject_of = ROOT
						controls_state = 1182
					}
				}
				
				OR = {
					controls_state = 1187
						
					any_country = {
						is_subject_of = ROOT
						controls_state = 1187
					}
				}
				
				OR = {
					controls_state = 1188
						
					any_country = {
						is_subject_of = ROOT
						controls_state = 1188
					}
				}
				
				OR = {
					controls_state = 1189
						
					any_country = {
						is_subject_of = ROOT
						controls_state = 1189
					}
				}
			}
			

			OR = {
				controls_state = 951 
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 951 
				}
			}

			OR = {
				controls_state = 506 
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 506 
				}
			}

			#OR = {
			#	controls_state = 940 
			#		
			#	any_country = {
			#		is_subject_of = ROOT
			#		controls_state = 940 
			#	}
			#}
			
			OR = {
				controls_state = 1234
					
				any_country = {
					is_subject_of = ROOT
					controls_state = 1234
				}
			}
				
		}

		visible = { 
			has_completed_focus = CHL_satellite_kingdoms
			NOT = {
				has_country_flag = CHL_released_inca_flag
			}
		} 

		#days_remove = 35 

		cost = 50

		complete_effect = {

			every_state = {
				limit = {
					OR = {
						is_controlled_by = ROOT
						any_country = {
							is_subject_of = ROOT
							controls_state = PREV
						}
					}
					OR = {
						state = 494
						state = 492
						state = 947
						state = 303
						state = 951
						state = 506
						state = 491
						state = 490
						state = 1395
						state = 1396
						state = 1397
						state = 1398
						state = 305
						#state = 940
						state = 1182
						state = 1183
						state = 1185
						state = 1186
						state = 1187
						state = 1188
						state = 1189
						state = 1195
						state = 1218
						state = 1219
						state = 1220
						state = 1234
					}
				}
				add_core_of = INC
				transfer_state_to = INC
			} 

			IF = {
				limit = {
					649 = {
						OR = {
							is_controlled_by = ROOT
							any_country = {
								is_subject_of = ROOT
								controls_state = PREV
							}
						}
					}
				}
				649 = {
					transfer_state_to = INC
				}
			}

			IF = {
				limit = {
					940 = {
						OR = {
							is_controlled_by = ROOT
							any_country = {
								is_subject_of = ROOT
								controls_state = PREV
							}
						}
					}
				}
				940 = {
					transfer_state_to = INC
				}
			}

			649 = {
				add_core_of = INC
			}

			940 = {
				add_core_of = INC
			}

			IF = {
				limit = {
					NOT = {
						has_subject = INC
					}
				}
				puppet = INC
			} 

			INC = {
				
				add_manpower = 25000

				hidden_effect = {
					division_template = {
					    name = "New Incan Warriors"
					    is_locked = no
					    division_names_group = SPR_INF_01
					    priority = 1
					    regiments = {
					        infantry = { x = 0 y = 0 } 
					        infantry = { x = 0 y = 1 } 
					        infantry = { x = 0 y = 2 } 
					        infantry = { x = 1 y = 0 }  
					        infantry = { x = 1 y = 1 } 
					        infantry = { x = 1 y = 2 } 
					        infantry = { x = 2 y = 0 }  
					        infantry = { x = 2 y = 1 } 
					        infantry = { x = 2 y = 2 } 
					    }
				    	support = {
				           	recon = { x = 0 y = 0 }
				    	}
					} 
				}
					
				random_state = {
					limit = {
						is_controlled_by = INC
					}
					create_unit = {
					    division = "name = \"1st New Incan Warriors\" division_template = \"New Incan Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = INC 
					}
					create_unit = {
					    division = "name = \"2nd New Incan Warriors\" division_template = \"New Incan Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = INC 
					}
					create_unit = {
					    division = "name = \"3rd New Incan Warriors\" division_template = \"New Incan Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = INC 
					}
				}

				random_state = {
					limit = {
						is_controlled_by = INC
					}
					create_unit = {
					    division = "name = \"4th New Incan Warriors\" division_template = \"New Incan Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = INC 
					}
					create_unit = {
					    division = "name = \"5th New Incan Warriors\" division_template = \"New Incan Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = INC 
					}
					create_unit = {
					    division = "name = \"6th New Incan Warriors\" division_template = \"New Incan Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = INC 
					}
				}

				random_state = {
					limit = {
						is_controlled_by = INC
					}
					create_unit = {
					    division = "name = \"7th Incan Warriors\" division_template = \"Incan Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = INC 
					}
				}
			}

			country_event = {
				id = CHL_political_events.92
				hours = 0
			}	

			hidden_effect = {
				set_country_flag = CHL_released_inca_flag
			}
		}

		modifier = {
		}

		remove_effect = {
		}

	}

	# Integrate the South Atlantic Islands
	CHL_integrate_the_south_atlantic_islands_araucania  = {

		priority = 25

		icon = GFX_decision_generic_nationalism

		ai_will_do = {
			base = 75
		}

		highlight_states = {
			highlight_state_targets = {
				state = 720
				state = 299
			}
		}

		allowed = {  
			original_tag = CHL
		}

		available = {
			AND = {
				has_completed_focus = CHL_taking_back_patagonia
				has_completed_focus = CHL_an_imperial_capital
			}
			controls_state = 299
			controls_state = 720
		}

		visible = { 
			original_tag = CHL
			AND = {
				has_completed_focus = CHL_taking_back_patagonia
				has_completed_focus = CHL_an_imperial_capital
			}
			NOT = { has_country_flag = CHL_integrated_falklands_flag }
			NOT = {
				AND = {
					299 = {
						is_core_of = ROOT
					}
					720 = {
						is_core_of = ROOT
					}
				}
			}
		} 

		days_remove = 56 

		cost = 75

		complete_effect = {
		}

		modifier = {
			political_power_factor = -0.2
		}

		remove_effect = {
			
			IF = {
				limit = {
					299 = {
						is_claimed_by = ROOT
					}
				}
				299 = {
					remove_claim_by = ROOT
				}
			}

			IF = {
				limit = {
					720 = {
						is_claimed_by = ROOT
					}
				}
				720 = {
					remove_claim_by = ROOT
				}
			}

			IF = {
				limit = {
					299 = {
						NOT = {
							is_core_of = ROOT
						}
					}
				}
				299 = {
					add_core_of = ROOT
				}
			}

			IF = {
				limit = {
					720 = {
						NOT = {
							is_core_of = ROOT
						}
					}
				}
				720 = {
					add_core_of = ROOT
				}
			}

			299 = {
				transfer_state_to = ROOT
			}

			720 = {
				transfer_state_to = ROOT
			}

			hidden_effect = {
				set_country_flag = CHL_integrated_falklands_flag 
			}
		}

	}

	# Establish a Kingdom in the Guianas
	CHL_araucania_establish_a_guianan_government  = {

		priority = 27
		icon = GFX_decision_CHL_mapuche_establish_a_guianan_government

		ai_will_do = {
			base = 75
		}

		allowed = {  
			original_tag = CHL
		}

		highlight_states = {
			highlight_state_targets = {
				state = 310
				state = 1394
				state = 1393
				state = 309
				state = 687
				state = 488
				state = 939
				state = 969
				state = 1206
				state = 1207
				state = 1208
				state = 1209
				state = 1210
				state = 1214
				state = 1217
				state = 1233
			}
		}

		available = {
			has_completed_focus = CHL_satellite_kingdoms

			OR = {
				AND = {
					SUR = {
						exists = yes
						is_subject_of = ROOT
					}
				}
				AND = {
					SUR = {
						exists = no
					}
					
					OR = {
						controls_state = 310 
							
						any_country = {
							is_subject_of = ROOT
							controls_state = 310 
						}
					}
					
					OR = {
						controls_state = 1394
							
						any_country = {
							is_subject_of = ROOT
							controls_state = 1394
						}
					}
					
					OR = {
						controls_state = 1393 
							
						any_country = {
							is_subject_of = ROOT
							controls_state = 1393 
						}
					}

					OR = {
						controls_state = 309 
							
						any_country = {
							is_subject_of = ROOT
							controls_state = 309 
						}
					}

					OR = {
						controls_state = 687 
							
						any_country = {
							is_subject_of = ROOT
							controls_state = 687 
						}
					}

					OR = {
						controls_state = 488 
							
						any_country = {
							is_subject_of = ROOT
							controls_state = 488 
						}
					}

					OR = {
						controls_state = 939 
							
						any_country = {
							is_subject_of = ROOT
							controls_state = 939 
						}
					}

					OR = {
						controls_state = 969 
							
						any_country = {
							is_subject_of = ROOT
							controls_state = 939 
						}
					}
					
					OR = {
						controls_state = 1206
							
						any_country = {
							is_subject_of = ROOT
							controls_state = 1206
						}
					}
					
					OR = {
						controls_state = 1207
							
						any_country = {
							is_subject_of = ROOT
							controls_state = 1207
						}
					}
					
					OR = {
						controls_state = 1208
							
						any_country = {
							is_subject_of = ROOT
							controls_state = 1208
						}
					}
					
					OR = {
						controls_state = 1209
							
						any_country = {
							is_subject_of = ROOT
							controls_state = 1209
						}
					}
					
					OR = {
						controls_state = 1210
							
						any_country = {
							is_subject_of = ROOT
							controls_state = 1210
						}
					}
					
					OR = {
						controls_state = 1214
							
						any_country = {
							is_subject_of = ROOT
							controls_state = 1214
						}
					}
					
					OR = {
						controls_state = 1217
							
						any_country = {
							is_subject_of = ROOT
							controls_state = 1217
						}
					}
					
					OR = {
						controls_state = 1233
							
						any_country = {
							is_subject_of = ROOT
							controls_state = 1233
						}
					}
					
				}
			}
			
		}

		visible = { 
			has_completed_focus = CHL_satellite_kingdoms
			NOT = {
				has_country_flag = CHL_established_the_guianas_flag
			}
		} 

		#days_remove = 35 

		cost = 50

		complete_effect = {

			every_state = {
				limit = {
					OR = {
						is_controlled_by = ROOT
						any_country = {
							is_subject_of = ROOT
							controls_state = PREV
						}
					}
					OR = {
						state = 310
						state = 1394
						state = 1393
						state = 309
						state = 687
						state = 488
						state = 939
						state = 969
						state = 1206
						state = 1207
						state = 1208
						state = 1209
						state = 1210
						state = 1214
						state = 1217
						state = 1233
					}
				}
				add_core_of = SUR
				transfer_state_to = SUR
			} 

			IF = {
				limit = {
					NOT = {
						has_subject = SUR
					}
				}
				puppet = SUR
			} 

			SUR = {

				set_cosmetic_tag = united_guiana

				add_manpower = 15000

				hidden_effect = {
					division_template = {
					    name = "Guianan Warriors"
					    is_locked = no
					    division_names_group = HOL_INF_01
					    priority = 1
					    regiments = {
					        infantry = { x = 0 y = 0 } 
					        infantry = { x = 0 y = 1 } 
					        infantry = { x = 0 y = 2 } 
					        infantry = { x = 1 y = 0 }  
					        infantry = { x = 1 y = 1 } 
					        infantry = { x = 1 y = 2 } 
					        infantry = { x = 2 y = 0 }  
					        infantry = { x = 2 y = 1 } 
					        infantry = { x = 2 y = 2 } 
					    }
				    	support = {
				           	recon = { x = 0 y = 0 }
				    	}
					} 
				}
					
				random_state = {
					limit = {
						is_controlled_by = SUR
					}
					create_unit = {
					    division = "name = \"1st Guianan Warriors\" division_template = \"Guianan Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = SUR 
					}
					create_unit = {
					    division = "name = \"2nd Guianan Warriors\" division_template = \"Guianan Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = SUR 
					}
					create_unit = {
					    division = "name = \"3rd Guianan Warriors\" division_template = \"Guianan Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = SUR 
					}
				}

				random_state = {
					limit = {
						is_controlled_by = SUR
					}
					create_unit = {
					    division = "name = \"4th Guianan Warriors\" division_template = \"Guianan Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = SUR 
					}
					create_unit = {
					    division = "name = \"5th Guianan Warriors\" division_template = \"Guianan Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = SUR 
					}
				}
			}

			country_event = {
				id = CHL_political_events.93
				hours = 0
			}

			hidden_effect = {
				set_country_flag = CHL_established_the_guianas_flag
				set_global_flag = guiana_flag
			}
		}

		modifier = {
		}

		remove_effect = {
		}

	}

	# Establish a Hispaniolan Kingdom
	CHL_araucania_establish_a_hispaniolan_kingdom  = {

		priority = 26
		icon = GFX_decision_CHL_araucania_establish_a_hispaniolan_kingdom

		ai_will_do = {
			base = 75
		}

		allowed = {  
			original_tag = CHL
		}

		highlight_states = {
			highlight_state_targets = {
				state = 318
				state = 319
			}
		}

		available = {
			has_completed_focus = CHL_satellite_kingdoms

			OR = {
				AND = {
					HAI = {
						exists = yes
						is_subject_of = ROOT
					}
				}
				AND = {
					HAI = {
						exists = no
					}
					
					OR = {
						controls_state = 318 
							
						any_country = {
							is_subject_of = ROOT
							controls_state = 318 
						}
					}

					OR = {
						controls_state = 319 
							
						any_country = {
							is_subject_of = ROOT
							controls_state = 319 
						}
					}
					
				}
			}
			
		}

		visible = { 
			has_completed_focus = CHL_satellite_kingdoms
			NOT = {
				has_country_flag = CHL_established_hispaniola_flag
			}
		} 

		#days_remove = 35 

		cost = 50

		complete_effect = {

			every_state = {
				limit = {
					OR = {
						is_controlled_by = ROOT
						any_country = {
							is_subject_of = ROOT
							controls_state = PREV
						}
					}
					OR = {
						state = 318
						state = 319
					}
				}
				add_core_of = HAI
				transfer_state_to = HAI
			} 

			every_state = {
				limit = {
					OR = {
						state = 315
						state = 689
						state = 693
						state = 690
						state = 686
						state = 1380
					}
				}
				add_core_of = HAI
			}

			IF = {
				limit = {
					315 = {
						OR = {
							is_controlled_by = ROOT
							any_country = {
								is_subject_of = ROOT
								controls_state = PREV
							}
						}
					}
				}
				315 = {
					transfer_state_to = HAI
				}
			}

			IF = {
				limit = {
					689 = {
						OR = {
							is_controlled_by = ROOT
							any_country = {
								is_subject_of = ROOT
								controls_state = PREV
							}
						}
					}
				}
				689 = {
					transfer_state_to = HAI
				}
			}

			IF = {
				limit = {
					693 = {
						OR = {
							is_controlled_by = ROOT
							any_country = {
								is_subject_of = ROOT
								controls_state = PREV
							}
						}
					}
				}
				693 = {
					transfer_state_to = HAI
				}
			}

			IF = {
				limit = {
					690 = {
						OR = {
							is_controlled_by = ROOT
							any_country = {
								is_subject_of = ROOT
								controls_state = PREV
							}
						}
					}
				}
				690 = {
					transfer_state_to = HAI
				}
			}

			IF = {
				limit = {
					686 = {
						OR = {
							is_controlled_by = ROOT
							any_country = {
								is_subject_of = ROOT
								controls_state = PREV
							}
						}
					}
				}
				686 = {
					transfer_state_to = HAI
				}
			}
			
			IF = {
				limit = {
					1380 = {
						OR = {
							is_controlled_by = ROOT
							any_country = {
								is_subject_of = ROOT
								controls_state = PREV
							}
						}
					}
				}
				1380 = {
					transfer_state_to = HAI
				}
			}

			IF = {
				limit = {
					NOT = {
						has_subject = HAI
					}
				}
				puppet = HAI
			} 

			HAI = {

				set_cosmetic_tag = hispaniola

				add_manpower = 15000

				hidden_effect = {
					division_template = {
					    name = "Hispaniolan Warriors"
					    is_locked = no
					    division_names_group = FRA_INF_01
					    priority = 1
					    regiments = {
					        infantry = { x = 0 y = 0 } 
					        infantry = { x = 0 y = 1 } 
					        infantry = { x = 0 y = 2 } 
					        infantry = { x = 1 y = 0 }  
					        infantry = { x = 1 y = 1 } 
					        infantry = { x = 1 y = 2 } 
					        infantry = { x = 2 y = 0 }  
					        infantry = { x = 2 y = 1 } 
					        infantry = { x = 2 y = 2 } 
					    }
				    	support = {
				           	recon = { x = 0 y = 0 }
				    	}
					} 
				}
					
				random_state = {
					limit = {
						is_controlled_by = SUR
					}
					create_unit = {
					    division = "name = \"1st Hispaniolan Warriors\" division_template = \"Hispaniolan Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = SUR 
					}
					create_unit = {
					    division = "name = \"2nd Hispaniolan Warriors\" division_template = \"Hispaniolan Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = SUR 
					}
					create_unit = {
					    division = "name = \"3rd Hispaniolan Warriors\" division_template = \"Hispaniolan Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = SUR 
					}
				}

				random_state = {
					limit = {
						is_controlled_by = SUR
					}
					create_unit = {
					    division = "name = \"4th Hispaniolan Warriors\" division_template = \"Hispaniolan Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = SUR 
					}
					create_unit = {
					    division = "name = \"5th Hispaniolan Warriors\" division_template = \"Hispaniolan Warriors\" start_experience_factor = 0.5 start_equipment_factor = 1"
					    owner = SUR 
					}
				}
			}

			country_event = {
				id = CHL_political_events.94
				hours = 0
			}

			hidden_effect = {
				set_country_flag = CHL_established_hispaniola_flag
				set_global_flag = hispaniola_flag
			}
		}

		modifier = {
		}

		remove_effect = {
		}

	}


}

CHL_the_hispanic_revolutions_decisions = {
	
	# Bolster Revolutionary Forces in [Target Country]
	CHL_bolster_revolutionaries_americas = {
		priority = 50

		icon = GFX_decision_POL_organize_strike_two

		ai_will_do = {  
			base = 1.5
			modifier = {
				factor = 2
				has_political_power > 180
			}
		}

		targets = { ARG URG PAR BOL BRA PRU GYA SUR CAY ECU COL VEN PAN CRC TRI BAS GDL PUE DOM HAI JAM CUB BAH COS NIC HON ELS GUA BLZ MEX CAN RAP YUC RIG QUE GRN }

		target_trigger = {
			SOV_basic_promote_rallies_triggers = yes #Reusable
		}

		target_root_trigger = {
			has_completed_focus = CHL_sponsor_american_revolutions
			is_subject = no
			has_government = communism
		}

		allowed = {
			original_tag = CHL
		}
 
		available = {
			is_subject = no
			has_government = communism
			FROM = {
				is_subject = no
				NOT = { has_war_with = ROOT }
				NOT = { is_in_faction_with = ROOT }
				NOT = {
					has_government = communism
				}
				NOT = { has_country_flag = banned_communism_flag } 
			}
		}

		visible = {
		}

		days_remove = 28

		fire_only_once = yes

		cost = 75

		modifier = {
			political_power_gain = -0.25
		}

		complete_effect = {
		}

		remove_effect = {
			FROM = {
				add_timed_idea = {
					idea = CHL_foreign_communist_influence
					days = 365
				}
				set_country_flag = CHL_started_a_revolutionary_movement_here
			}
		}
	}

	# Initiate a Revolution in [Target Country]
	CHL_initiate_a_revolution = {

		icon = GFX_decision_generic_independence

		targets = { ARG URG PAR BOL BRA PRU GYA SUR CAY ECU COL VEN PAN CRC TRI BAS GDL PUE DOM HAI JAM CUB BAH COS NIC HON ELS GUA BLZ MEX CAN RAP YUC RIG QUE GRN }

		target_trigger = {
			country_exists = FROM
			NOT = { has_war_with = FROM }
			NOT = { FROM = { is_subject_of = ROOT } }
			NOT = { has_government = FROM }
			#has_country_flag = CHL_started_a_revolutionary_movement_here
			NOT = {
				has_country_flag = CHL_triggered_a_communist_uprising_here
			}
		}

		target_root_trigger = {
			has_completed_focus = CHL_sponsor_american_revolutions
			is_subject = no
			has_government = communism
		}

		allowed = {
			original_tag = CHL
		}
		
		available = {
			is_subject = no
			has_government = communism
			FROM = {
				is_subject = no
				NOT = { has_war_with = ROOT }
				NOT = { is_in_faction_with = ROOT }
				NOT = {
					has_government = communism
				} 
				NOT = { has_country_flag = banned_communism_flag } 
				has_country_flag = CHL_started_a_revolutionary_movement_here
				NOT = {
					has_country_flag = CHL_launch_revolution_in_progress
				}
			}
		}
 
		visible = {
		}

		ai_will_do = {
			factor = 2
			modifier = {
				factor = 4
				has_political_power > 210
			}
			modifier = {
				FROM = {
					is_ai = no
				}
				factor = 0
			}
		}

		fire_only_once = yes

		cost = 100

		days_remove = 30

		complete_effect = {
			set_country_flag = CHL_launch_revolution_in_progress
		}

		remove_effect = {
			FROM = {
				set_temp_variable = { CHL_FROM_communist_support = party_popularity@communism }

				IF = {
					limit = {
						has_government = democratic
					}

					start_civil_war = {
						ideology = communism
						ruling_party = democratic
						size = var:CHL_FROM_communist_support 
						ROOT = {
							puppet = {
								target = PREV
								end_wars = no
								end_civil_wars = no
							}
							declare_war_on = {
								target = FROM
								type = puppet_wargoal_focus
							}
						}
					}
				}

				ELSE_IF = {
					limit = {
						has_government = fascism
					}

					start_civil_war = {
						ideology = communism
						ruling_party = fascism
						size = var:CHL_FROM_communist_support
						ROOT = {
							puppet = {
								target = PREV
								end_wars = no
								end_civil_wars = no
							}
							declare_war_on = {
								target = FROM
								type = puppet_wargoal_focus
							}
						}

					}
				}

				ELSE_IF = {
					limit = {
						has_government = neutrality
					}

					start_civil_war = {
						ideology = communism
						ruling_party = neutrality
						size = var:CHL_FROM_communist_support
						ROOT = {
							puppet = {
								target = PREV
								end_wars = no
								end_civil_wars = no
							}
							declare_war_on = {
								target = FROM
								type = puppet_wargoal_focus
							}
						}
					}
				}
				set_country_flag = CHL_triggered_a_communist_uprising_here
				clr_country_flag = CHL_launch_revolution_in_progress
			}
			custom_effect_tooltip = SWE_pull_the_trigger_tt
		}
	}



}





