
#######################################
#######################################
#######################################
#POLITICAL TREE############################
#######################################
#######################################
#######################################


shared_focus = {
	id = eds_imperial_focus
	icon = GFX_focus_generic_self_management
	cost = 50
	x = 20
	y = 0


	ai_will_do = { 
		factor = 1
	}    
    completion_reward = {
		#log = "[GetDateText]: [Root.GetName]: eds_imperial_focus"
		add_political_power = 250
		add_stability = 0.05
	}
}


#############
#############
#############
#STATE FOCUS PATH######
#############
#############
#############

shared_focus = {
	id = eds_internal_affairs
	icon = GFX_goal_generic_improve_relations
	cost = 25
	x = -6
	y = 1
	relative_position_id = eds_imperial_focus
    prerequisite = {
		focus = eds_imperial_focus
	}

	mutually_exclusive = {
		focus = eds_big_brain_time
		focus = eds_military_politics
	}

	ai_will_do = { 
		factor = 1
	}    
    completion_reward = {
		#log = "[GetDateText]: [Root.GetName]: eds_internal_affairs"
		add_stability = 0.05
	}
}

#left main path, let states do shid
shared_focus = {
	id = eds_duchy_rights
	icon = GFX_goal_tfv_strengthen_commonwealth_ties
	cost = 25
	x = 2
	y = 1
	relative_position_id = eds_internal_affairs
    prerequisite = {
		focus = eds_internal_affairs
	}

	mutually_exclusive = {
		focus = eds_the_greater_sovereign
	}

	ai_will_do = { 
		factor = 1
	}    
    completion_reward = {
		#log = "[GetDateText]: [Root.GetName]: eds_cantrefi_rights"
		add_political_power = 150
		hidden_effect = {
			every_core_state = {
				add_dynamic_modifier  = {
					modifier = duchy_autonomy_mod
				}
				set_base_autonomy_level = yes
			}
		}
		custom_effect_tooltip = eds_duchy_rights_t
	}
}

#right subpath, states are given their coveted freedom and return to feudalisms
shared_focus = {
	id = eds_freedom_isnt_free
	icon = GFX_focus_generic_manpower
	cost = 50
	x = 1
	y = 1
	relative_position_id = eds_duchy_rights
    prerequisite = {
		focus = eds_duchy_rights
	}

	mutually_exclusive = {
		focus = eds_a_burden_relieved
	}

	ai_will_do = { 
		factor = 1
	}    
    completion_reward = {
		#log = "[GetDateText]: [Root.GetName]: eds_freedom_isnt_free"
		add_political_power = 50
		add_stability = -0.10
		custom_effect_tooltip = eds_freedom_isnt_free_t
		hidden_effect = {
			every_core_state = {
				remove_dynamic_modifier = {
					modifier = duchy_autonomy_mod
				}
				add_dynamic_modifier  = {
					modifier = duchy_militant_autonomy_mod
				}
				set_militant_autonomy_level = yes
			}
		}
	}
}

shared_focus = {#MORE CONTENT- Make the 'levy leader' thing a trait new generals can have
	id = eds_lord_generals
	icon = GFX_focus_generic_home_defense
	cost = 50
	x = 0
	y = 1
	relative_position_id = eds_freedom_isnt_free
    prerequisite = {
		focus = eds_freedom_isnt_free
	}

	ai_will_do = { 
		factor = 1
	}

    completion_reward = {
		add_political_power = 50
		#log = "[GetDateText]: [Root.GetName]: eds_lord_generals"
		add_ideas = eds_idea_levy_leaders		
		add_corps_commander_role = {
			Character = Aelfwynn
			traits = {}
			skill = 6
			attack_skill = 7
			defense_skill = 7
			planning_skill = 4
			logistics_skill = 5
		}
		add_corps_commander_role = {
			Character = Aethelred
			traits = { cavalry_officer cavalry_leader cavalry_expert}
			skill = 6
			attack_skill = 6
			defense_skill = 6
			planning_skill = 5
			logistics_skill = 7
		}
		add_advisor_role = {
			Character = Aethelred
			advisor = {
				slot = high_command
				idea_token = Aethelred_1
				cost = 50
				ledger = military
				traits = {
					army_cavalry_3
				}
			}			
		}
	}
}

