focus_tree = {
	id = XPX
	country = {
		factor = 0
		modifier = {
			add = 10
			tag = XPX
		}
	}
	default = no
	focus = {
		id = xpx_sovet_kardinalov
		icon = GFX_goal_generic_improve_relations
		cost = 2
		x = 9
		y = 0
		ai_will_do = {
			factor = 50
		}
		available = {
			is_subject = no
			has_government = neutrality
		}
		completion_reward = {
			add_political_power = 120
			add_ideas = xpx_sovet_kardinalov_bufff
		}
	}
	focus = {
		id = xpx_nationalizatia_fabrik
		icon = GFX_goal_generic_construct_civ_factory
		cost = 10
		x = 0
		y = 0
		ai_will_do = {
			factor = 5
		}
		available = {
		
		}
		completion_reward = {
			add_stability = 0.05
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}					
					is_in_home_area = yes					
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
		}
	}
	focus = {
		id = xpx_nationalizatia_army_zavodov
		icon = GFX_goal_generic_construct_mil_factory
		cost = 10
		x = 2
		y = 0
		ai_will_do = {
			factor = 5
		}
		available = {
		
		}
		completion_reward = {
			add_war_support = 0.05
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = arms_factory
						size > 0
						include_locked = yes
					}					
					is_in_home_area = yes					
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
		}
	}
	focus = {
		id = xpx_skromnost_i_asketizm
		icon = GFX_goal_generic_consumer_goods
		cost = 10
		prerequisite = {
			focus = xpx_nationalizatia_fabrik
		}
		prerequisite = {
			focus = xpx_nationalizatia_army_zavodov
		}
		x = 1
		y = 1
		ai_will_do = {
			factor = 5
		}
		available = {
			OR = {
				has_government = neutrality
				has_government = fascism
			}
		}
		completion_reward = {
			add_ideas = xpx_skromnost_i_asketizm_bufff
		}
	}
	focus = {
		id = xpx_usilenie_gobichy_resov
		icon = GFX_goal_generic_construction2
		cost = 10
		prerequisite = {
			focus = xpx_skromnost_i_asketizm
		}
		x = 1
		y = 2
		ai_will_do = {
			factor = 5
		}
		available = {
			OR = {
				has_government = neutrality
				has_government = fascism
			}
		}
		completion_reward = {
			add_ideas = xpx_usilenie_gobichy_resov_bufff
		}
	}
	focus = {
		id = xpx_neft_1
		icon = GFX_goal_generic_oil_refinery
		cost = 10
		prerequisite = {
			focus = xpx_usilenie_gobichy_resov
		}
		x = 1
		y = 3
		ai_will_do = {
			factor = 5
		}
		available = {
			OR = {
				has_government = neutrality
				has_government = fascism
			}
		}
		completion_reward = {
			add_ideas = xpx_neft_1_bufff
		}
	}
	focus = {
		id = xpx_vopros_religii_i_nauki
		icon = GFX_goal_generic_production
		cost = 10
		prerequisite = {
			focus = xpx_sovet_kardinalov
		}
		x = 4
		y = 1
		ai_will_do = {
			factor = 5
		}
		available = {
		
		}
		completion_reward = {
			add_stability = 0.03
		}
	}
	focus = {
		id = xpx_nauka_kolba_1
		icon = GFX_focus_research
		cost = 20
		prerequisite = {
			focus = xpx_vopros_religii_i_nauki
		}
		x = 4
		y = 2
		ai_will_do = {
			factor = 5
		}
		available = {
		
		}
		completion_reward = {
			add_research_slot = 1
		}
	}
	focus = {
		id = xpx_nauka_kolba_2
		icon = GFX_goal_generic_scientific_exchange
		cost = 20
		prerequisite = {
			focus = xpx_nauka_kolba_1
		}
		x = 4
		y = 3
		ai_will_do = {
			factor = 5
		}
		bypass = {
			amount_research_slots > 3
		}
		completion_reward = {
			add_research_slot = 1
		}
	}
	focus = {
		id = xpx_laboratorii_fiziki_pod_opekoi
		icon = GFX_goal_generic_production
		cost = 10
		prerequisite = {
			focus = xpx_nauka_kolba_2
		}
		prerequisite = {
			focus = xpx_neft_1
		}
		x = 1
		y = 4
		ai_will_do = {
			factor = 5
		}
		available = {
			OR = {
				has_government = neutrality
				has_government = fascism
			}
		}
		completion_reward = {
			add_tech_bonus = {
				name = xpx_laboratorii_fiziki_pod_opekoi
				ahead_reduction = 2
				category = nuclear
			}
		}
	}
	focus = {
		id = xpx_ne_jaleya_sil
		icon = GFX_goal_generic_consumer_goods
		cost = 10
		prerequisite = {
			focus = xpx_laboratorii_fiziki_pod_opekoi
		}
		x = 0
		y = 5
		ai_will_do = {
			factor = 5
		}
		available = {
			OR = {
				has_government = neutrality
				has_government = fascism
			}
		}
		completion_reward = {
			add_ideas = xpx_ne_jaleya_sil_bufff
		}
	}
	focus = {
		id = xpx_projekt_po_adsolutnimy_umirotvoritelu
		icon = GFX_goal_generic_intelligence_exchange
		cost = 20
		prerequisite = {
			focus = xpx_laboratorii_fiziki_pod_opekoi
		}
		x = 2
		y = 5
		ai_will_do = {
			factor = 5
		}
		available = {
			OR = {
				has_government = neutrality
				has_government = fascism
			}
		}
		completion_reward = {
			add_ideas = xpx_atomic_laboratorss_bufff
		}
	}
	focus = {
		id = xpx_konsevativny_katolitsizm
		icon = GFX_goal_tripartite_pact
		cost = 5
		prerequisite = {
			focus = xpx_sovet_kardinalov
		}
		mutually_exclusive = {
			focus = xpx_borba_s_eretikami
		}
		x = 7
		y = 1
		ai_will_do = {
			factor = 5
		}
		available = {
			OR = {
				has_government = neutrality
				has_government = fascism
			}	
		}
		completion_reward = {
			add_popularity = {
				ideology = neutrality
				popularity = 0.5
			}
			if = {
				limit = {
					NOT = { has_government = neutrality }
				}
				set_politics = {
					ruling_party = neutrality
				}
			}
			custom_effect_tooltip = available_political_advisor
			show_ideas_tooltip = xpx_political_advisor_1
		}
	}
	focus = {
		id = xpx_papa_opora_stabilnosti
		icon = GFX_goal_generic_improve_relations
		cost = 10
		prerequisite = {
			focus = xpx_konsevativny_katolitsizm
		}
		x = 6
		y = 2
		ai_will_do = {
			factor = 5
		}
		available = {
			has_government = neutrality
		}
		completion_reward = {
			unlock_decision_tooltip = xpx_rech_stabilnost_i_protsvetanie	
			custom_effect_tooltip = xpx_papa_opora_stabilnosti_tt 
		}
	}
	focus = {
		id = xpx_armiya_oborony_papy
		icon = GFX_goal_generic_defence
		cost = 10
		prerequisite = {
			focus = xpx_konsevativny_katolitsizm
		}
		x = 7
		y = 3
		ai_will_do = {
			factor = 5
		}
		available = {
			has_government = neutrality
		}
		completion_reward = {
			add_stability = 0.05
			add_ideas = xpx_armiya_oborony_papy_bufff
		}
	}
	focus = {
		id = xpx_proff_armiya
		icon = GFX_goal_generic_construct_military
		cost = 10
		prerequisite = {
			focus = xpx_armiya_oborony_papy
		}
		x = 7
		y = 4
		ai_will_do = {
			factor = 5
		}
		available = {
			has_government = neutrality
		}
		completion_reward = {
			add_ideas = ar_elitnayaarmiya
		}
	}
	focus = {
		id = xpx_borba_s_eretikami
		icon = GFX_goal_generic_political_pressure
		cost = 5
		prerequisite = {
			focus = xpx_sovet_kardinalov
		}
		mutually_exclusive = {
			focus = xpx_konsevativny_katolitsizm
		}
		x = 11
		y = 1
		ai_will_do = {
			factor = 5
		}
		available = {
			OR = {
				has_government = neutrality
				has_government = fascism
			}	
		}
		completion_reward = {
			add_popularity = {
				ideology = fascism
				popularity = 0.7
			}
			if = {
				limit = {
					NOT = { has_government = fascism }
				}
				set_politics = {
					ruling_party = fascism
				}
			}
			hidden_effect = {
				# retire_ideology_leader = neutrality
				# create_country_leader = {
					# name = "Benedict XVI"
					# desc = " "
					# picture = "benedictxvi.tga"
					# expire = "2020.1.1"
					# ideology = falangism
					# traits = {
						
					# }
				# }
				add_country_leader_role = {
					character = "XPX_benedict"
					country_leader = {
						ideology = falangism
						traits = {  }
						expire = "2020.3.1.1"
					}	
					promote_leader = yes 
				}
			}
			custom_effect_tooltip = available_political_advisor
			show_ideas_tooltip = xpx_political_advisor_2
		}
	}
	###
	focus = {
		id = xpx_souz_s_tevtontsami
		icon = GFX_goal_generic_major_alliance
		cost = 5
		prerequisite = {
			focus = xpx_borba_s_eretikami
			focus = xpx_konsevativny_katolitsizm
		}
		mutually_exclusive = {
			focus = xpx_nasha_svyashennaya_liga
		}
		x = 8
		y = 2
		ai_will_do = {
			factor = 5
		}
		available = {
			is_subject = no
			is_in_faction = no
			NOT = {
				has_war_with = ZBA
			}
			ZBA = {
				has_government = fascism
				is_faction_leader = yes
				is_subject = no
				has_opinion = {
					target = XPX
					value > -10
				}
			}
			has_opinion = {
				target = ZBA
				value > -10
			}
		}
		completion_reward = {
			ZBA = {
				country_event = { id = papas_state.1 }
			}
		}
	}
	focus = {
		id = xpx_nasha_svyashennaya_liga
		icon = GFX_goal_generic_military_sphere
		cost = 5
		prerequisite = {
			focus = xpx_borba_s_eretikami
			focus = xpx_konsevativny_katolitsizm
		}
		mutually_exclusive = {
			focus = xpx_souz_s_tevtontsami
		}
		x = 10
		y = 2
		ai_will_do = {
			factor = 5
		}
		available = {
			is_subject = no
			is_in_faction = no
			has_stability > 0.5
			has_war_support > 0.5
		}
		completion_reward = {
			create_faction = svyashennaya_liga_faction
			hidden_effect = {
#				news_event = { hours = 3 id = ar_news.504 }	# новость бахнуть
			}
			if = {
				limit = {
					ZBA = {
						has_government = fascism
						is_faction_leader = yes
					}
				}
				ZBA = {
					country_event = { id = papas_state.5 }
				}
			}
		}
	}
	focus = {
		id = xpx_priglasivseh_katolikov
		icon = GFX_goal_generic_propaganda
		cost = 5
		prerequisite = {
			focus = xpx_nasha_svyashennaya_liga
			focus = xpx_souz_s_tevtontsami
		}
		x = 9
		y = 3
		ai_will_do = {
			factor = 5
		}
		available = {
			is_subject = no
			is_in_faction = yes
		}
		completion_reward = {
			custom_effect_tooltip = xpx_priglasivseh_katolikov_tt			
		}
	}
	##
	focus = {
		id = xpx_maximum_mobilizatsii
		icon = GFX_goal_generic_army_doctrines
		cost = 10
		prerequisite = {
			focus = xpx_borba_s_eretikami
		}
		x = 11
		y = 3
		ai_will_do = {
			factor = 5
		}
		available = {
			has_government = fascism
		}
		completion_reward = {
			add_ideas = xpx_maximum_mobilizatsii_bufff
		}
	}
	focus = {
		id = xpx_masss_mega_army
		icon = GFX_goal_generic_major_war
		cost = 10
		prerequisite = {
			focus = xpx_maximum_mobilizatsii
		}
		x = 11
		y = 4
		ai_will_do = {
			factor = 5
		}
		available = {
			has_government = fascism
		}
		completion_reward = {
			add_ideas = ar_massweaponrifles
		}
	}
	focus = {
		id = xpx_rech_protiv_eretikov
		icon = GFX_goal_generic_propaganda
		cost = 10
		prerequisite = {
			focus = xpx_borba_s_eretikami
		}
		x = 12
		y = 2
		ai_will_do = {
			factor = 5
		}
		available = {
			has_government = fascism
		}
		completion_reward = {
			unlock_decision_tooltip = xpx_rech_vozzvanie_k_katolikam
			custom_effect_tooltip = xpx_rech_protiv_eretikov_tt			
		}
	}
	focus = {
		id = xpx_sovet_generalov_pri_pape
		icon = GFX_goal_generic_defence
		cost = 2
		prerequisite = {
			focus = xpx_sovet_kardinalov
		}
		x = 14
		y = 1
		ai_will_do = {
			factor = 50
		}
		available = {
			OR = {
				has_government = fascism
				has_government = neutrality
			}
		}
		completion_reward = {
			add_war_support = 0.05
			custom_effect_tooltip = available_chief_of_army
			show_ideas_tooltip = xpx_army_chief_1
			custom_effect_tooltip = available_chief_of_army
			show_ideas_tooltip = xpx_army_chief_2
			custom_effect_tooltip = available_military_high_command
			show_ideas_tooltip = xpx_high_command_1
		}
	}
	focus = {
		id = xpx_kapellany_v_armii
		icon = GFX_goal_generic_build_tank
		cost = 5
		prerequisite = {
			focus = xpx_sovet_generalov_pri_pape
		}
		x = 14
		y = 2
		ai_will_do = {
			factor = 5
		}
		available = {
			OR = {
				has_government = fascism
				has_government = neutrality
			}
		}
		completion_reward = {
			add_ideas = xpx_kapellany_v_armii_bufff
		}
	}
	focus = {
		id = xpx_vernost_bogu_nashemy
		icon = GFX_goal_generic_national_unity
		cost = 10
		prerequisite = {
			focus = xpx_kapellany_v_armii
		}
		x = 14
		y = 3
		ai_will_do = {
			factor = 5
		}
		available = {
			OR = {
				has_government = fascism
				has_government = neutrality
			}
		}
		completion_reward = {
			add_ideas = xpx_vernost_bogu_nashemy_bufff
		}
	}
	focus = {
		id = xpx_gnev_gospoden
		icon = GFX_focus_wonderweapons
		cost = 10
		prerequisite = {
			focus = xpx_projekt_po_adsolutnimy_umirotvoritelu
		}
		x = 2
		y = 6
		ai_will_do = {
			factor = 5
		}
		available = {
			OR = {
				has_government = neutrality
				has_government = fascism
			}
		}
		completion_reward = {
			custom_effect_tooltip = available_political_advisor
			show_ideas_tooltip = xpx_theorist_1
			add_war_support = 0.05
			add_tech_bonus = {
				name = xpx_gnev_gospoden
				ahead_reduction = 2
				category = nuclear
			}
		}
	}
	##
	focus = {
		id = xpx_mirovoe_katolichestvo
		icon = GFX_goal_tfv_strengthen_commonwealth_ties
		cost = 10
		prerequisite = {
			focus = xpx_armiya_oborony_papy
			focus = xpx_maximum_mobilizatsii
		}
		x = 9
		y = 4
		ai_will_do = {
			factor = 7
		}
		available = {
			OR = {
				has_government = neutrality
				has_government = fascism
			}
		}
		completion_reward = {
			add_ideas = xpx_mirovoe_katolichestvo_bufff
		}
	}
	focus = {
		id = xpx_plany_krestovyh_pohodov
		icon = GFX_focus_wonderweapons
		cost = 10
		prerequisite = {
			focus = xpx_mirovoe_katolichestvo		
		}
		prerequisite = {
			focus = xpx_proff_armiya
			focus = xpx_masss_mega_army
		}
		x = 9
		y = 5
		ai_will_do = {
			factor = 2
			modifier = {
				factor = 4
				num_faction_members > 4	
			}
			modifier = {
				factor = 4
				num_divisions > 27	
			}
		}
		available = {
			is_subject = no
			OR = {
				has_government = neutrality
				has_government = fascism
			}
		}
		completion_reward = {
			add_war_support = 0.03
			add_named_threat = { threat = 5 name = xpx_plany_krestovyh_pohodov }
		}
	}
	focus = {
		id = xpx_osujdenie_messianstva
		icon = GFX_focus_generic_support_the_left_right
		cost = 10
		prerequisite = {
			focus = xpx_plany_krestovyh_pohodov		
		}		
		x = 6
		y = 6
		ai_will_do = {
			factor = 2
			modifier = {
				factor = 4
				num_faction_members > 4	
			}
			modifier = {
				factor = 4
				num_divisions > 27	
			}
		}
		available = {
			is_subject = no
			OR = {
				has_government = neutrality
				has_government = fascism
			}
			NOT = {
				is_in_faction_with = ZSL
				has_war_with = ZSL
			}
			ZSL = {
				exists = yes
				NOT = {
					is_subject_of = XPX
				}
			}
		}
		bypass = {
			has_war_with = ZSL
		}
		completion_reward = {
			add_named_threat = { threat = 5 name = xpx_osujdenie_messianstva }
			add_opinion_modifier = {
				target = ZSL
				modifier = eretiki_50
			}
			add_ai_strategy = {
				type = antagonize
				id = ZSL
				value = 100
			}
			ZSL = {
				country_event = { id = papas_state.14 }
			}
		}
	}
	focus = {
		id = xpx_udar_po_messianstva
		icon = GFX_focus_generic_air_defense
		cost = 10
		prerequisite = {
			focus = xpx_osujdenie_messianstva		
		}		
		x = 6
		y = 7
		ai_will_do = {
			factor = 2
			modifier = {
				factor = 4
				num_faction_members > 4	
			}
			modifier = {
				factor = 4
				num_divisions > 27	
			}
		}
		available = {
			is_subject = no
			OR = {
				has_government = neutrality
				has_government = fascism
			}
			NOT = {
				is_in_faction_with = ZSL
				has_war_with = ZSL
			}
			ZSL = {
				exists = yes
				NOT = {
					is_subject_of = XPX
				}
			}
			any_country = {
				is_in_faction_with = XPX
				is_neighbor_of = ZSL
			}
		}
		bypass = {
			has_war_with = ZSL
		}
		completion_reward = {
			add_named_threat = { threat = 10 name = xpx_udar_po_messianstva }
			create_wargoal = {
				type = puppet_wargoal_focus
				target = ZSL					
			}
			add_ai_strategy = {
				type = antagonize
				id = ZSL
				value = 100
			}
			add_ai_strategy = {
				type = declare_war
				id = ZSL
				value = 150
			}
		}
	}
	focus = {
		id = xpx_osujdenie_pravoslavia
		icon = GFX_goal_generic_attack_allies
		cost = 10
		prerequisite = {
			focus = xpx_plany_krestovyh_pohodov		
		}		
		x = 8
		y = 6
		ai_will_do = {
			factor = 2
			modifier = {
				factor = 4
				num_faction_members > 4	
			}
			modifier = {
				factor = 4
				num_divisions > 27	
			}
		}
		available = {
			is_subject = no
			OR = {
				has_government = neutrality
				has_government = fascism
			}
			NOT = {
				is_in_faction_with = ZVZ
				has_war_with = ZVZ
			}
			ZVZ = {
				exists = yes
				NOT = {
					is_subject_of = XPX
				}
			}
		}
		bypass = {
			has_war_with = ZVZ
		}
		completion_reward = {
			add_named_threat = { threat = 5 name = xpx_osujdenie_pravoslavia }
			add_opinion_modifier = {
				target = ZVZ
				modifier = eretiki_50
			}
			add_ai_strategy = {
				type = antagonize
				id = ZVZ
				value = 100
			}
			ZVZ = {
				country_event = { id = papas_state.15 }
			}
		}
	}
	focus = {
		id = xpx_voina_pravoslavia
		icon = GFX_focus_generic_strike_at_democracy1
		cost = 10
		prerequisite = {
			focus = xpx_osujdenie_pravoslavia		
		}		
		x = 8
		y = 7
		ai_will_do = {
			factor = 2
			modifier = {
				factor = 4
				num_faction_members > 4	
			}
			modifier = {
				factor = 4
				num_divisions > 27	
			}
		}
		available = {
			is_subject = no
			OR = {
				has_government = neutrality
				has_government = fascism
			}
			NOT = {
				is_in_faction_with = ZVZ
				has_war_with = ZVZ
			}
			ZVZ = {
				exists = yes
				NOT = {
					is_subject_of = XPX
				}
			}
		}
		bypass = {
			has_war_with = ZVZ
		}
		completion_reward = {
			add_named_threat = { threat = 10 name = xpx_voina_pravoslavia }
			create_wargoal = {
				type = puppet_wargoal_focus
				target = ZVZ					
			}
			add_ai_strategy = {
				type = antagonize
				id = ZVZ
				value = 100
			}
			add_ai_strategy = {
				type = declare_war
				id = ZVZ
				value = 150
			}
		}
	}
	focus = {
		id = xpx_persidskaya_agressia
		icon = GFX_goal_generic_territory_or_war
		cost = 10
		prerequisite = {
			focus = xpx_plany_krestovyh_pohodov		
		}		
		x = 10
		y = 6
		ai_will_do = {			
			factor = 4
			modifier = {
				factor = 4
				num_faction_members > 4	
			}
			modifier = {
				factor = 4
				num_divisions > 27	
			}
		}
		available = {
			is_subject = no
			OR = {
				has_government = neutrality
				has_government = fascism
			}
			NOT = {
				is_in_faction_with = ZPA
				has_war_with = ZPA
			}
			ZPA = {
				exists = yes
				NOT = {
					is_subject_of = XPX
				}
			}
		}
		bypass = {
			has_war_with = ZPA
		}
		completion_reward = {
			add_named_threat = { threat = 5 name = xpx_persidskaya_agressia }
			add_opinion_modifier = {
				target = ZPA
				modifier = inovertsy_80
			}
			add_ai_strategy = {
				type = antagonize
				id = ZPA
				value = 100
			}
			ZPA = {
				country_event = { id = papas_state.16 }
			}
		}
	}
	focus = {
		id = xpx_pohod_protiv_presii
		icon = GFX_goal_generic_major_war
		cost = 10
		prerequisite = {
			focus = xpx_persidskaya_agressia		
		}		
		x = 10
		y = 7
		ai_will_do = {			
			factor = 4
			modifier = {
				factor = 4
				num_faction_members > 4	
			}
			modifier = {
				factor = 4
				num_divisions > 27	
			}
		}
		available = {
			is_subject = no
			OR = {
				has_government = neutrality
				has_government = fascism
			}
			NOT = {
				is_in_faction_with = ZPA
				has_war_with = ZPA
			}
			ZPA = {
				exists = yes
				NOT = {
					is_subject_of = XPX
				}
			}
		}
		bypass = {
			has_war_with = ZPA
		}
		completion_reward = {
			add_named_threat = { threat = 10 name = xpx_pohod_protiv_presii }
			create_wargoal = {
				type = puppet_wargoal_focus
				target = ZPA					
			}
			add_ai_strategy = {
				type = antagonize
				id = ZPA
				value = 100
			}
			add_ai_strategy = {
				type = declare_war
				id = ZPA
				value = 150
			}
		}
	}
	focus = {
		id = xpx_osujdenie_anderuanstva
		icon = GFX_goal_generic_occupy_states_ongoing_war
		cost = 10
		prerequisite = {
			focus = xpx_plany_krestovyh_pohodov		
		}		
		x = 12
		y = 6
		ai_will_do = {			
			factor = 2
			modifier = {
				factor = 4
				num_faction_members > 4	
			}
			modifier = {
				factor = 4
				num_divisions > 27	
			}
		}
		available = {
			is_subject = no
			OR = {
				has_government = neutrality
				has_government = fascism
			}
		}
		completion_reward = {
			add_named_threat = { threat = 5 name = xpx_osujdenie_anderuanstva }
			every_other_country = {
				limit = {
					OR = { original_tag = ZSE }					
				}
				country_event = { id = papas_state.17 }		
			}
		}
	}
}
