focus_tree = {
	id = TEX_CIVWAR_focus_tree

	country = {
		factor = 0
		modifier = {
			add = 12
			AND = {
				original_tag = TEX
				has_global_flag = TEX_Civil_War_USA_CSA
			}
		}
	}

	default = no
	continuous_focus_position = { x = 1000 y = 1000 }

	focus = {
		id = TEX_CIVWAR_opening
		icon = GFX_Focus_conscription
		x = 6
		y = 0

		ai_will_do = { factor = 5 }
		cost = 14

		
		bypass = {
			has_civil_war = no
		}
		cancel = {
			has_civil_war = no
		}

		completion_reward = {
			add_political_power = 25
		}
  	}

  	focus = {
		id = TEX_CIVWAR_preach_our_ideals
		icon = GFX_Focus_Partisans_Popularize
		x = -4
		y = 1
		relative_position_id = TEX_CIVWAR_opening

		ai_will_do = { factor = 5 }
		cost = 14


		prerequisite = {
			focus = TEX_CIVWAR_opening
		}
		
		bypass = {
			has_civil_war = no
		}
		cancel = {
			has_civil_war = no
		}

		completion_reward = {
			add_political_power = 50
		}
  	}

  	focus = {
		id = TEX_CIVWAR_glory_of_the_past
		icon = GFX_focus_usa_war_plan_green
		x = -2
		y = 1
		relative_position_id = TEX_CIVWAR_opening

		ai_will_do = { factor = 5 }
		cost = 14


		prerequisite = {
			focus = TEX_CIVWAR_opening
		}
		
		bypass = {
			has_civil_war = no
		}
		cancel = {
			has_civil_war = no
		}

		completion_reward = {
			swap_ideas = {
				remove_idea = TEX_CIVWAR_unprepared_militia_3
				add_idea = TEX_CIVWAR_unprepared_militia_2
			}
		}
  	}

  	focus = {
		id = TEX_CIVWAR_rally_our_men
		icon = GFX_Focus_conscription
		x = 0
		y = 1
		relative_position_id = TEX_CIVWAR_opening

		ai_will_do = { factor = 5 }
		cost = 14


		prerequisite = {
			focus = TEX_CIVWAR_opening
		}
		
		bypass = {
			has_civil_war = no
		}
		cancel = {
			has_civil_war = no
		}

		completion_reward = {
			add_manpower = 5000
		}
  	}

  	focus = {
		id = TEX_CIVWAR_demand_emergency_loans
		icon = GFX_Focus_Economy_Increase_Wages
		x = 2
		y = 1
		relative_position_id = TEX_CIVWAR_opening

		ai_will_do = { factor = 5 }
		cost = 14


		prerequisite = {
			focus = TEX_CIVWAR_opening
		}
		
		bypass = {
			has_civil_war = no
		}
		cancel = {
			has_civil_war = no
		}

		completion_reward = {
			swap_ideas = {
				remove_idea = TEX_CIVWAR_economic_collapse_2
				add_idea = TEX_CIVWAR_economic_collapse_1
			}
		}
  	}

  	focus = {
		id = TEX_CIVWAR_contest_the_river
		icon = GFX_Focus_Map_Gerrymandering
		x = 4
		y = 1
		relative_position_id = TEX_CIVWAR_opening

		ai_will_do = { factor = 5 }
		cost = 14


		prerequisite = {
			focus = TEX_CIVWAR_opening
		}
		
		bypass = {
			has_civil_war = no
		}
		cancel = {
			has_civil_war = no
		}

		completion_reward = {
			add_timed_idea = {
				idea = contest_the_river_TEX_CIVWAR
				days = 45
			}
		}
  	}

  	focus = {
		id = TEX_CIVWAR_enlist_for_freedom
		icon = GFX_Focus_freedom_abode
		x = -2
		y = 2
		relative_position_id = TEX_CIVWAR_opening

		ai_will_do = { factor = 5 }
		cost = 14


		available = {
			has_government = centrism
		}

		mutually_exclusive = {
			focus = TEX_CIVWAR_a_pure_army
		}

		prerequisite = {
			focus = TEX_CIVWAR_preach_our_ideals
		}

		prerequisite = {
			focus = TEX_CIVWAR_rally_our_men
		}

		prerequisite = {
			focus = TEX_CIVWAR_contest_the_river
		}

		prerequisite = {
			focus = TEX_CIVWAR_glory_of_the_past
		}

		prerequisite = {
			focus = TEX_CIVWAR_demand_emergency_loans
		}
		
		bypass = {
			has_civil_war = no
		}
		cancel = {
			has_civil_war = no
		}

		completion_reward = {
			1304 = {
				create_unit = {
					division = "name = \"1st Colored Brigade\" division_template = \"National Guard\"  start_experience_factor = 0.0 start_equipment_factor = 0.75"
					allow_spawning_on_enemy_provs = yes
					owner = ROOT
				}
			}
			add_stability = -0.1
			add_popularity = {
				ideology = centrism
				popularity = -0.04
			}
			swap_ideas = {
				remove_idea = TEX_CIVWAR_unprepared_militia_2
				add_idea = TEX_CIVWAR_unprepared_militia_1
			}
		}
  	}

  	focus = {
		id = TEX_CIVWAR_a_pure_army
		icon = GFX_focus_generic_attack_csa2
		x = 2
		y = 2
		relative_position_id = TEX_CIVWAR_opening

		ai_will_do = { factor = 5 }
		cost = 14


		available = {
			has_government = traditional_conservatism
		}

		mutually_exclusive = {
			focus = TEX_CIVWAR_enlist_for_freedom
		}

		prerequisite = {
			focus = TEX_CIVWAR_preach_our_ideals
		}

		prerequisite = {
			focus = TEX_CIVWAR_rally_our_men
		}

		prerequisite = {
			focus = TEX_CIVWAR_contest_the_river
		}
		
		bypass = {
			has_civil_war = no
		}
		cancel = {
			has_civil_war = no
		}

		completion_reward = {
			add_manpower = -1000
			add_stability = 0.1
			add_popularity = {
				ideology = traditional_conservatism
				popularity = 0.04
			}
			add_popularity = {
				ideology = radical_democracy
				popularity = 0.02
			}
			swap_ideas = {
				remove_idea = TEX_CIVWAR_unprepared_militia_2
				add_idea = TEX_CIVWAR_unprepared_militia_1
			}
		}
  	}

  	focus = {
		id = TEX_CIVWAR_remind_them_of_houston
		icon = GFX_Focus_Ideology_Support_Liberty
		x = -4
		y = 3
		relative_position_id = TEX_CIVWAR_opening

		ai_will_do = { factor = 5 }
		cost = 14

		prerequisite = {
			focus = TEX_CIVWAR_enlist_for_freedom
		}
		
		bypass = {
			has_civil_war = no
		}
		cancel = {
			has_civil_war = no
		}

		completion_reward = {
			remove_ideas = TEX_CIVWAR_unprepared_militia_1
		}
  	}

  	focus = {
		id = TEX_CIVWAR_petition_for_support
		icon = GFX_Focus_Diplomatic_foreign_military
		x = 0
		y = 3
		relative_position_id = TEX_CIVWAR_opening

		ai_will_do = { factor = 5 }
		cost = 14

		prerequisite = {
			focus = TEX_CIVWAR_enlist_for_freedom
			focus = TEX_CIVWAR_a_pure_army
		}
		
		bypass = {
			has_civil_war = no
		}
		cancel = {
			has_civil_war = no
		}

		completion_reward = {
			remove_ideas = TEX_CIVWAR_economic_collapse_1
			if = {
				limit = {
					has_government = traditional_conservatism
				}
				add_equipment_to_stockpile = {
					type = infantry_equipment
					amount = 1000
					producer = CSA
				}
			}
			else_if = {
				limit = {
					has_government = centrism
				}
				add_equipment_to_stockpile = {
					type = infantry_equipment
					amount = 1000
					producer = USA
				}
			}
		}
  	}

  	focus = {
		id = TEX_CIVWAR_reorganize_government
		icon = GFX_Focus_Diplomacy_CSA
		x = 4
		y = 3
		relative_position_id = TEX_CIVWAR_opening

		ai_will_do = { factor = 5 }
		cost = 14

		prerequisite = {
			focus = TEX_CIVWAR_a_pure_army
		}
		
		bypass = {
			has_civil_war = no
		}
		cancel = {
			has_civil_war = no
		}

		completion_reward = {
			add_stability = 0.2
			add_war_support = 0.2
		}
  	}

  	focus = {
		id = TEX_CIVWAR_cross_the_river
		icon = GFX_Focus_Exploration
		x = -2
		y = 4
		relative_position_id = TEX_CIVWAR_opening

		ai_will_do = { factor = 5 }
		cost = 14

		prerequisite = {
			focus = TEX_CIVWAR_remind_them_of_houston
		}

		prerequisite = {
			focus = TEX_CIVWAR_petition_for_support
		}
		
		bypass = {
			has_civil_war = no
		}
		cancel = {
			has_civil_war = no
		}

		completion_reward = {
			add_ideas = cross_the_river_TEX_CIVWAR
		}
  	}

  	focus = {
		id = TEX_CIVWAR_a_concurrent_rebellion
		icon = GFX_Focus_Diplomatic_Ally_CSA_2
		x = 2
		y = 4
		relative_position_id = TEX_CIVWAR_opening

		ai_will_do = { factor = 5 }
		cost = 14

		prerequisite = {
			focus = TEX_CIVWAR_reorganize_government
		}

		prerequisite = {
			focus = TEX_CIVWAR_petition_for_support
		}
		
		bypass = {
			has_civil_war = no
		}
		cancel = {
			has_civil_war = no
		}

		completion_reward = {
			remove_ideas = TEX_CIVWAR_unprepared_militia_1
		}
  	}

  	focus = {
		id = TEX_CIVWAR_the_union_forever
		icon = GFX_Focus_embassy_USA
		x = -2
		y = 6
		relative_position_id = TEX_CIVWAR_opening

		ai_will_do = { factor = 5 }
		cost = 10

		prerequisite = {
			focus = TEX_CIVWAR_cross_the_river
		}

		mutually_exclusive = {
			focus = TEX_CIVWAR_petition_for_annexation
		}

		mutually_exclusive = {
			focus = TEX_CIVWAR_the_lone_star
		}
		
		available = {
			has_civil_war = no
			has_country_flag = TEX_CIVWAR_rejoin_union
			USA = { exists = yes }
		}
		cancel = {
			has_civil_war = yes
		}

		completion_reward = {
			drop_cosmetic_tag = yes
			USA = { country_event = { id = acw_generic.106 } }
		}
  	}

  	focus = {
		id = TEX_CIVWAR_the_lone_star
		icon = GFX_Focus_conscription
		x = 0
		y = 6
		relative_position_id = TEX_CIVWAR_opening

		ai_will_do = { factor = 5 }
		cost = 10

		prerequisite = {
			focus = TEX_CIVWAR_cross_the_river
			focus = TEX_CIVWAR_a_concurrent_rebellion
		}

		mutually_exclusive = {
			focus = TEX_CIVWAR_petition_for_annexation
		}

		mutually_exclusive = {
			focus = TEX_CIVWAR_the_union_forever
		}
		
		available = {
			has_civil_war = no
			OR = {
				has_country_flag = TEX_CIVWAR_acw_neutrality
				has_country_flag = TEX_CIVWAR_independence
				AND = {
					CSA = { exists = no }
					has_country_flag = TEX_CIVWAR_join_confederacy
				}
				AND = {
					USA = { exists = no }
					has_country_flag = TEX_CIVWAR_rejoin_union
				}
			}
		}
		cancel = {
			has_civil_war = yes
		}

		completion_reward = {
			drop_cosmetic_tag = yes
			country_event = { id = acw_generic.109 }
		}
  	}

  	focus = {
		id = TEX_CIVWAR_petition_for_annexation
		icon = GFX_focus_csa_deo_vindice
		x = 2
		y = 6
		relative_position_id = TEX_CIVWAR_opening

		ai_will_do = { factor = 5 }
		cost = 10

		prerequisite = {
			focus = TEX_CIVWAR_a_concurrent_rebellion
		}

		mutually_exclusive = {
			focus = TEX_CIVWAR_the_lone_star
		}

		mutually_exclusive = {
			focus = TEX_CIVWAR_the_union_forever
		}
		
		available = {
			has_civil_war = no
			has_country_flag = TEX_CIVWAR_join_confederacy
			CSA = { exists = yes }
		}
		cancel = {
			has_civil_war = yes
		}

		completion_reward = {
			drop_cosmetic_tag = yes
			CSA = { country_event = { id = acw_generic.107 } }
		}
  	}
}