focus_tree = {
	id = CHE_cw_focus

    country = {
		factor = 0
		
		modifier = {
			add = 0
			tag = CHE
		}
	}
	
	default = no

    continuous_focus_position = { x = 60 y = 7000 }

	focus = {
		id = CHE_continue_holy_war
		icon = GFX_focus_goal_che_against_russia_focus
		x = 10
		y = 1
		prerequisite = { focus = CHE_organize_islamic_militants }
		cost = 3
		ai_will_do = {
			factor = 5
		}

		available_if_capitulated = no
		will_lead_to_war_with = RCO
		will_lead_to_war_with = SOV
		
		completion_reward = {
            declare_war_on = {
    			target = RCO
    			type = take_state_focus
				generator = { 232 1158 1157 235 234 238 237 }
			}	
			declare_war_on = {
    			target = SOV
    			type = take_state_focus
				generator = { 232 1158 1157 235 234 238 237 }
			}	
		}
	}
	
	 focus = {
		id = CHE_organize_islamic_militants
		x = 10
		y = 0
		cost = 2
		icon = GFX_focus_goal_che_army_focus
		ai_will_do = {
			factor = 5
		}

		available_if_capitulated = no
		
		completion_reward = {
			828 = {
    create_unit = {
						division = "name = \"Boeviki\" division_template = \"Militia\" start_experience_factor = 0.4 start_equipment_factor = 1"
						owner = ROOT
					}
					create_unit = {
						division = "name = \"Boeviki\" division_template = \"Militia\" start_experience_factor = 0.4 start_equipment_factor = 1"
						owner = ROOT
					}
					create_unit = {
						division = "name = \"Boeviki\" division_template = \"Militia\" start_experience_factor = 0.4 start_equipment_factor = 1"
						owner = ROOT
					}
					create_unit = {
						division = "name = \"Boeviki\" division_template = \"Militia\" start_experience_factor = 0.4 start_equipment_factor = 1"
						owner = ROOT
					}
					create_unit = {
						division = "name = \"Boeviki\" division_template = \"Militia\" start_experience_factor = 0.4 start_equipment_factor = 1"
						owner = ROOT
					}
					create_unit = {
						division = "name = \"Boeviki\" division_template = \"Militia\" start_experience_factor = 0.4 start_equipment_factor = 1"
						owner = ROOT
					}
					create_unit = {
						division = "name = \"Boeviki\" division_template = \"Militia\" start_experience_factor = 0.4 start_equipment_factor = 1"
						owner = ROOT
					}
					create_unit = {
						division = "name = \"Boeviki\" division_template = \"Militia\" start_experience_factor = 0.4 start_equipment_factor = 1"
						owner = ROOT
					}
					create_unit = {
						division = "name = \"Boeviki\" division_template = \"Militia\" start_experience_factor = 0.4 start_equipment_factor = 1"
						owner = ROOT
					}
					create_unit = {
						division = "name = \"Boeviki\" division_template = \"Militia\" start_experience_factor = 0.4 start_equipment_factor = 1"
						owner = ROOT
					}
					create_unit = {
						division = "name = \"Boeviki\" division_template = \"Militia\" start_experience_factor = 0.4 start_equipment_factor = 1"
						owner = ROOT
					}
					create_unit = {
						division = "name = \"Boeviki\" division_template = \"Militia\" start_experience_factor = 0.4 start_equipment_factor = 1"
						owner = ROOT
					}
					create_unit = {
						division = "name = \"Boeviki\" division_template = \"Militia\" start_experience_factor = 0.4 start_equipment_factor = 1"
						owner = ROOT
					}
					create_unit = {
						division = "name = \"Boeviki\" division_template = \"Militia\" start_experience_factor = 0.4 start_equipment_factor = 1"
						owner = ROOT
					}
					create_unit = {
						division = "name = \"Boeviki\" division_template = \"Militia\" start_experience_factor = 0.4 start_equipment_factor = 1"
						owner = ROOT
					}
			}
			828 = {
				remove_dynamic_modifier = {
					modifier = CHE_resistance
				}
			}
			add_political_power = 100
			232 = { add_claim_by = CHE }
			1158 = { add_claim_by = CHE }
			1157 = { add_claim_by = CHE }
			235 = { add_claim_by = CHE }
			238 = { add_claim_by = CHE }
			234 = { add_claim_by = CHE }
			237 = { add_claim_by = CHE }
		}
	}

	focus = {
		id = CHE_raise_islamic_militia
		icon = GFX_focus_goal_che_terrorism_focus
		x = 8
		y = 2
		prerequisite = { focus = CHE_continue_holy_war }
		cost = 6
		ai_will_do = {
			factor = 5
		}
		available_if_capitulated = no
		
		completion_reward = {
			custom_effect_tooltip = che_raising_militia_TT
		}
	}

	focus = {
		id = CHE_ask_islam_for_support
		icon = GFX_focus_goal_che_allah_focus
		x = 10
		y = 2
		prerequisite = { focus = CHE_continue_holy_war }
		cost = 6
		ai_will_do = {
			factor = 5
		}

		available_if_capitulated = no
		
		completion_reward = {
            custom_effect_tooltip = che_ask_islam_for_support_TT
			TUR = {
				add_opinion_modifier = {
					target = ROOT
					modifier = GER_opened_diplomacy
				}
			}
			add_opinion_modifier = {
				target = TUR
				modifier = GER_opened_diplomacy
			}
			IRQ = {
				add_opinion_modifier = {
					target = ROOT
					modifier = GER_opened_diplomacy
				}
			}
			add_opinion_modifier = {
				target = IRQ
				modifier = GER_opened_diplomacy
			}
			PER = {
				add_opinion_modifier = {
					target = ROOT
					modifier = GER_opened_diplomacy
				}
			}
			add_opinion_modifier = {
				target = PER
				modifier = GER_opened_diplomacy
			}
			PAK = {
				add_opinion_modifier = {
					target = ROOT
					modifier = GER_opened_diplomacy
				}
			}
			add_opinion_modifier = {
				target = PAK
				modifier = GER_opened_diplomacy
			}
			SAU = {
				add_opinion_modifier = {
					target = ROOT
					modifier = GER_opened_diplomacy
				}
			}
			add_opinion_modifier = {
				target = SAU
				modifier = GER_opened_diplomacy
			}
		}
	}

	focus = {
		id = CHE_contact_washington
		icon = GFX_focus_goal_che_usa_focus
		x = 12
		y = 2
		prerequisite = { focus = CHE_continue_holy_war }
		cost = 7
		ai_will_do = {
			factor = 5
		}
		available_if_capitulated = no

		bypass = {
			USA = { has_government = communist }
		}
		
		completion_reward = {
			USA = {
				country_event = {
					id = cw.29
				}
			}
		}
	}

	focus = {
		id = CHE_spice_must_flow
		icon = GFX_focus_goal_che_death_focus
		x = 10
		y = 3
		prerequisite = { focus = CHE_raise_islamic_militia }
		prerequisite = { focus = CHE_ask_islam_for_support }
		prerequisite = { focus = CHE_contact_washington }
		cost = 6
		ai_will_do = {
			factor = 5
		}
		available_if_capitulated = no
		
		completion_reward = {
			add_political_power = 50
			swap_ideas = {
    			remove_idea = CHE_drug_traffic
    			add_idea = CHE_drug_traffic_increased
}
		}
	}

	focus = {
		id = CHE_free_caucasus
		icon = GFX_focus_goal_che_empire_focus
		x = 10
		y = 4
		prerequisite = { focus = CHE_spice_must_flow }
		cost = 10
		ai_will_do = {
			factor = 5
		}

		available_if_capitulated = no
		
		completion_reward = {
          		add_political_power = 150
				add_stability = 0.1
				add_war_support = 0.15
		}
	}

	focus = {
		id = CHE_deal_with_federals
		icon = GFX_focus_goal_che_kill_communism_focus
		x = 8
		y = 5
		prerequisite = { focus = CHE_free_caucasus }
		cost = 5
		ai_will_do = {
			factor = 5
		}
		mutually_exclusive = {
		focus = CHE_push_for_great_emirate
		}
		mutually_exclusive = {
		focus = CHE_make_peace
		}

		available = {
    		SOV = {
				exists = yes
			}
		}

		available_if_capitulated = no
		
		completion_reward = {
			custom_effect_tooltip = che_deal_with_feds_TT
          		SOV = {
				country_event = {
					id = cw.34
				}
			}
		}
	}

	focus = {
		id = CHE_push_for_great_emirate
		icon = GFX_focus_goal_che_caucasia_focus
		x = 10
		y = 5
		prerequisite = { focus = CHE_free_caucasus }
		cost = 5
		ai_will_do = {
			factor = 5
		}
		mutually_exclusive = {
		focus = CHE_deal_with_federals
		}
		mutually_exclusive = {
		focus = CHE_make_peace
		}

		available_if_capitulated = no
		
		completion_reward = {
          		custom_effect_tooltip = che_push_for_emirate_TT
				set_cosmetic_tag = CHE_caucasian_emirate
		}
	}

	focus = {
		id = CHE_make_peace
		icon = GFX_focus_goal_che_industry_focus
		x = 12
		y = 5
		prerequisite = {
		focus = CHE_free_caucasus
		}
		cost = 5
		ai_will_do = {
    			base = 5
    			modifier = {
        		factor = 50
        		NOT = {controls_state = 232 }
    }
}
		mutually_exclusive = {
		focus = CHE_deal_with_federals
		}
		mutually_exclusive = {
		focus = CHE_push_for_great_emirate
		}

		available_if_capitulated = no
		
		completion_reward = {

			custom_effect_tooltip = che_ceasefire_TT
				white_peace = SOV
				white_peace = RCO
		}
	}

	focus = {
		id = CHE_stabilize
		icon = GFX_focus_goal_che_mil_industry_focus
		x = 10
		y = 6
		prerequisite = { 
		focus = CHE_deal_with_federals
		focus = CHE_push_for_great_emirate
		focus = CHE_make_peace
		 }

		 available = {
    		NOT = { has_war = yes }
		}
	
		cost = 10
		ai_will_do = {
			factor = 5
		}
		available_if_capitulated = no
		
		completion_reward = {
			swap_ideas = {
    			remove_idea = CHE_radicalbutweak_state
    			add_idea = CHE_radicalstrong_state
	}
	swap_ideas = {
    			remove_idea = CHE_unorganized_army
    			add_idea = CHE_unorganized_army_2
	}
		}
	}
	 }