#left subpath, states doing stuff relieves the Crown and allows smoother broad politics
shared_focus = {
	id = eds_a_burden_relieved
	icon = GFX_focus_generic_concessions
	cost = 50
	x = -1
	y = 1
	relative_position_id = eds_duchy_rights
    prerequisite = {
		focus = eds_duchy_rights
	}

	mutually_exclusive = {
		focus = eds_freedom_isnt_free
	}

	ai_will_do = { 
		factor = 1
	}    
    completion_reward = {
		#log = "[GetDateText]: [Root.GetName]: eds_a_burden_relieved"
		add_political_power = 200
	}
}

shared_focus = {
	id = eds_economc_freedom
	icon = GFX_goal_generic_air_production
	cost = 50
	x = 0
	y = 1
	relative_position_id = eds_a_burden_relieved
    prerequisite = {
		focus = eds_a_burden_relieved
	}

	ai_will_do = { 
		factor = 1
	}    
    completion_reward = {
		#log = "[GetDateText]: [Root.GetName]: eds_economc_freedom"
		add_ideas = eds_idea_economic_autonomy
	}
}

#right main path finisher
shared_focus = {
	id = eds_old_powers_restored
	icon = GFX_goal_generic_major_alliance
	cost = 50
	x = 1
	y = 1
	relative_position_id = eds_economc_freedom
    prerequisite = {
		focus = eds_economc_freedom
		focus = eds_lord_generals
	}

	ai_will_do = { 
		factor = 1
	}    
    completion_reward = {
		#log = "[GetDateText]: [Root.GetName]: eds_economc_freedom"
		if = {
			limit = {has_completed_focus = eds_economc_freedom}
			custom_effect_tooltip = eds_old_powers_restored_ta
			swap_ideas = {
				add_idea = eds_idea_economic_autonomy_b
				remove_idea = eds_idea_economic_autonomy
			}
			hidden_effect = {
				every_core_state = {
					remove_dynamic_modifier = {
						modifier = duchy_autonomy_mod
					}
					add_dynamic_modifier  = {
						modifier = duchy_elevated_autonomy_mod
					}
					set_elevated_autonomy_level = yes
				}
			}
		}
		else_if = {
			limit = {has_completed_focus = eds_lord_generals}
			custom_effect_tooltip = eds_old_powers_restored_tb
			swap_ideas = {
				add_idea = eds_idea_levy_leaders_b
				remove_idea = eds_idea_levy_leaders
			}
			hidden_effect = {
				every_core_state = {
					remove_dynamic_modifier = {
						modifier = duchy_militant_autonomy_mod
					}
					add_dynamic_modifier  = {
						modifier = duchy_elevated_militant_autonomy_mod
					}
					set_elevated_militant_autonomy_level = yes
				}
			}
		}
		else = {
			custom_effect_tooltip = eds_old_powers_restored_t
		}
	}
}

#Left main path, a focus on state control over all matters
shared_focus = {
	id = eds_the_greater_sovereign
	icon = GFX_focus_generic_monarchy_1
	cost = 25
	x = -2
	y = 1
	relative_position_id = eds_internal_affairs
    prerequisite = {
		focus = eds_internal_affairs
	}

	mutually_exclusive = {
		focus = eds_duchy_rights
	}

	ai_will_do = { 
		factor = 1
	}    
    completion_reward = {
		#log = "[GetDateText]: [Root.GetName]: eds_the_greater_sovereign"
		add_stability = 0.10
	}
}

