focus_tree = {
	id = anarchy_ukraine_focus
	
	country = {
		factor = 0
		modifier = {
			add = 10
			tag = DKR
			has_government = neutrality
		}
	}
	
	default = no
	reset_on_civilwar = no

	continuous_focus_position = { x = 50 y = 1325 }


	############################
	####    BEGIN SECTION   ####
	############################

	focus = {
		id = DKR_war_economy
		icon = GFX_focus_generic_combined_arms
		x = 10
		y = 0
		cost = 4

		available_if_capitulated = yes

		available = {
			has_government = neutrality
		}

		ai_will_do = {
			factor = 10
		}

		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESEARCH }
		completion_reward = {
			add_tech_bonus = {
				name = DKR_war_economy
				bonus = 1.0
				uses = 1
				category = infantry_weapons
			}
			random_owned_controlled_state = {
				limit = {
					industrial_complex > 0
					is_core_of = ROOT
				}
				remove_building = {
					type = industrial_complex
					level = 1
				}
				add_building_construction = {
				    type = arms_factory
				    level = 1
				    instant_build = yes
				}
			}
		}
	}

	focus = {
		id = DKR_army_deserters
		icon = GFX_focus_generic_manpower
		x = 12
		y = 0
		cost = 4

		available_if_capitulated = yes

		available = {
			has_government = neutrality
		}

		bypass = {
			NOT = { has_war_with = UKR }
		}

		ai_will_do = {
			factor = 12
		}

		search_filters = { FOCUS_FILTER_MANPOWER }
		completion_reward = {
			division_template = {
				name = "Desertirska brihada"
				template_counter = 0
				priority = 1
				is_locked = yes
				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 }
				}
			}
			capital_scope = {
				create_unit = {
					division = "division_template = \"Desertirska brihada\" start_experience_factor = 0.3 start_equipment_factor = 1" 
					owner = DKR
				}
				create_unit = {
					division = "division_template = \"Desertirska brihada\" start_experience_factor = 0.3 start_equipment_factor = 1" 
					owner = DKR
				}
			}
		}
	}

	focus = {
		id = DKR_weapons_for_all
		icon = GFX_goal_generic_small_arms
		prerequisite = { focus = DKR_war_economy focus = DKR_army_deserters }
		x = -1
		y = 1
		relative_position_id = DKR_war_economy
		cost = 4

		available_if_capitulated = yes

		available = {
			has_government = neutrality
		}

		ai_will_do = {
			factor = 10
		}

		search_filters = { FOCUS_FILTER_MANPOWER FOCUS_FILTER_WAR_SUPPORT }
		completion_reward = {
			add_war_support = 0.10
			add_to_variable = { var_aba_conscription = 0.010 }
			add_to_variable = { var_aba_training = -0.10 }
			custom_effect_tooltip = DKR_weapons_for_all_tt
		}
	}

	focus = {
		id = DKR_executions_for_robberies
		icon = GFX_focus_DKR_black_marauders
		prerequisite = { focus = DKR_war_economy focus = DKR_army_deserters }
		x = 1
		y = 1
		relative_position_id = DKR_war_economy
		cost = 4

		available_if_capitulated = yes

		ai_will_do = {
			factor = 10
		}

		completion_reward = {
			add_manpower = -1000
			add_to_variable = { var_aba_organization = 0.10 }
			add_to_variable = { var_aba_morale = 0.10 }
			custom_effect_tooltip = DKR_executions_for_robberies_tt
			DKR_reduce_army_anarchy = yes
		}
	}

	focus = {
		id = DKR_new_expropriations
		icon = GFX_focus_spr_class_war
		prerequisite = { focus = DKR_war_economy focus = DKR_army_deserters }
		x = 1
		y = 1
		relative_position_id = DKR_army_deserters
		cost = 4

		bypass = {
			NOT = { has_war_with = UKR }
		}

		available_if_capitulated = yes

		ai_will_do = {
			factor = 12
		}

		completion_reward = {
			add_stability = -0.10
			add_timed_idea  = {
				idea = DKR_all_expropriate
				days = 180
			}
		}
	}

	focus = {
		id = DKR_legacy_of_makhno
		icon = GFX_focus_DKR_makhno_legacy
		prerequisite = { focus = DKR_executions_for_robberies focus = DKR_weapons_for_all focus = DKR_new_expropriations }
		x = 0
		y = 1
		relative_position_id = DKR_executions_for_robberies
		cost = 10

		available_if_capitulated = yes

		available = {
			has_government = neutrality
			is_puppet = no
			OR = {
				NOT = { country_exists = UKR }
				UKR = { has_capitulated = yes }
			}
		}

		ai_will_do = {
			factor = 10
		}

		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			add_political_power = 200
			country_event = makhno.2
		}
	}
	
	############################
	####    LEFT POLITIC    ####
	############################
	
	focus = {
		id = DKR_left_side
		icon = GFX_focus_DKR_left_side
        prerequisite = { focus = DKR_legacy_of_makhno }
        mutually_exclusive = { focus = DKR_right_side }
		x = -4
		y = 1
        relative_position_id = DKR_legacy_of_makhno
		cost = 0

		available = {
			always = no
		}

		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {

		}
	}

	focus = {
		id = DKR_understatement_of_nation_question
		icon = GFX_focus_spr_masters_of_our_own_fate
        prerequisite = { focus = DKR_left_side }
		x = 0
		y = 1
        relative_position_id = DKR_left_side
		cost = 10

		ai_will_do = {
			factor = 20
		}

		available = {
			has_government = neutrality
			is_puppet = no
		}

		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			add_to_variable = { var_as_ncmanpower = 0.05 }
			every_owned_state = {
				limit = {
					is_owned_and_controlled_by = ROOT
					is_core_of = UKR
					NOT = { is_core_of = ROOT }
				}
				add_compliance = 30
			}
			custom_effect_tooltip = DKR_understatement_of_nation_question_tt
		}
	}

	focus = {
		id = DKR_united_defense_council
		icon = GFX_focus_spr_regional_defense_council_of_aragon
        prerequisite = { focus = DKR_understatement_of_nation_question }
        allow_branch = {
			has_dlc = "La Resistance"
		}
		x = -2
		y = 1
        relative_position_id = DKR_understatement_of_nation_question
		cost = 10

		ai_will_do = {
			factor = 10
		}

		available = {
			has_government = neutrality
			is_puppet = no
			any_other_country = {
				original_tag = SPR
				has_civil_war = no
				NOT = { has_war_with = ROOT }
				is_puppet = no
				has_government = neutrality
				has_completed_focus = SPR_regional_defense_council_of_aragon
				ic_ratio = {
    				tag = ROOT
    				ratio < 1
				}
			}
		}

		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_ANNEXATION }
		completion_reward = {
			random_other_country = {
				limit = {
					original_tag = SPR
					has_government = neutrality
					has_completed_focus = SPR_regional_defense_council_of_aragon
				}
				country_event = { id = makhno.23 hours = 8 }
			}
			custom_effect_tooltip = DKR_united_defense_council_tt
		}
	}

	focus = {
		id = DKR_across_the_straits
		icon = GFX_focus_TUR_the_montreux_convention
        prerequisite = { focus = DKR_united_defense_council }
		x = 0
		y = 2
        relative_position_id = DKR_united_defense_council
        will_lead_to_war_with = TUR
        will_lead_to_war_with = CRM
		cost = 10

		ai_will_do = {
			factor = 10
		}

		available = {
			has_government = neutrality
			is_puppet = no
			has_country_flag = DKR_union_with_spain
			has_navy_size = { size > 9 }
			341 = { is_controlled_by = TUR } 
			797 = { is_controlled_by = TUR } 
			TUR  = {
				is_puppet = no
				NOT = { has_war_with = ROOT }
			}
		}

		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			TUR = { country_event = { id = makhno.51 hours = 12 } }
		}
	}

	focus = {
		id = DKR_unlimited_anarchy
		icon = GFX_focus_spr_anarchism_knows_no_borders
        prerequisite = { focus = DKR_understatement_of_nation_question }
		x = 0
		y = 1
        relative_position_id = DKR_understatement_of_nation_question
		cost = 10

		ai_will_do = {
			factor = 8
		}

		available = {
			has_government = neutrality
			is_puppet = no
		}

		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_ANNEXATION FOCUS_FILTER_WAR_SUPPORT }
		completion_reward = {
			add_war_support = 0.10
			add_to_variable = { var_as_wargoal_time = -0.66 }
			add_to_variable = { var_as_politpower = 0.10 }
			custom_effect_tooltip = DKR_unlimited_anarchy_tt
		}
	}

	focus = {
		id = DKR_free_waves
		icon = GFX_focus_generic_black_sea_focus
        prerequisite = { focus = DKR_unlimited_anarchy }
		x = -1
		y = 1
        relative_position_id = DKR_unlimited_anarchy
		cost = 10

		ai_will_do = {
			factor = 8
		}

		available = {
			has_government = neutrality
			is_puppet = no
			any_state = {
				is_coastal = yes
				is_controlled_by = ROOT
				is_core_of = ROOT
			}
		}

		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			navy_experience = 25	
			add_doctrine_cost_reduction = {
				name = DKR_free_waves
				cost_reduction = 0.5
				uses = 1
				category = naval_doctrine
			}	
			random_owned_controlled_state = {
				limit = {
					is_coastal = yes
					is_core_of = ROOT
					free_building_slots = {
						building = dockyard
						size > 2
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 3
				add_building_construction = {
				    type = dockyard
				    level = 3
				    instant_build = yes
				}
			}
		}
	}

	focus = {
		id = DKR_united_world
		icon = GFX_goal_anschluss
        prerequisite = { focus = DKR_unlimited_anarchy }
        prerequisite = { focus = DKR_political_debates }
		x = 1
		y = 1
        relative_position_id = DKR_unlimited_anarchy
		cost = 10

		ai_will_do = {
			factor = 20
		}

		available = {
			has_government = neutrality
			is_puppet = no
		}

		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_MANPOWER }
		completion_reward = {
			add_to_variable = { var_as_resistance = -0.30 }
			add_to_variable = { var_as_compliance_gain = 0.05 }
			custom_effect_tooltip = DKR_united_world_tt
			custom_effect_tooltip = DKR_united_world_decisions_tt
		}
	}

	focus = {
		id = DKR_anarchy_seeding
		icon = GFX_focus_prc_infiltration
        prerequisite = { focus = DKR_united_world }
		x = 0
		y = 1
        relative_position_id = DKR_united_world
		cost = 10

		ai_will_do = {
			factor = 10
		}

		available = {
			has_government = neutrality
			is_puppet = no
		}

		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_ANNEXATION }
		completion_reward = {
			if = {
				limit = { has_dlc = "La Resistance" }
				custom_effect_tooltip = DKR_anarchy_seeding_operations_tt
			}
			else = {
				custom_effect_tooltip = UKR_additional_decisions
			}
		}
	}

	############################
	####    RIGHT POLITIC   ####
	############################
	
	focus = {
		id = DKR_right_side
		icon = GFX_focus_DKR_right_side
        prerequisite = { focus = DKR_legacy_of_makhno }
        mutually_exclusive = { focus = DKR_left_side }
		x = 4
		y = 1
        relative_position_id = DKR_legacy_of_makhno
		cost = 0

		available = {
			always = no
		}

		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {

		}
	}

	focus = {
		id = DKR_our_common_home
		icon = GFX_focus_UKR_for_native_land
        prerequisite = { focus = DKR_right_side }
		x = 0
		y = 1
        relative_position_id = DKR_right_side
		cost = 10

		ai_will_do = {
			factor = 20
		}

		available = {
			has_government = neutrality
			is_puppet = no
		}

		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			every_owned_state = {
				limit = {
					is_owned_and_controlled_by = ROOT
					is_core_of = UKR
					NOT = { is_core_of = ROOT }
				}
				add_core_of = ROOT
				remove_core_of = UKR
			}
			if = { 
				limit = { 202 = { is_owned_and_controlled_by = ROOT } }
				set_capital = { state = 202 }
			}
			add_to_variable = { var_as_conscription_factor = 0.10 }
		}
	}

	focus = {
		id = DKR_spirit_of_freedom
		icon = GFX_goal_generic_defence
        prerequisite = { focus = DKR_our_common_home }
		x = 2
		y = 1
        relative_position_id = DKR_our_common_home
		cost = 10

		ai_will_do = {
			factor = 10
		}

		available = {
			has_war = yes
		}

		available_if_capitulated = no
		continue_if_invalid = yes
		cancel_if_invalid = no

		completion_reward = {
			add_to_variable = { var_aba_core_defence = 0.10 }
			add_to_variable = { var_aba_out_of_supply = -0.10 }
			custom_effect_tooltip = DKR_spirit_of_freedom_tt
		}
	}

	focus = {
		id = DKR_modern_haidamaks
		icon = GFX_focus_focus_fra_maquis
        prerequisite = { focus = DKR_spirit_of_freedom }
		x = 0
		y = 2
        relative_position_id = DKR_spirit_of_freedom
		cost = 10

		ai_will_do = {
			factor = 10
		}

		available = {
			has_war = yes
		}

		available_if_capitulated = no
		continue_if_invalid = yes
		cancel_if_invalid = no

		search_filters = { FOCUS_FILTER_MANPOWER }
		completion_reward = {
			add_to_variable = { var_aba_conscription = 0.015 }
			add_to_variable = { var_aba_resistance_damage = 0.15 }
			custom_effect_tooltip = DKR_modern_haidamaks_tt
		}
	}

	focus = {
		id = DKR_always_ready
		icon = GFX_goal_generic_construct_military
        prerequisite = { focus = DKR_our_common_home }
		x = 0
		y = 1
        relative_position_id = DKR_our_common_home
		cost = 10

		ai_will_do = {
			factor = 10
		}

		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_WAR_SUPPORT }
		completion_reward = {
			add_war_support = 0.10
			add_to_variable = { var_as_wargoal_time = 0.75 }
			add_to_variable = { var_as_bunkers = 0.15 }
			custom_effect_tooltip = DKR_always_ready_tt
		}
	}

	focus = {
		id = DKR_western_campaign
		icon = GFX_focus_DKR_western_campaign
        prerequisite = { focus = DKR_always_ready }
		x = -1
		y = 1
        relative_position_id = DKR_always_ready
        will_lead_to_war_with = POL
		cost = 10

		ai_will_do = {
			factor = 10
			modifier = {
				factor = 0.1
				date < 1939.7.1
			}
			modifier = {
				factor = 10
				POL = { has_war = yes }
			}
		}

		available = {
			has_government = neutrality
			is_puppet = no
		}

		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_ANNEXATION }
		completion_reward = {
			add_state_claim = 89
			add_state_claim = 91
			add_state_claim = 93
			add_state_claim = 987
			hidden_effect = {
				UKR = {
					remove_state_core = 89
					remove_state_core = 91
					remove_state_core = 93
					remove_state_core = 987
				}
			}
			if = {
				limit = {
					OR = {
						89 = { is_owned_and_controlled_by = POL	}
						91 = { is_owned_and_controlled_by = POL	}
						93 = { is_owned_and_controlled_by = POL	}
						987 = { is_owned_and_controlled_by = POL	}
					}
					NOT = { has_war_with = POL }
					NOT = { is_in_faction_with = POL }
				}
				POL = { country_event = makhno.17 }
			}
			effect_tooltip = {
				if = {
					limit = {
						OR = {
							89 = { is_owned_and_controlled_by = POL	}
							91 = { is_owned_and_controlled_by = POL	}
							93 = { is_owned_and_controlled_by = POL	}
							987 = { is_owned_and_controlled_by = POL	}
						}
					}
					add_timed_idea = {
						idea = DKR_pay_for_cedes_lands
						days = 365
					}
					give_guarantee = POL
				}
			}			
		}
	}

	focus = {
		id = DKR_go_across_prut
		icon = GFX_focus_UKR_bukovina_bessarabia
        prerequisite = { focus = DKR_always_ready }
		x = 1
		y = 1
        relative_position_id = DKR_always_ready
        will_lead_to_war_with = ROM
		cost = 10

		ai_will_do = {
			factor = 10
			modifier = {
				factor = 0.1
				date < 1939.10.1
			}
			modifier = {
				factor = 10
				ROM = { has_war = yes }
			}
		}

		available = {
			has_government = neutrality
			is_puppet = no
		}

		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_ANNEXATION }
		completion_reward = {
			add_state_claim = 78
			add_state_claim = 80
			add_state_claim = 766
			if = {
				limit = {
					OR = {
						78 = { is_owned_and_controlled_by = ROM	}
						80 = { is_owned_and_controlled_by = ROM	}
						766 = { is_owned_and_controlled_by = ROM }
					}
					NOT = { has_war_with = ROM }
					NOT = { is_in_faction_with = ROM }
				}
				ROM = { country_event = makhno.20 }
			}
			if = {
				limit = {
					OR = {
						78 = { is_owned_and_controlled_by = ROM	}
						80 = { is_owned_and_controlled_by = ROM	}
						766 = { is_owned_and_controlled_by = ROM	}
					}
					NOT = { has_war_with = ROM }
					NOT = { is_in_faction_with = ROM }
					FRA = {
						NOT = { has_war_with = DKR }
						has_guaranteed = ROM
					}
				}
				FRA = { country_event = ukraine.366 }
			}
			effect_tooltip = {
				if = {
					limit = {
						OR = {
							78 = { is_owned_and_controlled_by = ROM	}
							80 = { is_owned_and_controlled_by = ROM	}
							766 = { is_owned_and_controlled_by = ROM	}
						}
					}
					add_timed_idea = {
						idea = DKR_pay_for_cedes_lands
						days = 365
					}
					give_guarantee = ROM
				}
			}
		}
	}

	focus = {
		id = DKR_free_carpathians
		icon = GFX_focus_UKR_carpathian_ukraine
        prerequisite = { focus = DKR_western_campaign }
        prerequisite = { focus = DKR_go_across_prut }
		x = 1
		y = 1
        relative_position_id = DKR_western_campaign
		cost = 10

		ai_will_do = {
			factor = 10
		}

		available = {
			has_government = neutrality
			is_puppet = no
			89 = {
				is_controlled_by = ROOT
			}	
		}

		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_ANNEXATION }
		completion_reward = {
			add_state_claim = 73
			if = {
				limit = {
					73 = { NOT = { is_owned_and_controlled_by = ROOT } }
				}
				random_other_country = {
					limit = {
						controls_state = 73
						NOT = { tag = CUA }
						NOT = { has_war_with = ROOT }
						NOT = { is_in_faction_with = ROOT }
						NOT = { is_puppet_of = ROOT }
					}
					country_event = { id = makhno.37 days = 1 }
				}
			}
			if = {
				limit = { 
					73 = { is_owned_and_controlled_by = CUA } 
					CUA = { is_puppet = yes }
					CUA = { NOT = { is_puppet_of = ROOT } }
				}
				CUA = {
					OVERLORD = { country_event = { id = makhno.37 days = 1 } }
				}
			}			
		}
	}

	############################
	####   COMMON POLITIC   ####
	############################

	focus = {
		id = DKR_freedom_for_women
		icon = GFX_focus_DKR_freedom_for_women
        prerequisite = { focus = DKR_left_side focus = DKR_right_side }

		x = 2
		y = 1
        relative_position_id = DKR_left_side
		cost = 10

		ai_will_do = {
			factor = 10
		}

		available = {
			has_government = neutrality
		}

		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			add_political_power = 75
			add_to_variable = { var_as_industry_capacity = 0.05 }
			add_to_variable = { var_aba_female_commanders = 0.1 }
			custom_effect_tooltip = DKR_freedom_for_women_tt
			custom_effect_tooltip = available_political_advisor
			show_ideas_tooltip = DKR_halyna_kouzmenko
			custom_effect_tooltip = available_political_advisor
			show_ideas_tooltip = DKR_olga_taratuta
			custom_effect_tooltip = available_political_advisor
			show_ideas_tooltip = DKR_marusya_nikiforova
		}
	}

	focus = {
		id = DKR_cooperation_with_spain_anarchists
		icon = GFX_focus_ARG_no_gods_no_masters
        prerequisite = { focus = DKR_left_side focus = DKR_right_side }
        allow_branch = {
			has_dlc = "La Resistance"
		}
		x = -4
		y = 1
        relative_position_id = DKR_right_side
		cost = 10

		ai_will_do = {
			factor = 10
		}

		available = {
			has_government = neutrality
			is_puppet = no
			if = {
				limit = { has_completed_focus = DKR_right_side }
				any_other_country = {
					original_tag = SPR
					has_civil_war = no
					NOT = { has_war_with = ROOT }
					is_puppet = no
					has_government = neutrality
					has_completed_focus = SPR_regional_defense_council_of_aragon
				}
			}
			else = {
				has_intelligence_agency = yes
			}
		}

		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			if = {
				limit = { has_completed_focus = DKR_right_side }
				if = {
					limit = {
						OR = { #any support from DKR
							has_country_flag = DKR_equipment_support_flag
							has_country_flag = DKR_volunteers_support_flag
							has_country_flag = DKR_air_support_flag
							has_country_flag = DKR_industry_support_flag
						}
					}
					add_ideas = DKR_collaboration_with_spain_adv
					SPC = {
						add_ideas = DKR_collaboration_with_spain_adv
					}
				}
				else = {
					add_ideas = DKR_collaboration_with_spain
					SPC = {
						add_ideas = DKR_collaboration_with_spain
					}
				}
				add_relation_modifier = {
					target = SPC
					modifier = DKR_license_anarchy_equipment
				}
				if = {
					limit = {
						NOT = { has_guaranteed = SPC }
					}
					give_guarantee = SPC
				}
				SPC = { 
					give_guarantee = DKR
					country_event = makhno.59
				}		
			}
			else = {
				add_to_variable = { var_aba_network_gain = 0.50 }
				add_to_variable = { var_aba_operatives = 1 }
				custom_effect_tooltip = DKR_anarchy_seeding_tt
			}	
		}
	}

	focus = {
		id = DKR_free_personal_development
		icon = GFX_focus_generic_improve_the_administration
        prerequisite = { focus = DKR_left_side focus = DKR_right_side }
		x = -2
		y = 1
        relative_position_id = DKR_right_side
		cost = 10

		ai_will_do = {
			factor = 10
		}

		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			add_to_variable = { var_as_politpower = 0.10 }
			add_to_variable = { var_as_consumer_goods = 0.10 }
			if = {
				limit = { has_dlc = "La Resistance" }
				add_to_variable = { var_as_research_speed = 0.07 }
				custom_effect_tooltip = DKR_free_personal_development_lar_tt
			}
			else = {
				add_to_variable = { var_as_research_speed = 0.10 } #compensation without spy operations of brain drain
				custom_effect_tooltip = DKR_free_personal_development_tt
			}
		}
	}

	focus = {
		id = DKR_political_debates
		icon = GFX_focus_DKR_political_debates
        prerequisite = { focus = DKR_understatement_of_nation_question focus = DKR_our_common_home  }
		x = 4
		y = 1
        relative_position_id = DKR_understatement_of_nation_question
		cost = 5

		ai_will_do = {
			factor = 15
		}

		available = {
			has_government = neutrality
		}

		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			country_event = makhno.67
		}
	}

	focus = {
		id = DKR_representatives_in_regions
		icon = GFX_goal_generic_intelligence_exchange
        prerequisite = { focus = DKR_political_debates }
        mutually_exclusive = { focus = DKR_full_local_management }
		x = -1
		y = 1
        relative_position_id = DKR_political_debates
		cost = 10

		ai_will_do = {
			factor = 5
		}

		available = {
			has_country_flag = DKR_win_of_platformism
		}

		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			add_to_variable = { var_as_max_efficiency = 0.05 }
			add_to_variable = { var_as_start_efficiency = 0.05 }
			custom_effect_tooltip = DKR_representatives_in_regions_tt
		}
	}

	focus = {
		id = DKR_anticlericalism
		icon = GFX_focus_mex_triumph_over_the_cristeros
        prerequisite = { focus = DKR_representatives_in_regions }
		x = 0
		y = 1
        relative_position_id = DKR_representatives_in_regions
		cost = 10

		ai_will_do = {
			factor = 10
		}

		available = {
			has_government = neutrality
		}

		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			add_political_power = 100
			add_to_variable = { var_as_industry_capacity = 0.05 }
			add_to_variable = { var_as_resistance = 0.15 }
			custom_effect_tooltip = DKR_anticlericalism_tt
		}
	}

	focus = {
		id = DKR_full_local_management
		icon = GFX_focus_generic_concessions
        prerequisite = { focus = DKR_political_debates }
        mutually_exclusive = { focus = DKR_representatives_in_regions }
		x = 1
		y = 1
        relative_position_id = DKR_political_debates
		cost = 10

		ai_will_do = {
			factor = 5
		}

		available = {
			has_country_flag = DKR_win_of_synthesism
		}

		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			add_to_variable = { var_as_build_slots = 0.15 }
			add_to_variable = { var_as_surrender = 0.20 }
			custom_effect_tooltip = DKR_full_local_management_tt
		}
	}

	focus = {
		id = DKR_freedom_of_speech
		icon = GFX_goal_generic_propaganda
        prerequisite = { focus = DKR_full_local_management }
		x = 0
		y = 1
        relative_position_id = DKR_full_local_management
		cost = 10

		ai_will_do = {
			factor = 10
		}

		available = {
			has_government = neutrality
		}

		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_MANPOWER }
		completion_reward = {
			add_political_power = -100
			add_to_variable = { var_as_drift_defence = -0.30 }
			add_to_variable = { var_as_ncmanpower = 0.05 }
			add_to_variable = { var_as_research_speed = 0.05 }
			custom_effect_tooltip = DKR_freedom_of_speech_tt
		}
	}

	focus = {
		id = DKR_staining_for_whites
		icon = GFX_focus_UKR_ultimatum_to_crimea
        prerequisite = { focus = DKR_anarchy_seeding focus = DKR_free_carpathians }
		x = -4
		y = 1
        relative_position_id = DKR_free_carpathians
        will_lead_to_war_with = CRM
		cost = 10

		ai_will_do = {
			factor = 10
		}

		available = {
			has_government = neutrality
			is_puppet = no
		}

		available_if_capitulated = no

		bypass = {
			has_completed_focus = DKR_left_side
			AND = {
				OR = {
					NOT = { country_exists = CRM }
					has_war_with = CRM
					CRM = { is_subject = yes }
				}
				SOV = { has_government = communism }
			}
			
		}

		search_filters = { FOCUS_FILTER_ANNEXATION }
		completion_reward = {
			if = {
				limit = { has_completed_focus = DKR_right_side }
				add_state_claim = 137
				add_state_claim = 986
			}
			if = {
				limit = { 
					country_exists = CRM 
					NOT = { has_war_with = CRM }
					CRM = { is_puppet = no }
				}
				CRM = { country_event = makhno.34 }
			}
			if = { 
				limit = { 
					SOV = { NOT = { has_government = communism } } 
				} 
				create_wargoal = {
					type = annex_everything
					target = SOV
				}	
			}
		}
	}

	focus = {
		id = DKR_whitening_of_reds
		icon = GFX_focus_DKR_soviet_issue
        prerequisite = { focus = DKR_staining_for_whites }
		x = 0
		y = 1
        relative_position_id = DKR_staining_for_whites
        will_lead_to_war_with = SOV
		cost = 10

		ai_will_do = {
			factor = 0
			modifier = {
				add = 1
				has_army_manpower = { size > 499999 }
			}
			modifier = {
				add = 1
				SOV = { surrender_progress > 0.3 }
			}
		}

		available = {
			has_government = neutrality
			is_puppet = no
		}

		available_if_capitulated = no

		bypass = {
			OR = {
				NOT = { country_exists = SOV }
				has_war_with = SOV
				SOV = { is_puppet = yes }
				SOV = { NOT = { has_government = communism } }
			}
		}

		search_filters = { FOCUS_FILTER_ANNEXATION }
		completion_reward = {
			if = {
				limit = { 
					country_exists = SOV 
					NOT = { has_war_with = SOV }
					SOV = { is_puppet = no }
				}
				create_wargoal = {
					type = annex_everything
					target = SOV
				}	
			}
		}
	}

	focus = {
		id = DKR_freedom_of_cossacks
		icon = GFX_focus_UKR_new_cossacks
        prerequisite = { focus = DKR_whitening_of_reds }
        prerequisite = { focus = DKR_free_carpathians }
		x = 2
		y = 1
        relative_position_id = DKR_whitening_of_reds
		cost = 10

		ai_will_do = {
			factor = 10
		}

		available = {
			has_government = neutrality
			is_puppet = no
		}

		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_ANNEXATION }
		completion_reward = {
			add_state_claim = 234
			add_state_claim = 238
			add_state_claim = 245
			add_state_claim = 218
			add_state_claim = 235
			add_state_claim = 240
			add_state_claim = 983
			add_state_claim = 985
		}
	}

	focus = {
		id = DKR_liberation_of_soviet_peoples
		icon = GFX_goal_anti_comintern_pact
        prerequisite = { focus = DKR_whitening_of_reds }
        prerequisite = { focus = DKR_anarchy_seeding }
		x = -2
		y = 1
        relative_position_id = DKR_whitening_of_reds
		cost = 5

		ai_will_do = {
			factor = 10
		}

		available = {
			has_government = neutrality
			has_war_with = SOV
		}

		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_ANNEXATION }
		completion_reward = {
			add_relation_modifier = {
				target = SOV
				modifier = DKR_compliance_in_exussr
			}
			custom_effect_tooltip = DKR_liberation_of_soviet_peoples_tt
		}
	}
	
	############################
	####  ECONOMIC SECTION  ####
	############################
	
	focus = {
		id = DKR_collectivized_society
		icon = GFX_goal_generic_national_unity
        prerequisite = { focus = DKR_legacy_of_makhno }
		x = -9
		y = 1
        relative_position_id = DKR_legacy_of_makhno
		cost = 10

		ai_will_do = {
			factor = 20
		}

		available = {
			has_government = neutrality
		}

		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			add_ideas = SPR_collectivized_society
			if = {
				limit = { has_idea = DKR_recovering_from_civil_war }
				modify_timed_idea = {
				    idea = DKR_recovering_from_civil_war
				    days = -60
				}
			}
		}
	}

	focus = {
		id = DKR_industry_for_the_people
		icon = GFX_goal_generic_construct_civilian
        prerequisite = { focus = DKR_collectivized_society }
		x = -1
		y = 1
        relative_position_id = DKR_collectivized_society
		cost = 8

		ai_will_do = {
			factor = 10
		}

		available = {
			has_government = neutrality
		}

		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			add_to_variable = { var_as_build_speed = 0.10 }
			custom_effect_tooltip = DKR_industry_for_the_people_tt
			random_list = {
				50 = {
					random_owned_controlled_state = {
						limit = {
							is_core_of = ROOT
							free_building_slots = {
								building = arms_factory
								size > 0
								include_locked = yes
							}
						}
						add_extra_state_shared_building_slots = 1
						add_building_construction = {
						    type = arms_factory
						    level = 1
						    instant_build = yes
						}
					}
				}
				50 = {
					random_owned_controlled_state = {
						limit = {
							is_core_of = ROOT
							free_building_slots = {
								building = industrial_complex
								size > 0
								include_locked = yes
							}
						}
						add_extra_state_shared_building_slots = 1
						add_building_construction = {
						    type = industrial_complex
						    level = 1
						    instant_build = yes
						}
					}
				}
			}		
			if = {
				limit = { has_idea = DKR_recovering_from_civil_war }
				modify_timed_idea = {
					idea = DKR_recovering_from_civil_war
					days = -60
				}
			}
		}
	}

	focus = {
		id = DKR_free_workers_communes
		icon = GFX_goal_generic_construct_civ_factory
        prerequisite = { focus = DKR_collectivized_society }
		x = 1
		y = 1
        relative_position_id = DKR_collectivized_society
		cost = 8

		ai_will_do = {
			factor = 10
		}

		available = {
			has_government = neutrality
		}

		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			add_tech_bonus = {
				name = DKR_free_workers_communes
				bonus = 1.0
				uses = 2
				category = industry
			}
			add_to_variable = { var_as_industry_capacity = 0.05 }
			custom_effect_tooltip = DKR_free_workers_communes_tt
			random_list = {
				50 = {
					random_owned_controlled_state = {
						limit = {
							is_core_of = ROOT
							free_building_slots = {
								building = arms_factory
								size > 0
								include_locked = yes
							}
						}
						add_extra_state_shared_building_slots = 1
						add_building_construction = {
						    type = arms_factory
						    level = 1
						    instant_build = yes
						}
					}
				}
				50 = {
					random_owned_controlled_state = {
						limit = {
							is_core_of = ROOT
							free_building_slots = {
								building = industrial_complex
								size > 0
								include_locked = yes
							}
						}
						add_extra_state_shared_building_slots = 1
						add_building_construction = {
						    type = industrial_complex
						    level = 1
						    instant_build = yes
						}
					}
				}
			}		
			if = {
				limit = { has_idea = DKR_recovering_from_civil_war }
				modify_timed_idea = {
				    idea = DKR_recovering_from_civil_war
				    days = -60
				}
			}
		}
	}

	focus = {
		id = DKR_agrarian_collectivization
		icon = GFX_focus_UKR_agrarian_reform
        prerequisite = { focus = DKR_industry_for_the_people }
		x = 0
		y = 1
        relative_position_id = DKR_industry_for_the_people
		cost = 8

		ai_will_do = {
			factor = 10
		}

		available = {
			has_government = neutrality
		}

		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			add_to_variable = { var_as_consumer_goods = -0.10 }
			custom_effect_tooltip = DKR_agrarian_collectivization_tt
			random_list = {
				50 = {
					random_owned_controlled_state = {
						limit = {
							is_core_of = ROOT
							free_building_slots = {
								building = arms_factory
								size > 0
								include_locked = yes
							}
						}
						add_extra_state_shared_building_slots = 1
						add_building_construction = {
						    type = arms_factory
						    level = 1
						    instant_build = yes
						}
					}
				}
				50 = {
					random_owned_controlled_state = {
						limit = {
							is_core_of = ROOT
							free_building_slots = {
								building = industrial_complex
								size > 0
								include_locked = yes
							}
						}
						add_extra_state_shared_building_slots = 1
						add_building_construction = {
						    type = industrial_complex
						    level = 1
						    instant_build = yes
						}
					}
				}
			}		
			if = {
				limit = { has_idea = DKR_recovering_from_civil_war }
				modify_timed_idea = {
				    idea = DKR_recovering_from_civil_war
				    days = -60
				}
			}
		}
	}

	focus = {
		id = DKR_collective_coordination
		icon = GFX_focus_generic_self_management
        prerequisite = { focus = DKR_free_workers_communes }
		x = 0
		y = 1
        relative_position_id = DKR_free_workers_communes
		cost = 8

		ai_will_do = {
			factor = 10
		}

		available = {
			has_government = neutrality
		}

		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			add_to_variable = { var_as_max_efficiency = 0.10 }
			add_to_variable = { var_as_start_efficiency = 0.10 }
			custom_effect_tooltip = DKR_collective_coordination_tt
			random_list = {
				50 = {
					random_owned_controlled_state = {
						limit = {
							is_core_of = ROOT
							free_building_slots = {
								building = arms_factory
								size > 0
								include_locked = yes
							}
						}
						add_extra_state_shared_building_slots = 1
						add_building_construction = {
						    type = arms_factory
						    level = 1
						    instant_build = yes
						}
					}
				}
				50 = {
					random_owned_controlled_state = {
						limit = {
							is_core_of = ROOT
							free_building_slots = {
								building = industrial_complex
								size > 0
								include_locked = yes
							}
						}
						add_extra_state_shared_building_slots = 1
						add_building_construction = {
						    type = industrial_complex
						    level = 1
						    instant_build = yes
						}
					}
				}
			}		
			if = {
				limit = { has_idea = DKR_recovering_from_civil_war }
				modify_timed_idea = {
				    idea = DKR_recovering_from_civil_war
				    days = -60
				}
			}
		}
	}

	focus = {
		id = DKR_freethinking
		icon = GFX_focus_research
        prerequisite = { focus = DKR_agrarian_collectivization focus = DKR_collective_coordination }
		x = 1
		y = 1
        relative_position_id = DKR_agrarian_collectivization
		cost = 10

		ai_will_do = {
			factor = 12
		}

		available = {
			has_government = neutrality
		}

		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_RESEARCH }
		completion_reward = {
			add_research_slot = 1
			if = {
				limit = { 
					has_dlc = "La Resistance"				
				}
				custom_effect_tooltip = UKR_additional_operation
			}
		}
	}

	focus = {
		id = DKR_anarchy_autarky
		icon = GFX_goal_generic_construction2
        prerequisite = { focus = DKR_agrarian_collectivization focus = DKR_collective_coordination }
		x = -1
		y = 1
        relative_position_id = DKR_agrarian_collectivization
		cost = 10

		ai_will_do = {
			factor = 8
		}

		available = {
			has_government = neutrality
		}

		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			add_to_variable = { var_as_resources = 0.10 }
			add_to_variable = { var_as_oil_refinery_build = 0.15 }
			custom_effect_tooltip = DKR_anarchy_autarky_tt
		}
	}

	focus = {
		id = DKR_economic_mutualism
		icon = GFX_focus_SOV_merge_plants
        prerequisite = { focus = DKR_agrarian_collectivization focus = DKR_collective_coordination }
		x = 1
		y = 1
        relative_position_id = DKR_collective_coordination
		cost = 10

		ai_will_do = {
			factor = 8
		}

		available = {
			has_government = neutrality
		}

		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			add_offsite_building = { type = industrial_complex level = 3 }
		}
	}

	focus = {
		id = DKR_free_competitions
		icon = GFX_focus_spr_torchbearers_of_tomorrow
        prerequisite = { focus = DKR_freethinking }
        prerequisite = { focus = DKR_anarchy_autarky }
        prerequisite = { focus = DKR_economic_mutualism }
		x = 0
		y = 1
        relative_position_id = DKR_freethinking
		cost = 10

		ai_will_do = {
			factor = 8
		}

		available = {
			has_government = neutrality
		}

		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESEARCH }
		completion_reward = {
			custom_effect_tooltip = DKR_free_competitions_tt
			hidden_effect = {
				#country_event = { id = makhno.40 days = 30 random_days = 15 }
				#country_event = { id = makhno.44 days = 30 random_days = 15 }
				DKR_calculate_days_of_build_for_fc = yes
				DKR_calculate_days_of_research_for_fc = yes
				set_variable = { built_a_mil = 0 }
				activate_decision = DKR_free_competitions_build
				activate_decision = DKR_free_competitions_research
				add_to_variable = { var_as_consumer_goods = 0.15 }
				add_to_variable = { var_as_research_speed = -0.10 }
				set_variable = { built_a_civ = 0 }
				set_variable = { built_a_mil = 0 }
				set_variable = { built_a_dockyard = 0 }
				set_variable = { built_a_infra = 0 }
				set_variable = { built_an_airbase = 0 }
				set_variable = { added_slot = 0 }
				set_variable = { research_industry = 0 }
				set_variable = { research_weapon = 0 }
				set_variable = { research_vehicles = 0 }
				set_variable = { research_planes = 0 }
				set_variable = { research_ships = 0 }
			}
		}
	}

	############################
	####  MILITARY SECTION  ####
	############################

	focus = {
		id = DKR_dealing_with_militia
		icon = GFX_focus_ETH_freedom_at_gunpoint
        prerequisite = { focus = DKR_legacy_of_makhno }
		x = 10
		y = 1
        relative_position_id = DKR_legacy_of_makhno
		cost = 5

		ai_will_do = {
			factor = 10
		}

		available = {
			has_government = neutrality
			NOT = { has_country_flag = DKR_east_opposition_of_anarcho_communists }
			NOT = { has_country_flag = DKR_south_opposition_of_anarcho_communists }
			NOT = { has_country_flag = DKR_north_opposition_of_anarcho_communists }
		}

		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_MANPOWER }
		completion_reward = {
			country_event = makhno.66
		}
	}
	
	focus = {
		id = DKR_further_militarization
		icon = GFX_focus_secret_rearmament
        prerequisite = { focus = DKR_dealing_with_militia }
		x = 0
		y = 1
        relative_position_id = DKR_dealing_with_militia
		cost = 8

		ai_will_do = {
			factor = 10
		}

		available = {
			has_government = neutrality
		}

		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_MANPOWER FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			random_owned_controlled_state = {
				limit = {
					is_core_of = ROOT
					free_building_slots = {
						building = arms_factory
						size > 0
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
				    type = arms_factory
				    level = 1
				    instant_build = yes
				}
			}
			custom_effect_tooltip = DKR_further_militarization_tt
			add_to_variable = { var_aba_conscription = 0.020 }
			add_to_variable = { var_aba_training = -0.10 }
		}
	}

	focus = {
		id = DKR_new_tachanka_tactics
		icon = GFX_focus_DKR_tachankas
        prerequisite = { focus = DKR_dealing_with_militia }
		x = -2
		y = 1
        relative_position_id = DKR_dealing_with_militia
		cost = 8

		ai_will_do = {
			factor = 10
		}

		available = {
			has_government = neutrality
		}

		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_RESEARCH }
		completion_reward = {
			add_doctrine_cost_reduction = {
				name = DKR_new_tachanka_tactics
				cost_reduction = 0.5
				uses = 1
				category = land_doctrine
			}
			custom_effect_tooltip = DKR_new_tachanka_tactics_tt
			add_to_variable = { var_aba_speed = 0.10 }
			add_to_variable = { var_aba_cav_attack = 0.15 }
			add_to_variable = { var_aba_cav_defence = 0.15 }
		}
	}

	focus = {
		id = DKR_guerrilla_warfare
		icon = GFX_focus_DKR_peoples_army
        prerequisite = { focus = DKR_dealing_with_militia }
		x = 2
		y = 1
        relative_position_id = DKR_dealing_with_militia
		cost = 8

		ai_will_do = {
			factor = 10
		}

		available = {
			has_government = neutrality
		}

		available_if_capitulated = no

		completion_reward = {
			custom_effect_tooltip = DKR_guerrilla_warfare_tt
			add_to_variable = { var_aba_supply = -0.15 }
			add_to_variable = { var_aba_dig_speed = 0.25 }
			add_to_variable = { var_aba_resistance_damage = 0.20 }
		}
	}

	focus = {
		id = DKR_war_councils
		icon = GFX_goal_generic_army_doctrines
        prerequisite = { focus = DKR_further_militarization }
		x = 0
		y = 1
        relative_position_id = DKR_further_militarization
		cost = 8

		ai_will_do = {
			factor = 10
		}

		available = {
			has_government = neutrality
		}

		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_RESEARCH }
		completion_reward = {
			army_experience = 25
			add_doctrine_cost_reduction = {
				name = DKR_war_councils
				cost_reduction = 0.5
				uses = 1
				category = land_doctrine
			}
			custom_effect_tooltip = DKR_war_councils_tt
		}
	}

	focus = {
		id = DKR_new_officers
		icon = GFX_focus_generic_military_academy
        prerequisite = { focus = DKR_war_councils }
		x = 0
		y = 1
        relative_position_id = DKR_war_councils
		cost = 10

		ai_will_do = {
			factor = 10
		}

		available = {
			has_government = neutrality
		}

		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_RESEARCH }
		completion_reward = {
			add_doctrine_cost_reduction = {
				name = DKR_new_officers
				cost_reduction = 0.5
				uses = 1
				category = land_doctrine
			}
			add_to_variable = { var_aba_leaders_cost = -0.5 }
			add_to_variable = { var_aba_start_planning = 1 }
			custom_effect_tooltip = DKR_new_officers_tt
			DKR_increase_army_anarchy = yes
		}
	}

	focus = {
		id = DKR_orgainze_war_syndicates
		icon = GFX_goal_generic_build_tank
        prerequisite = { focus = DKR_further_militarization }
		x = 2
		y = 1
        relative_position_id = DKR_further_militarization
		cost = 10

		ai_will_do = {
			factor = 10
		}

		available = {
			has_government = neutrality
		}

		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_RESEARCH }
		completion_reward = {
			add_tech_bonus = {
				name = DKR_orgainze_war_syndicates
				bonus = 1.0
				uses = 2
				category = artillery
				category = infantry_weapons
				category = support_tech
			}
			custom_effect_tooltip = DKR_orgainze_war_syndicates_tt
			hidden_effect = {
				if = {
					limit = {
						has_dlc = "Arms Against Tyranny"
					}
					mio:DKR_oceanic_ships_organization = {
						add_mio_size = 1
					}
					mio:DKR_coastal_ships_organization = {
						add_mio_size = 1
					}
					mio:DKR_light_avia_organization = {
						add_mio_size = 1
					}
					mio:DKR_heavy_avia_organization = {
						add_mio_size = 1
					}
					mio:DKR_ugs_organization = {
						add_mio_size = 1
					}	
				}
			}
		}
	}

	focus = {
		id = DKR_local_handicraft_industry
		icon = GFX_goal_generic_construct_mil_factory
        prerequisite = { focus = DKR_orgainze_war_syndicates }
		x = 0
		y = 1
        relative_position_id = DKR_orgainze_war_syndicates
		cost = 10

		ai_will_do = {
			factor = 10
		}

		available = {
			any_owned_state = {
				OR = {
					is_core_of = ROOT
					compliance > 50
				}
				arms_factory < 1
				state_population > 1000000
				free_building_slots = {
					building = arms_factory
					size > 0
					include_locked = yes
				}
			}
		}

		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_INDUSTRY }
		completion_reward = {
			hidden_effect = {
				random_owned_controlled_state = {
					limit = {
						OR = {
							is_core_of = ROOT
							compliance > 50
						}
						arms_factory < 1
						state_population > 1350000
						free_building_slots = {
							building = arms_factory
							size > 0
							include_locked = yes
						}
						NOT = { has_state_flag = DKR_local_handicraft_industry_state }
					}
					set_state_flag = DKR_local_handicraft_industry_state
				}
				random_owned_controlled_state = {
					limit = {
						OR = {
							is_core_of = ROOT
							compliance > 50
						}
						arms_factory < 1
						state_population > 1350000
						free_building_slots = {
							building = arms_factory
							size > 0
							include_locked = yes
						}
						NOT = { has_state_flag = DKR_local_handicraft_industry_state }
					}
					set_state_flag = DKR_local_handicraft_industry_state
				}
				random_owned_controlled_state = {
					limit = {
						OR = {
							is_core_of = ROOT
							compliance > 50
						}
						arms_factory < 1
						state_population > 1350000
						free_building_slots = {
							building = arms_factory
							size > 0
							include_locked = yes
						}
						NOT = { has_state_flag = DKR_local_handicraft_industry_state }
					}
					set_state_flag = DKR_local_handicraft_industry_state
				}
				random_owned_controlled_state = {
					limit = {
						OR = {
							is_core_of = ROOT
							compliance > 50
						}
						arms_factory < 1
						state_population > 1350000
						free_building_slots = {
							building = arms_factory
							size > 0
							include_locked = yes
						}
						NOT = { has_state_flag = DKR_local_handicraft_industry_state }
					}
					set_state_flag = DKR_local_handicraft_industry_state
				}
				random_owned_controlled_state = {
					limit = {
						OR = {
							is_core_of = ROOT
							compliance > 50
						}
						arms_factory < 1
						state_population > 1350000
						free_building_slots = {
							building = arms_factory
							size > 0
							include_locked = yes
						}
						NOT = { has_state_flag = DKR_local_handicraft_industry_state }
					}
					set_state_flag = DKR_local_handicraft_industry_state
				}
				every_controlled_state = {
					limit = {
						has_state_flag = DKR_local_handicraft_industry_state
					}
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
					    type = arms_factory
					    level = 1
					    instant_build = yes
					}
				}
			}
			if = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}
				mio:DKR_ugs_organization = {
					add_mio_funds = 1000
				}	
			}
			custom_effect_tooltip = DKR_local_handicraft_industry_tt
		}
	}

	focus = {
		id = DKR_wings_of_anarchy
		icon = GFX_goal_generic_CAS
        prerequisite = { focus = DKR_further_militarization }
		x = -2
		y = 1
        relative_position_id = DKR_further_militarization
		cost = 10

		ai_will_do = {
			factor = 10
		}

		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_RESEARCH }
		completion_reward = {
			air_experience = 50
			add_doctrine_cost_reduction = {
				name = DKR_wings_of_anarchy
				cost_reduction = 0.5
				uses = 2
				category = air_doctrine
			}
			add_tech_bonus = {
				name = DKR_wings_of_anarchy
				bonus = 1.0
				uses = 1
				category = air_equipment
			}
			if = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}
				mio:DKR_light_avia_organization = {
					add_mio_funds = 1000
				}
				mio:DKR_heavy_avia_organization = {
					add_mio_funds = 1000
				}	
			}
		}
	}

	focus = {
		id = DKR_new_filibusters
		icon = GFX_goal_generic_wolf_pack
        prerequisite = { focus = DKR_wings_of_anarchy }
		x = 0
		y = 1
        relative_position_id = DKR_wings_of_anarchy
		cost = 10

		ai_will_do = {
			factor = 10
		}

		available = {
			has_government = neutrality
		}

		available_if_capitulated = no

		search_filters = { FOCUS_FILTER_RESEARCH }
		completion_reward = {
			navy_experience = 50
			add_doctrine_cost_reduction = {
				name = DKR_new_filibusters
				cost_reduction = 0.5
				uses = 2
				category = submarine_doctrine
			}
			add_tech_bonus = {
				name = DKR_new_filibusters
				bonus = 1.0
				uses = 1
				category = ss_tech
			}
			if = {
				limit = { has_dlc = "Man the Guns" }
				add_to_variable = { var_aba_mines_factor = 0.25 }
				custom_effect_tooltip = DKR_new_filibusters_tt
			}
			if = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}
				mio:DKR_oceanic_ships_organization = {
					add_mio_funds = 1000
				}
				mio:DKR_coastal_ships_organization = {
					add_mio_funds = 1000
				}	
			}
		}
	}
	focus = {
		id = DKR_special_forces
		icon = GFX_goal_generic_special_forces
        prerequisite = { focus = DKR_new_officers focus = DKR_new_filibusters focus = DKR_local_handicraft_industry }
		x = 0
		y = 1
        relative_position_id = DKR_new_officers
		cost = 10

		ai_will_do = {
			factor = 10
		}

		available = {
			has_government = neutrality
		}

		available_if_capitulated = no

		completion_reward = {
			add_to_variable = { var_aba_specforces = 0.05 }
			if = {
				limit = { has_dlc = "Arms Against Tyranny" }
				add_potential_special_forces_tree = yes
				add_doctrine_cost_reduction = {
					name = DKR_special_forces
					cost_reduction = 0.25
					uses = 2
					category = special_forces_doctrine
				}
			}
			else = {
				add_tech_bonus = {
					name = DKR_special_forces
					bonus = 1.0
					uses = 1
					category = mountaineers_tech
					category = marine_tech
					category = para_tech
				}
			}
			if = {
				limit = { has_dlc = "La Resistance" }
				add_to_variable = { var_aba_operatives = 1 }
				custom_effect_tooltip = DKR_lar_special_forces_tt
			}
			else = {
				custom_effect_tooltip = DKR_special_forces_tt
			}
		}
	}
}


