### search_filters = {FOCUS_FILTER_POLITICAL}
### search_filters = {FOCUS_FILTER_RESEARCH}
### search_filters = {FOCUS_FILTER_INDUSTRY}
### search_filters = {FOCUS_FILTER_STABILITY}
### search_filters = {FOCUS_FILTER_WAR_SUPPORT}
### search_filters = {FOCUS_FILTER_MANPOWER}
### search_filters = {FOCUS_FILTER_ANNEXATION}

focus_tree = {
	id = rksdonwolga_tree
	
	country = {
		factor = 0
		modifier = {
			add = 10
			tag = RDW
		}
	}

	default = no

	continuous_focus_position = { x = 1600 y = 1000 }  
	initial_show_position = {
		x = 15
		y = 15
	}

	focus = {
		id = RDW_grant_dietrich
		icon = GFX_goal_generic_demand_territory
		#prerequisite = { focus = }

		x = 11
		y = 0
		#relative_position_id = 
		cost = 2
		ai_will_do = {
			factor = 10
		}
		available = {
		}

		search_filters = {}

		completion_reward = {
		    add_stability = -0.15
			add_political_power = 75
			add_country_leader_trait = dictator
			
		}
	}

	
	focus = {
		id = RDW_gather_guns
		icon = GFX_goal_generic_small_arms
		prerequisite = { focus = RDW_grant_dietrich }

		x = -4
		y = 2
		relative_position_id = RDW_grant_dietrich
		cost = 8
		ai_will_do = {
			factor = 10
		}
		available = {
		}

		search_filters = {}

		completion_reward = {
		    add_equipment_to_stockpile = {
                type = infantry_equipment
                amount = 6500
                producer = SOV
            }
		}
	}
	
		
	focus = {
		id = RDW_determination
		icon = GFX_goal_generic_military_sphere
		prerequisite = { focus = RDW_gather_guns }

		x = 0
		y = 2
		relative_position_id = RDW_gather_guns
		cost = 8
		ai_will_do = {
			factor = 10
		}
		available = {
		}

		search_filters = {}

		completion_reward = {
		    add_war_support = 0.05
			
			add_ideas = RDW_determination_idea
			
		}
	}
	
	focus = {
		id = RDW_army_research_one
		icon = GFX_goal_generic_army_doctrines
		prerequisite = { focus = RDW_gather_guns }

		x = -3
		y = 1
		relative_position_id = RDW_gather_guns
		cost = 8
		ai_will_do = {
			factor = 10
		}
		available = {
		}

		search_filters = {}

		completion_reward = {
		    army_experience = 10
		
		    add_doctrine_cost_reduction = {
				name = RDW_land_doc_bonus
				cost_reduction = 0.5
				uses = 1
				category = land_doctrine
			}
		}
	}
	
	
	focus = {
		id = RDW_army_research_artillery
		icon = GFX_goal_generic_army_artillery2
		prerequisite = { focus = RDW_army_research_one }

		x = 1
		y = 1
		relative_position_id = RDW_army_research_one
		cost = 8
		ai_will_do = {
			factor = 10
		}
		available = {
		}

		search_filters = {}

		completion_reward = {
		    add_tech_bonus = {
				name = RDW_artillery
				bonus = 1.0
				uses = 1
				category = artillery
			}
		}
	}
	
	focus = {
		id = RDW_army_research_motorized_equipment
		icon = GFX_goal_generic_army_motorized
		prerequisite = { focus = RDW_army_research_one }

		x = -1
		y = 1
		relative_position_id = RDW_army_research_one
		cost = 8
		ai_will_do = {
			factor = 10
		}
		available = {
		}

		search_filters = {}

		completion_reward = {
		    add_tech_bonus = {
				name = RDW_motorized_equipment
				bonus = 1.0
				uses = 1
				category = motorized_equipment
			}
		}
	}
	
	focus = {
		id = RDW_army_buff_attack
		icon = GFX_goal_generic_axis_build_infantry
		prerequisite = { focus = RDW_army_research_artillery }
		mutually_exclusive = { focus = RDW_army_buff_defense }

		x = 0
		y = 1
		relative_position_id = RDW_army_research_artillery
		cost = 8
		ai_will_do = {
			factor = 10
		}
		available = {
		}

		search_filters = {}

		completion_reward = {
		    add_ideas = RDW_attack_buff
			
		}
	}
	
	focus = {
		id = RDW_army_buff_defense
		icon = GFX_goal_generic_defence
		prerequisite = { focus = RDW_army_research_motorized_equipment }
		mutually_exclusive = { focus = RDW_army_buff_attack }

		x = 0
		y = 1
		relative_position_id = RDW_army_research_motorized_equipment
		cost = 8
		ai_will_do = {
			factor = 10
		}
		available = {
		}

		search_filters = {}

		completion_reward = {
		    add_ideas = RDW_defense_buff
			
		}
	}
	
	focus = {
		id = RDW_army_research_two
		icon = GFX_goal_generic_army_doctrines
		prerequisite = { focus = RDW_army_buff_attack focus = RDW_army_buff_defense }


		x = -1
		y = 1
		relative_position_id = RDW_army_buff_attack
		cost = 8
		ai_will_do = {
			factor = 10
		}
		available = {
		}

		search_filters = {}

		completion_reward = {
			
			add_doctrine_cost_reduction = {
				name = RDW_land_doc_bonus
				cost_reduction = 0.5
				uses = 1
				category = land_doctrine
			}
		}
	}
	
	focus = {
		id = RDW_army_research_slot
		icon = GFX_focus_research
		prerequisite = { focus = RDW_army_research_two }

		x = 0
		y = 1
		relative_position_id = RDW_army_research_two
		cost = 8
		ai_will_do = {
			factor = 10
		}
		available = {
		}

		search_filters = {}

		completion_reward = {
		    add_research_slot = 1
		}
	}
	
	focus = {
		id = RDW_volga_defense
		icon = GFX_goal_generic_fortify_city
		prerequisite = { focus = RDW_determination }


		x = 0
		y = 2
		relative_position_id = RDW_determination
		cost = 8
		ai_will_do = {
			factor = 10
		}
		available = {
		    RDW = {
			    controls_state = 217
				controls_state = 265
				controls_state = 829
				controls_state = 239

			}
		}

		search_filters = {}

		completion_reward = {
		
		    custom_effect_tooltip = 1_RDW_tooltip
			
			hidden_effect = {
			    
				217 = {
				    add_building_construction = {
				    type = bunker
				    province = 498
				    level = 1
				    }
			    }
				
				217 = {
				    add_building_construction = {
				    type = bunker
				    province = 3529
				    level = 2
				    }
			    }
				
			    217 = {
				    add_building_construction = {
				    type = bunker
				    province = 3555
				    level = 1
				    }
			    }
			    
				265 = {
				    add_building_construction = {
				    type = bunker
				    province = 6602
				    level = 1
				    }
			    }
				
				829 = {
				    add_building_construction = {
				    type = bunker
				    province = 6506
				    level = 1
				    }
			    }
				
			    829 = {
				    add_building_construction = {
				    type = bunker
				    province = 9475
				    level = 1
				    }
			    }
				
			    829 = {
				    add_building_construction = {
				    type = bunker
				    province = 6539
				    level = 1
				    }
			    }
			
			    239 = {
				    add_building_construction = {
				    type = bunker
				    province = 3578
				    level = 2
				    }
			    }
				
				239 = {
				    add_building_construction = {
				    type = bunker
				    province = 483
				    level = 2
				    }
			    }
				
				239 = {
				    add_building_construction = {
				    type = bunker
				    province = 3477
				    level = 2
				    }
			    }
				
				239 = {
				    add_building_construction = {
				    type = bunker
				    province = 326
				    level = 2
				    }
			    }
				
				239 = {
				    add_building_construction = {
				    type = bunker
				    province = 3316
				    level = 2
				    }
			    }
				
				239 = {
				    add_building_construction = {
				    type = bunker
				    province = 6366
				    level = 2
				    }
			    }
			
			}
		}
	}
	
	focus = {
		id = RDW_stabilise_region
		icon = GFX_goal_generic_political_pressure
		prerequisite = { focus = RDW_grant_dietrich }


		x = 4
		y = 1
		relative_position_id = RDW_grant_dietrich
		cost = 8
		ai_will_do = {
			factor = 10
		}
		available = {
		}

		search_filters = {}

		completion_reward = {
			
			add_stability = 0.05
		}
	}
	
	focus = {
		id = RDW_segregate_population
		icon = GFX_goal_generic_forceful_treaty
		prerequisite = { focus = RDW_stabilise_region }


		x = 0
		y = 1
		relative_position_id = RDW_stabilise_region
		cost = 8
		ai_will_do = {
			factor = 10
		}
		available = {
		}

		search_filters = {}

		completion_reward = {
			
			add_stability = -0.10
			add_political_power = 50
		}
	}
	
	focus = {
		id = RDW_invite_german_settlers
		icon = GFX_goal_generic_intelligence_exchange
		prerequisite = { focus = RDW_segregate_population }


		x = -2
		y = 1
		relative_position_id = RDW_segregate_population
		cost = 8
		ai_will_do = {
			factor = 10
		}
		available = {
		}

		search_filters = {}

		completion_reward = {
			
			add_manpower = 30000
			add_ideas = RDW_manpower
		}
	}
	
	focus = {
		id = RDW_buy_equipments
		icon = GFX_goal_generic_military_deal
		prerequisite = { focus = RDW_gather_guns }


		x = 2
		y = 1
		relative_position_id = RDW_gather_guns
		cost = 8
		ai_will_do = {
			factor = 10
		}
		available = {
		}

		search_filters = {}

		completion_reward = {
			
			add_equipment_to_stockpile = {
                type = infantry_equipment
                amount = 1000
                producer = GER
            }
			add_equipment_to_stockpile = {
                type = artillery_equipment
                amount = 100
                producer = GER
            }
			add_equipment_to_stockpile = {
                type = support_equipment
                amount = 50
                producer = GER
            }
			
			add_timed_idea = { idea = RDW_buying_stuff days = 180 }
		}
	}
	
	focus = {
		id = RDW_train_professional_army
		icon = GFX_goal_rhineland
		prerequisite = { focus = RDW_buy_equipments }
		prerequisite = { focus = RDW_invite_german_settlers }


		x = 2
		y = 3
		relative_position_id = RDW_buy_equipments
		cost = 8
		ai_will_do = {
			factor = 100
		}
		available = {
		}

		search_filters = {}

		completion_reward = {
			
			add_stability = 0.05
			
			division_template = {
				name = "Don-Wolgisch Division"
				priority = 1
				division_names_group = GER_INF_01
				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 }
					artillery_brigade = { x = 2 y = 1 }
					artillery_brigade = { x = 2 y = 2 }


		
				}
				support = {
				    engineer = { x = 0 y = 0 }
				}
			}
			
			218 = {
				create_unit = {
					division = "name = \"1. Don-Wolgisch Division\" division_template = \"Don-Wolgisch Division\" start_experience_factor = 0.5" 
					owner = RDW
				}
				
			}
			
			217 = {
			    create_unit = {
					division = "name = \"2. Don-Wolgisch Division\" division_template = \"Don-Wolgisch Division\" start_experience_factor = 0.5" 
					owner = RDW
				}
	        }
			
			239 = {
			    create_unit = {
					division = "name = \"3. Don-Wolgisch Division\" division_template = \"Don-Wolgisch Division\" start_experience_factor = 0.5" 
					owner = RDW
				}
	        }

			
			829 = {
			    create_unit = {
					division = "name = \"4. Don-Wolgisch Division\" division_template = \"Don-Wolgisch Division\" start_experience_factor = 0.5" 
					owner = RDW
				}
				create_unit = {
					division = "name = \"5. Don-Wolgisch Division\" division_template = \"Don-Wolgisch Division\" start_experience_factor = 0.5" 
					owner = RDW
				}
	        }
		}
	}
	
	
	focus = {
		id = RDW_destroy_the_bolsheviks
		icon = GFX_goal_generic_war_with_comintern
		prerequisite = { focus = RDW_train_professional_army }
		
         

		x = 0
		y = 2
		relative_position_id = RDW_train_professional_army
		cost = 8
		ai_will_do = {
			factor = 100
		}
		available = {
		}

		search_filters = {}

		completion_reward = {
			
			remove_ideas = RDW_bolshevik_resistance
		}
	}
	
	focus = {
		id = RDW_expand_business
		icon = GFX_goal_generic_production
		prerequisite = { focus = RDW_invite_german_settlers focus = RDW_expand_industries }


		x = 0
		y = 2
		relative_position_id = RDW_invite_german_settlers
		cost = 8
		ai_will_do = {
			factor = 10
		}
		available = {
		}

		search_filters = {}

		completion_reward = {
			
			add_ideas = RDW_production
		}
	}
	
	focus = {
		id = RDW_serfdom
		icon = GFX_goal_generic_construction2
		prerequisite = { focus = RDW_segregate_population }


		x = 0
		y = 1
		relative_position_id = RDW_segregate_population
		cost = 8
		ai_will_do = {
			factor = 10
		}
		available = {
		}

		search_filters = {}

		completion_reward = {
			
			add_ideas = RDW_forcedlabor
		}
	}
	
	focus = {
		id = RDW_expand_industries
		icon = GFX_goal_generic_construct_civ_factory
		prerequisite = { focus = RDW_serfdom }


		x = 0
		y = 1
		relative_position_id = RDW_serfdom
		cost = 8
		ai_will_do = {
			factor = 10
		}
		available = {
		}

		search_filters = {}

		completion_reward = {
			
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
			
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
		}
	}
	
	focus = {
		id = RDW_expand_industries_two
		icon = GFX_goal_generic_construct_civ_factory
		prerequisite = { focus = RDW_expand_industries }


		x = 0
		y = 1
		relative_position_id = RDW_expand_industries
		cost = 8
		ai_will_do = {
			factor = 10
		}
		available = {
		}

		search_filters = {}

		completion_reward = {
			
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
			
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 2
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 2
					instant_build = yes
				}
			}

		}
	}
	
	focus = {
		id = RDW_expand_milfactories
		icon = GFX_goal_generic_construct_mil_factory
		prerequisite = { focus = RDW_serfdom }


		x = 4
		y = 1
		relative_position_id = RDW_serfdom
		cost = 8
		ai_will_do = {
			factor = 10
		}
		available = {
		}

		search_filters = {}

		completion_reward = {
			
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = arms_factory
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
			
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = arms_factory
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}

		}
	}
	
	focus = {
		id = RDW_expand_milfactories_two
		icon = GFX_goal_generic_construct_mil_factory
		prerequisite = { focus = RDW_expand_milfactories }


		x = 0
		y = 1
		relative_position_id = RDW_expand_milfactories
		cost = 8
		ai_will_do = {
			factor = 10
		}
		available = {
		}

		search_filters = {}

		completion_reward = {
			
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = arms_factory
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
			
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = arms_factory
						size > 2
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = arms_factory
					level = 2
					instant_build = yes
				}
			}

		}
	}
	
	focus = {
		id = RDW_naval_dockyard
		icon = GFX_goal_generic_construct_naval_dockyard
		prerequisite = { focus = RDW_expand_milfactories_two }


		x = 0
		y = 1
		relative_position_id = RDW_expand_milfactories_two
		cost = 8
		ai_will_do = {
			factor = 10
		}
		available = {
		}

		search_filters = {}

		completion_reward = {
			
			218 = {
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = dockyard
					level = 2
					instant_build = yes
				}
				add_building_construction = {
			    type = naval_base
			    province = 9417
			    level = 3
				}
				
			}
		}
	}
	
	focus = {
		id = RDW_infrastructure
		icon = GFX_goal_generic_construct_infrastructure
		prerequisite = { focus = RDW_serfdom }
		

		x = 2
		y = 1
		relative_position_id = RDW_serfdom
		cost = 8
		ai_will_do = {
			factor = 10
		}
		available = {
		}

		search_filters = {}

		completion_reward = {
		
		    218 = {
				add_building_construction = {
				type = infrastructure
				level = 1
				instant_build = yes
				}
			}
			
			245 = {
				add_building_construction = {
				type = infrastructure
				level = 1
				instant_build = yes
				}
			}
			
		    217 = {
				add_building_construction = {
				type = infrastructure
				level = 1
				instant_build = yes
				}
			}
			
			265 = {
				add_building_construction = {
				type = infrastructure
				level = 1
				instant_build = yes
				}
			}
			
			829 = {
				add_building_construction = {
				type = infrastructure
				level = 1
				instant_build = yes
				}
			}
			
			239 = {
				add_building_construction = {
				type = infrastructure
				level = 1
				instant_build = yes
				}
			}
			
			401 = {
				add_building_construction = {
				type = infrastructure
				level = 1
				instant_build = yes
				}
			}
			
		}
	}
	
	focus = {
		id = RDW_hindenburg_airport
		icon = GFX_goal_generic_air_fighter
		prerequisite = { focus = RDW_infrastructure }
		

		x = 0
		y = 1
		relative_position_id = RDW_infrastructure
		cost = 8
		ai_will_do = {
			factor = 10
		}
		available = {
		}

		search_filters = {}

		completion_reward = {
		    217 = {
				add_building_construction = {
				type = air_base
				level = 5
				instant_build = yes
				}
			}
		}
	}
	
	
	focus = {
		id = RDW_great_wolga
		icon = GFX_goal_generic_consumer_goods
		prerequisite = { focus = RDW_expand_industries_two }
		prerequisite = { focus = RDW_expand_business }
		

		x = 1
		y = 4
		relative_position_id = RDW_expand_business
		cost = 8
		ai_will_do = {
			factor = 10
		}
		available = {
		}

		search_filters = {}

		completion_reward = {
		    add_political_power = 100
			add_stability = 0.10
			
			add_ideas = RDW_breadbasket
		}
	}
	
	focus = {
		id = RDW_empower_the_fascists
		icon = GFX_goal_generic_national_unity
		prerequisite = { focus = RDW_stabilise_region }
		

		x = 2
		y = 1
		relative_position_id = RDW_stabilise_region
		cost = 8
		ai_will_do = {
			factor = 10
		}
		available = {
		}

		search_filters = {}

		completion_reward = {
		    add_political_power = 25
			add_popularity = {
                ideology = fascism
                popularity = 0.25
            }
		}
	}
	
	focus = {
		id = RDW_german_victory
		icon = GFX_goal_support_fascism
		prerequisite = { focus = RDW_empower_the_fascists }
		

		x = 0
		y = 1
		relative_position_id = RDW_empower_the_fascists
		cost = 8
		ai_will_do = {
			factor = 10
		}
		available = {
		
		NOT = { has_war_with = SOV }
		}

		search_filters = {}

		completion_reward = {
		    add_political_power = 50
			add_stability = 0.15
		}
	}
	
	focus = {
		id = RDW_german_research
		icon = GFX_focus_research
		prerequisite = { focus = RDW_hindenburg_airport }
		

		x = 0
		y = 1
		relative_position_id = RDW_hindenburg_airport
		cost = 8
		ai_will_do = {
			factor = 10
		}
		available = {

		}

		search_filters = {}

		completion_reward = {
		    add_research_slot = 1
		}
	}
	
	focus = {
		id = RDW_military_state
		icon = GFX_focus_generic_military_mission
		prerequisite = { focus = RDW_army_research_slot }
		prerequisite = { focus = RDW_volga_defense }
		prerequisite = { focus = RDW_destroy_the_bolsheviks }
		

		x = 3
		y = 2
		relative_position_id = RDW_army_research_slot
		cost = 8
		ai_will_do = {
			factor = 10
		}
		available = {

		}

		search_filters = {}

		completion_reward = {
		    add_stability = 0.1
			add_ideas = RDW_military_buff
			
			if = {
				limit = {
					NOT = { has_idea = war_economy }
					NOT = { has_idea = tot_economic_mobilisation }
				}
				add_ideas = war_economy
			}
		}
	}
	
	focus = {
		id = RDW_finalise_plan
		icon = GFX_goal_rksplus_generalplanost
		prerequisite = { focus = RDW_military_state }
		prerequisite = { focus = RDW_great_wolga }

		

		x = 0
		y = 10
		relative_position_id = RDW_grant_dietrich
		cost = 8
		ai_will_do = {
			factor = 10
		}
		available = {

		}

		search_filters = {}

		completion_reward = {
		    add_political_power = 100
		}
	}
	
	focus = {
		id = RDW_germanization
		icon = GFX_focus_ger_reichskommisariats
		prerequisite = { focus = RDW_finalise_plan }

		

		x = 0
		y = 2
		relative_position_id = RDW_finalise_plan
		cost = 8
		ai_will_do = {
			factor = 10
		}
		available = {

		}

		search_filters = {}

		completion_reward = {
		    
	        add_manpower = 75000
			add_stability = 0.25
		}
	}

}