#right path, total crown authority
shared_focus = {
	id = eds_complete_submission
	icon = GFX_goal_generic_forceful_treaty
	cost = 50
	x = -1
	y = 1
	relative_position_id = eds_the_greater_sovereign
    prerequisite = {
		focus = eds_the_greater_sovereign
	}

	mutually_exclusive = {
		focus = eds_increased_integration
	}

	ai_will_do = { 
		factor = 1
	}    
    completion_reward = {
		#log = "[GetDateText]: [Root.GetName]: eds_complete_submission"
		add_political_power = 50
		add_ideas = eds_idea_crown_authority
		every_core_state = {
			add_state_modifier = {
				modifier = {
					local_factories = 0.02
				}
			}
		}
		hidden_effect = {
			#country_event = {id = oevent.10 hours = 1}
			force_update_factory_count = yes
		}
	}
}

shared_focus = {
	id = eds_imperial_lands
	icon = GFX_goal_generic_construct_civ_factory
	cost = 50
	x = 0
	y = 1
	relative_position_id = eds_complete_submission
    prerequisite = {
		focus = eds_complete_submission
	}

	ai_will_do = { 
		factor = 1
	}    
    completion_reward = {
		#log = "[GetDateText]: [Root.GetName]: eds_imperial_lands"
		custom_effect_tooltip = eds_imperial_lands_t #fuck u spaghett paradox code that makes a broken tooltip
		hidden_effect = {
			every_core_state = {
				add_state_modifier = {
					modifier = {
						local_building_slots = 1
						local_factories = 0.03
					}
				}
			}
		}
		hidden_effect = {
			#country_event = {id = oevent.10 hours = 1}
			force_update_factory_count = yes
		}
	}
}

#left path, heavy crown authority
shared_focus = {
	id = eds_increased_integration
	icon = GFX_focus_generic_treaty
	cost = 50
	x = 1
	y = 1
	relative_position_id = eds_the_greater_sovereign
    prerequisite = {
		focus = eds_the_greater_sovereign
	}

	mutually_exclusive = {
		focus = eds_complete_submission
	}

	ai_will_do = { 
		factor = 1
	}    
    completion_reward = {
		#log = "[GetDateText]: [Root.GetName]: eds_increased_integration"
		add_political_power = 50
		add_ideas = eds_idea_integrated_penaethiaid
	}
}

shared_focus = {
	id = eds_risen_advisors
	icon = GFX_goal_generic_demand_territory
	cost = 50
	x = 0
	y = 1
	relative_position_id = eds_increased_integration
    prerequisite = {
		focus = eds_increased_integration
	}

	ai_will_do = { 
		factor = 1
	}    
    completion_reward = {
		#log = "[GetDateText]: [Root.GetName]: eds_risen_advisors"
		add_corps_commander_role = {
			Character = Aelfwynn
			traits = {}
			skill = 6
			attack_skill = 7
			defense_skill = 7
			planning_skill = 4
			logistics_skill = 5
		}
		add_corps_commander_role = {
			Character = Aethelred
			traits = { cavalry_officer cavalry_leader cavalry_expert}
			skill = 6
			attack_skill = 6
			defense_skill = 6
			planning_skill = 5
			logistics_skill = 7
		}
		add_advisor_role = {
			Character = Aethelred
			advisor = {
				slot = high_command
				idea_token = Aethelred_1
				cost = 50
				ledger = military
				traits = {
					army_cavalry_3
				}
			}			
		}
		
		add_advisor_role = {
			Character = Aethelred
			advisor = {
				slot = political_advisor
				idea_token = Aethelred_2
				cost = 50
				#ledger = military
				traits = {
					prince_of_terror
				}
			}
		}
	}
}

shared_focus = {
	id = eds_centralized_might
	icon = GFX_goal_generic_military_deal
	cost = 50
	x = -1
	y = 1
	relative_position_id = eds_risen_advisors
    prerequisite = {
		focus = eds_risen_advisors
		focus = eds_imperial_lands
	}

	ai_will_do = { 
		factor = 1
	}    
    completion_reward = {
		#log = "[GetDateText]: [Root.GetName]: eds_centralized_might"
		add_political_power = 200
		add_stability = 0.10
		every_core_state = {
			add_state_modifier = {
				modifier = {
					local_manpower = 0.15
					local_factories = 0.05
				}
			}
		}
	}
}

