﻿focus_tree = {
	id = rk_ostland_focus
	
	country = {
		factor = 0
		
		modifier = {
			add = 10
			tag = RKO
		}
	}
	
	default = no
	
	continuous_focus_position = { x = 50 y = 1500 }

	focus = {
		id = rko_prepare_generalplan_ost_implementation
		icon = GFX_goal_osterweiterung
		
		x = 10
		y = -10
		
		available = {
		}
		
				bypass = {

		}
		
		cost = 10

		ai_will_do = {
			factor = 1
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		completion_reward = {
		
			add_political_power = 100
			add_stability = -0.05	
			
		}
		
	}
	
	focus = {
		id = rko_purge_local_resistance
		icon = GFX_goal_purge_local_resistance
		
		relative_position_id = rko_prepare_generalplan_ost_implementation
		x = 3
		y = 1
		
		available = {
		}
		
				bypass = {

		}
		
		cost = 10
		prerequisite = { focus = rko_prepare_generalplan_ost_implementation }

		ai_will_do = {
			factor = 1
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		completion_reward = {
		
			206 = { add_manpower = -6000 }
			808 = { add_manpower = -12000 }
			812 = { add_manpower = -5000 }
			11 = { add_manpower = -7000 }
			add_stability = 0.05	
			
		}
		
	}

	focus = {
		id = rko_recruit_white_ruthenian_auxiliaries
		icon = GFX_goal_white_ruthenian_army
		
		relative_position_id = rko_purge_local_resistance
		x = 0
		y = 1
		
		available = {
		}
		
				bypass = {

		}
		
		cost = 10
		prerequisite = { focus = rko_purge_local_resistance }

		ai_will_do = {
			factor = 1
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		completion_reward = {
		
			division_template = {
				name = "Wehrmacht Auxiliaries"
				priority = 2
				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 }
				}
			}
			
			206 = {
				create_unit = {
					division = "name = \"1. Weißruthenische Infanteriedivision\" division_template = \"Wehrmacht Auxiliaries\" start_experience_factor = 0.5" 
					owner = RKO
				}
				create_unit = {
					division = "name = \"2. Weißruthenische Infanteriedivision\" division_template = \"Wehrmacht Auxiliaries\" start_experience_factor = 0.5" 
					owner = RKO
				}
			}
			
			207 = {
				create_unit = {
					division = "name = \"3. Weißruthenische Infanteriedivision\" division_template = \"Wehrmacht Auxiliaries\" start_experience_factor = 0.5" 
					owner = RKO
				}
				create_unit = {
					division = "name = \"4. Weißruthenische Infanteriedivision\" division_template = \"Wehrmacht Auxiliaries\" start_experience_factor = 0.5" 
					owner = RKO
				}
			}
			
		}	
		
	}
	
	focus = {
		id = rko_exploit_white_ruthenian_labor
		icon = GFX_goal_forced_labor
		
		relative_position_id = rko_recruit_white_ruthenian_auxiliaries
		x = 0
		y = 1
		
		available = {
		}
		
				bypass = {

		}
		
		cost = 10
		prerequisite = { focus = rko_recruit_white_ruthenian_auxiliaries }

		ai_will_do = {
			factor = 1
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		completion_reward = {
		
			add_stability = -0.05
			206 = {
				add_extra_state_shared_building_slots = 3
				add_building_construction = {
				type = industrial_complex
				level = 3
				instant_build = yes
				}	
			}	
			
		}
		
	}

	focus = {
		id = rko_extend_eastern_rail_network
		icon = GFX_goal_eastern_rail
		
		relative_position_id = rko_prepare_generalplan_ost_implementation
		x = -3
		y = 1
		
		available = {
		}
		
				bypass = {

		}
		
		cost = 10
		prerequisite = { focus = rko_prepare_generalplan_ost_implementation }

		ai_will_do = {
			factor = 1
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		completion_reward = {
		
				build_railway = {
					level = 2
					path = { 6321 3544 3392 11370 }
				}
				
				build_railway = {
					level = 2
					path = { 6321 3544 6296 }
				}
				
				build_railway = {
					level = 2
					path = { 6321 3544 9340 }
				}
				
				build_railway = {
					level = 2
					path = { 6321 3544 3152 }
				}
			
		}
		
	}
	
	focus = {
		id = rko_infrastructure_project
		icon = GFX_goal_eastern_infrastructure
		
		relative_position_id = rko_extend_eastern_rail_network
		x = 0
		y = 1
		
		available = {
		}
		
				bypass = {

		}
		
		cost = 10
		prerequisite = { focus = rko_extend_eastern_rail_network }

		ai_will_do = {
			factor = 1
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		completion_reward = {
		
			206 = {
				add_building_construction = {
				type = infrastructure
				level = 2
				instant_build = yes
				}
			}
			
			808 = {
				add_building_construction = {
				type = infrastructure
				level = 2
				instant_build = yes
				}
			}
			
			812 = {
				add_building_construction = {
				type = infrastructure
				level = 2
				instant_build = yes
				}
			}
			
			11 = {
				add_building_construction = {
				type = infrastructure
				level = 2
				instant_build = yes
				}
			}
			
		}
		
	}
	
	focus = {
		id = rko_support_german_war_machinery
		icon = GFX_goal_eastern_arms
		
		relative_position_id = rko_infrastructure_project
		x = 0
		y = 1
		
		available = {
		}
		
				bypass = {

		}
		
		cost = 10
		prerequisite = { focus = rko_infrastructure_project }

		ai_will_do = {
			factor = 1
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		completion_reward = {
		
			add_war_support = 0.05
			
			95 = {
				add_extra_state_shared_building_slots = 3
				add_building_construction = {
				type = arms_factory
				level = 3
				instant_build = yes
				}
			}
			
		}
		
	}

	focus = {
		id = rko_mobilize_german_settlers
		icon = GFX_goal_ger_discus
		
		relative_position_id = rko_prepare_generalplan_ost_implementation
		x = 0
		y = 2
		
		available = {
		}
		
				bypass = {

		}
		
		cost = 10
		prerequisite = { focus = rko_purge_local_resistance }
		prerequisite = { focus = rko_extend_eastern_rail_network }

		ai_will_do = {
			factor = 1
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		completion_reward = {
		
			add_ideas = german_settlers
			
		}
		
	}
	
	focus = {
		id = rko_consolidate_power
		icon = GFX_goal_volkshalle
		
		relative_position_id = rko_mobilize_german_settlers
		x = 0
		y = 2
		
		available = {
		}
		
				bypass = {

		}
		
		cost = 10
		prerequisite = { focus = rko_mobilize_german_settlers }
		prerequisite = { focus = rko_support_german_war_machinery }
		prerequisite = { focus = rko_exploit_white_ruthenian_labor }

		ai_will_do = {
			factor = 1
		}

		cancel_if_invalid = yes
		continue_if_invalid = no
		available_if_capitulated = no

		completion_reward = {
		
			add_stability = 0.15
			add_manpower = 30000
			
			division_template = {
				name = "Volksdeutscher Selbstschutz"
				priority = 2
				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 }
					artillery = { x = 0 y = 1 }
				}
			}
			
			206 = {
				create_unit = {
					division = "name = \"1. Volksdeutsche Infanteriedivision\" division_template = \"Volksdeutscher Selbstschutz\" start_experience_factor = 0.5" 
					owner = RKO
				}
				create_unit = {
					division = "name = \"2. Volksdeutsche Infanteriedivision\" division_template = \"Volksdeutscher Selbstschutz\" start_experience_factor = 0.5" 
					owner = RKO
				}
			}
			
			207 = {
				create_unit = {
					division = "name = \"3. Volksdeutsche Infanteriedivision\" division_template = \"Volksdeutscher Selbstschutz\" start_experience_factor = 0.5" 
					owner = RKO
				}
				create_unit = {
					division = "name = \"4. Volksdeutsche Infanteriedivision\" division_template = \"Volksdeutscher Selbstschutz\" start_experience_factor = 0.5" 
					owner = RKO
				}
			}
			
			
		}
		
	}
	
}