#############
#############
#############
#RESEARCH TIME######
#############
#############
#############
shared_focus = {
	id = eds_big_brain_time
	icon = GFX_goal_generic_intelligence_exchange
	cost = 50
	x = 0
	y = 1
	relative_position_id = eds_imperial_focus
    prerequisite = {
		focus = eds_imperial_focus
	}

	mutually_exclusive = {
		focus = eds_internal_affairs
		focus = eds_military_politics
	}

	ai_will_do = { 
		factor = 1
	}    
    completion_reward = {
		#log = "[GetDateText]: [Root.GetName]: eds_big_brain_time"
		add_stability = 0.10
		add_research_slot = 1
	}
}

shared_focus = {
	id = eds_glimpse_the_future
	icon = GFX_focus_research
	cost = 50
	x = 1
	y = 1
	relative_position_id = eds_big_brain_time
    prerequisite = {
		focus = eds_big_brain_time
	}

	mutually_exclusive = {
		focus = eds_concerted_efforts
	}

	ai_will_do = { 
		factor = 1
	}    
    completion_reward = {
		#log = "[GetDateText]: [Root.GetName]: eds_glimpse_the_future"
		hidden_effect = {
			add_tech_bonus = {
				bonus = 0.5
				ahead_reduction = 1.0
				uses = 3
				category = light_air
				category = medium_air
				category = heavy_air
				category = armor
				category = cat_light_armor
				category = cat_medium_armor
				category = cat_heavy_armor
				category = artillery
				category = cat_anti_tank
				category = cat_anti_air
				category = naval_air
				category = infantry_weapons
				category = motorized_equipment
				category = cat_mechanized_equipment
				category = naval_equipment
				category = rocketry
				category = nuclear
				category = industry
				category = electronics
				category = strategic_destruction_tree
				category = battlefield_support_tree
				category = operational_integrity_tree
				category = jet_technology
				category = trade_interdiction_tree
				category = convoy_defense_tree
				category = light_fighter
				category = cat_heavy_fighter
				category = tactical_bomber
				category = cat_strategic_bomber
				category = naval_bomber
				category = cas_bomber
				category = ship_modules_tech
				category = dd_tech
				category = cl_tech
				category = ca_tech
				category = cv_tech
				category = bc_tech
				category = bb_tech
				category = shbb_tech
				category = ss_tech
				category = tp_tech
				category = synth_resources
				category = fleet_in_being_tree
				category = encryption_tech
				category = decryption_tech
				category = computing_tech
				category = radar_tech
				category = infantry_tech
				category = marine_tech
				category = construction_tech
				category = excavation_tech
				category = submarine_doctrine
				category = air_equipment
				category = cat_mobile_warfare
				category = cat_superior_firepower
				category = cat_grand_battle_plan
				category = cat_mass_assault
				category = cat_base_strike
				category = cat_trade_interdiction
				category = cat_fleet_in_being
				category = cat_strategic_destruction
				category = cat_battlefield_support
				category = cat_operational_integrity
				category = night_vision
				category = base_strike_main
				category = mot_rockets
				category = support_tech
				category = para_tech
				category = engineers_tech
				category = recon_tech
				category = mountaineers_tech
				category = military_police_tech
				category = hospital_tech
				category = logistics_tech
				category = signal_company_tech
				category = maintenance_company_tech
				category = naval_mines
				category = concentrated_industry_category
				category = dispersed_industry_category
				category = asw_tech
				category = naval_minesweeping
				category = naval_minelaying
				category = cat_scout_plane
				category = train_tech
				category = cat_production
				category = cat_synth_rubber
				category = cat_synth_oil
			}
		}
		custom_effect_tooltip = eds_glimpse_the_future_t

	}
}

shared_focus = {
	id = eds_realize_the_future
	icon = GFX_goal_tfv_generic_tech_sharing
	cost = 50
	x = 0
	y = 1
	relative_position_id = eds_glimpse_the_future
    prerequisite = {
		focus = eds_glimpse_the_future
	}


	ai_will_do = { 
		factor = 1
	}    
    completion_reward = {
		#log = "[GetDateText]: [Root.GetName]: eds_realize_the_future"
		hidden_effect = {
			add_tech_bonus = {
				bonus = 1.0
				ahead_reduction = 1.25
				uses = 3
				category = light_air
				category = medium_air
				category = heavy_air
				category = armor
				category = cat_light_armor
				category = cat_medium_armor
				category = cat_heavy_armor
				category = artillery
				category = cat_anti_tank
				category = cat_anti_air
				category = naval_air
				category = infantry_weapons
				category = motorized_equipment
				category = cat_mechanized_equipment
				category = naval_equipment
				category = rocketry
				category = nuclear
				category = industry
				category = electronics
				category = jet_technology
				category = convoy_defense_tree
				category = light_fighter
				category = cat_heavy_fighter
				category = tactical_bomber
				category = cat_strategic_bomber
				category = naval_bomber
				category = cas_bomber
				category = ship_modules_tech
				category = dd_tech
				category = cl_tech
				category = ca_tech
				category = cv_tech
				category = bc_tech
				category = bb_tech
				category = shbb_tech
				category = ss_tech
				category = tp_tech
				category = synth_resources
				category = encryption_tech
				category = decryption_tech
				category = computing_tech
				category = radar_tech
				category = infantry_tech
				category = marine_tech
				category = construction_tech
				category = excavation_tech
				category = submarine_doctrine
				category = air_equipment
				category = night_vision
				category = base_strike_main
				category = mot_rockets
				category = support_tech
				category = para_tech
				category = engineers_tech
				category = recon_tech
				category = mountaineers_tech
				category = military_police_tech
				category = hospital_tech
				category = logistics_tech
				category = signal_company_tech
				category = maintenance_company_tech
				category = naval_mines
				category = concentrated_industry_category
				category = dispersed_industry_category
				category = asw_tech
				category = naval_minesweeping
				category = naval_minelaying
				category = cat_scout_plane
				category = train_tech
				category = cat_production
				category = cat_synth_rubber
				category = cat_synth_oil
			}
		}
		custom_effect_tooltip = eds_realize_the_future_t
	}
}

shared_focus = {
	id = eds_concerted_efforts
	icon = GFX_goal_generic_scientific_exchange
	cost = 50
	x = -1
	y = 1
	relative_position_id = eds_big_brain_time
    prerequisite = {
		focus = eds_big_brain_time
	}

	mutually_exclusive = {
		focus = eds_glimpse_the_future
	}

	ai_will_do = { 
		factor = 1
	}    
    completion_reward = {
		#log = "[GetDateText]: [Root.GetName]: eds_concerted_efforts"
		add_ideas = eds_idea_research_efforts_a
	}
}

shared_focus = {
	id = eds_expanded_experience
	icon = GFX_goal_continuous_research
	cost = 50
	x = 0
	y = 1
	relative_position_id = eds_concerted_efforts
    prerequisite = {
		focus = eds_concerted_efforts
	}

	ai_will_do = { 
		factor = 1
	}    
    completion_reward = {
		#log = "[GetDateText]: [Root.GetName]: eds_concerted_efforts"
		swap_ideas = {
			remove_idea = eds_idea_research_efforts_a
			add_idea = eds_idea_research_efforts_b
		}
	}
}

shared_focus = {
	id = eds_knowledge_unfettered
	icon = GFX_focus_research2
	cost = 50
	x = 1
	y = 1
	relative_position_id = eds_expanded_experience
    prerequisite = {
		focus = eds_expanded_experience
		focus = eds_realize_the_future
	}

	ai_will_do = { 
		factor = 1
	}    
    completion_reward = {
		#log = "[GetDateText]: [Root.GetName]: eds_knowledge_unfettered"
		custom_effect_tooltip = eds_knowledge_unfettered_t
		hidden_effect = {
			if = {
				limit = {has_completed_focus = eds_expanded_experience}
				swap_ideas = {
					remove_idea = eds_idea_research_efforts_b
					add_idea = eds_idea_research_efforts_c
				}
			}
			else = {
				add_ideas = eds_idea_research_efforts_side
			}
		}
		add_research_slot = 1
	}
}


#############
#############
#############
#POLITICAL ARMY FOCUS######
#############
#############
shared_focus = {
	id = eds_military_politics
	icon = GFX_focus_POL_belarus_army
	cost = 25
	x = 6
	y = 1
	relative_position_id = eds_imperial_focus
    prerequisite = {
		focus = eds_imperial_focus
	}

	mutually_exclusive = {
		focus = eds_big_brain_time
		focus = eds_internal_affairs
	}

	ai_will_do = { 
		factor = 1
	}    
    completion_reward = {
		#log = "[GetDateText]: [Root.GetName]: eds_military_politics"
		add_political_power = 50
		add_command_power = 50
		army_experience = 25
		navy_experience = 25
		air_experience = 25
	}
}

shared_focus = {
	id = eds_army_of_armies
	icon = GFX_focus_generic_little_entente
	cost = 25
	x = -2
	y = 1
	relative_position_id = eds_military_politics
    prerequisite = {
		focus = eds_military_politics
	}

	mutually_exclusive = {
		focus = eds_grand_command
	}

	ai_will_do = { 
		factor = 1
	}    
    completion_reward = {
		#log = "[GetDateText]: [Root.GetName]: eds_army_of_armies"
		add_political_power = 150
		every_core_state = {
			add_state_modifier = {
				modifier = {
					local_manpower = 0.05
				}
			}
		}

	}
}

shared_focus = {
	id = eds_local_levies
	icon = GFX_focus_generic_monarchy_2
	cost = 50
	x = -1
	y = 1
	relative_position_id = eds_army_of_armies
    prerequisite = {
		focus = eds_army_of_armies
	}

	mutually_exclusive = {
		focus = eds_youth_organizations
	}

	ai_will_do = { 
		factor = 1
	}    
    completion_reward = {
		add_political_power = 100
		every_core_state = {
			add_state_modifier = {
				modifier = {
					local_manpower = 0.15
				}
			}
		}

	}
}

shared_focus = {
	id = eds_hunters_experience
	icon = GFX_focus_generic_women_in_military
	cost = 50
	x = 0
	y = 1
	relative_position_id = eds_local_levies
    prerequisite = {
		focus = eds_local_levies
	}

	ai_will_do = { 
		factor = 1
	}    
    completion_reward = {
		army_experience = 25
		add_ideas = eds_idea_local_experience

	}
}

shared_focus = {
	id = eds_youth_organizations
	icon = GFX_focus_generic_support_the_left_right
	cost = 50
	x = 1
	y = 1
	relative_position_id = eds_army_of_armies
    prerequisite = {
		focus = eds_army_of_armies
	}

	mutually_exclusive = {
		focus = eds_local_levies
	}

	ai_will_do = { 
		factor = 1
	}    
    completion_reward = {
		add_ideas = eds_idea_youth_organizations
		every_core_state = {
			add_state_modifier = {
				modifier = {
					local_manpower = 0.10
				}
			}
		}

	}
}

shared_focus = {
	id = eds_veteran_trainers
	icon = GFX_focus_generic_military_academy
	cost = 50
	x = 0
	y = 1
	relative_position_id = eds_youth_organizations
    prerequisite = {
		focus = eds_youth_organizations
	}

	ai_will_do = { 
		factor = 1
	}    
    completion_reward = {
		army_experience = 25
		swap_ideas = {
			remove_idea = eds_idea_youth_organizations
			add_idea = eds_idea_youth_organizations_b
		}

	}
}

shared_focus = {
	id = eds_broad_command
	icon = GFX_goal_generic_air_doctrine
	cost = 50
	x = 1
	y = 1
	relative_position_id = eds_hunters_experience
    prerequisite = {
		focus = eds_hunters_experience
		focus = eds_veteran_trainers
	}

	ai_will_do = { 
		factor = 1
	}    
    completion_reward = {
		add_political_power = 150
		add_ideas = eds_idea_broad_command
	}
}

shared_focus = {
	id = eds_grand_command
	icon = GFX_focus_generic_military_dictatorship
	cost = 25
	x = 2
	y = 1
	relative_position_id = eds_military_politics
    prerequisite = {
		focus = eds_military_politics
	}

	mutually_exclusive = {
		focus = eds_army_of_armies
	}

	ai_will_do = { 
		factor = 1
	}    
    completion_reward = {
		add_political_power = 100
		army_experience = 20
		add_ideas = eds_idea_grand_command_a
	}
}

shared_focus = {
	id = eds_well_laid_plans
	icon = GFX_goal_generic_army_doctrines
	cost = 50
	x = -1
	y = 1
	relative_position_id = eds_grand_command
    prerequisite = {
		focus = eds_grand_command
	}

	mutually_exclusive = {
		focus = eds_special_commands
	}

	ai_will_do = { 
		factor = 1
	}    
    completion_reward = {
		swap_ideas = {
			remove_idea = eds_idea_grand_command_a
			add_idea = eds_idea_grand_command_b
		}
	}
}

shared_focus = {
	id = eds_theory_classes
	icon = GFX_focus_hol_the_foundations_of_defense
	cost = 50
	x = 0
	y = 1
	relative_position_id = eds_well_laid_plans
    prerequisite = {
		focus = eds_well_laid_plans
	}

	ai_will_do = { 
		factor = 1
	}    
    completion_reward = {
		swap_ideas = {
			remove_idea = eds_idea_grand_command_b
			add_idea = eds_idea_grand_command_c
		}
		every_unit_leader = {
			add_planning = 1
		}
	}
}

shared_focus = {
	id = eds_special_commands
	icon = GFX_goal_generic_special_forces
	cost = 50
	x = 1
	y = 1
	relative_position_id = eds_grand_command
    prerequisite = {
		focus = eds_grand_command
	}

	mutually_exclusive = {
		focus = eds_well_laid_plans
	}

	ai_will_do = { 
		factor = 1
	}    
    completion_reward = {
		add_political_power = 50
		swap_ideas = {
			remove_idea = eds_idea_grand_command_a
			add_idea = eds_idea_grand_command_x
		}
	}
}

shared_focus = {
	id = eds_better_training
	icon = GFX_goal_generic_military_sphere
	cost = 50
	x = 0
	y = 1
	relative_position_id = eds_special_commands
    prerequisite = {
		focus = eds_special_commands
	}

	ai_will_do = { 
		factor = 1
	}    
    completion_reward = {
		swap_ideas = {
			remove_idea = eds_idea_grand_command_x
			add_idea = eds_idea_grand_command_y
		}
	}
}

shared_focus = {
	id = eds_solidified_command
	icon = GFX_focus_rom_royal_dictatorship
	cost = 50
	x = 1
	y = 1
	relative_position_id = eds_theory_classes
    prerequisite = {
		focus = eds_theory_classes
		focus = eds_better_training
	}

	ai_will_do = { 
		factor = 1
	}    
    completion_reward = {
		add_political_power = 200
		add_command_power = 100

		effect_tooltip = {
			swap_ideas = {
				remove_idea = eds_idea_grand_command_a
				add_idea = eds_idea_grand_command_demonstration
			}
		}

		hidden_effect = {
			if = {
				limit = {has_completed_focus = eds_better_training}
				swap_ideas = {
					remove_idea = eds_idea_grand_command_y
					add_idea = eds_idea_grand_command_z
				}
			}
			else = {
				swap_ideas = {
					remove_idea = eds_idea_grand_command_c
					add_idea = eds_idea_grand_command_d
				}
			}
		}
		
	}
}


