shared_focus = {
	id = political_effort
	icon = GFX_goal_generic_demand_territory
	x = 22
	y = 0
	cost = 10
	available_if_capitulated = yes
	completion_reward = {
		add_political_power = 120
	}
}

shared_focus = {
	id = collectivist_ethos
	icon = GFX_goal_generic_national_unity
	prerequisite = { focus = political_effort }
	mutually_exclusive = { focus = liberty_ethos}
	x = -3
	y = 1
	relative_position_id = political_effort
	cost = 10
	available_if_capitulated = yes
	available = {
			OR = {
				has_government = absolutist
				has_government = communism
				has_government = fascism
				has_government = neutrality
				has_government = radical
			}
		}
	completion_reward = {
			add_ideas = collectivist_ethos_focus_democratic
		}
	ai_will_do = {
		factor = 5
		modifier = {
			factor = 0
			OR = {
				AND = {
					is_historical_focus_on = yes
					has_government = neutrality
				}
				has_idea = neutrality_idea
			}
		}
	}
}

shared_focus = {
	id = nationalism_focus
	icon = GFX_goal_support_fascism
	prerequisite = { focus = collectivist_ethos }
	mutually_exclusive = { focus = internationalism_focus focus = absolutism_focus focus = radical_focus }
	x = -3
	y = 1
	relative_position_id = collectivist_ethos
	cost = 10
	available_if_capitulated = yes
	available = {
		OR = {
			has_government = fascism
			has_government = neutrality
		}
	}
	completion_reward = {
		add_timed_idea = {
			idea = nationalism
			days = 720
		}
	}
	ai_will_do = {
		factor = 5
		modifier = {
			factor = 2
			any_neighbor_country = {
				is_major = yes
				has_government = fascism
			}
		}
		modifier = {
			factor = 0
			AND = {
				is_historical_focus_on = yes
				NOT = { has_government = fascism }
			}
		}
	}
}

shared_focus = {
	id = militarism
	icon = GFX_goal_generic_political_pressure
	prerequisite = { focus = nationalism_focus }
	x = 0
	y = 1
	relative_position_id = nationalism_focus
	cost = 10
	available_if_capitulated = yes
	completion_reward = {
		if = {
			limit = { has_idea = neutrality_idea }
			remove_ideas = neutrality_idea
		}			
		add_ideas = militarism_focus
		army_experience = 20
		set_rule = { can_send_volunteers = yes }
	}
}

shared_focus = {
	id = military_youth
	icon = GFX_goal_generic_more_territorial_claims
	prerequisite = { focus = militarism }
	x = 0
	y = 1
	relative_position_id = militarism
	cost = 10
	available_if_capitulated = yes
	completion_reward = {
			add_ideas = military_youth_focus
			if = {
				limit = { has_government = absolutist }
				add_popularity = {
					ideology = absolutist
					popularity = 0.2
				}
			}
			if = {
				limit = { has_government = communism }
				add_popularity = {
					ideology = communism
					popularity = 0.2
				}
			}
			if = {
				limit = { has_government = democratic }
				add_popularity = {
					ideology = democratic
					popularity = 0.2
				}
			}
			if = {
				limit = { has_government = fascism }
				add_popularity = {
					ideology = fascism
					popularity = 0.2
				}
			}
			if = {
				limit = { has_government = neutrality }
				add_popularity = {
					ideology = neutrality
					popularity = 0.2
				}
			}
			if = {
				limit = { has_government = radical }
				add_popularity = {
					ideology = radical
					popularity = 0.2
				}
			}
		}
}

shared_focus = {
	id = paramilitarism
	icon = GFX_goal_generic_military_sphere
	prerequisite = { focus = military_youth }
	x = 0
	y = 1
	relative_position_id = military_youth
	cost = 10
	available_if_capitulated = yes
	completion_reward = {
		add_ideas = paramilitarism_focus
	}
}

shared_focus = {
	id = internationalism_focus
	icon = GFX_goal_support_communism
	prerequisite = { focus = collectivist_ethos }
	mutually_exclusive = { focus = nationalism_focus focus = absolutism_focus focus = radical_focus }
	x = -1
	y = 1
	relative_position_id = collectivist_ethos
	cost = 10
	available_if_capitulated = yes
	available = {
			OR = {
				has_government = communism
				has_government = neutrality
			}
		}
	completion_reward = {
		add_timed_idea = {
			idea = internationalism
			days = 720
		}
	}
	ai_will_do = {
		factor = 5
		modifier = {
			factor = 2
			any_neighbor_country = {
				is_major = yes
				has_government = communism
			}
		}			
		modifier = {
			factor = 0
			AND = {
				is_historical_focus_on = yes
				NOT = { has_government = communism }
			}
		}
	}
}

shared_focus = {
	id = political_correctness
	icon = GFX_goal_generic_dangerous_deal
	prerequisite = { focus = internationalism_focus }
	x = 0
	y = 1
	relative_position_id = internationalism_focus
	cost = 10
	available_if_capitulated = yes
	completion_reward = {
		if = {
			limit = { has_idea = neutrality_idea }
			remove_ideas = neutrality_idea
		}		
		add_political_power = 200
		add_ideas = idea_political_correctness
	}
}

shared_focus = {
	id = indoctrination_focus
	icon = GFX_goal_generic_propaganda
	prerequisite = { focus = political_correctness }
	x = 0
	y = 1
	relative_position_id = political_correctness
	cost = 10
	available_if_capitulated = yes
	completion_reward = {
		add_ideas = indoctrination_focus
		add_political_power = 150
	}
}

shared_focus = {
	id = political_commissars
	icon = GFX_goal_generic_forceful_treaty
	prerequisite = { focus = indoctrination_focus }
	x = 0
	y = 1
	relative_position_id = indoctrination_focus
	cost = 10
	available_if_capitulated = yes
	available = {
	}
	completion_reward = {
			add_ideas = political_commissars_focus
			if = {
				limit = { has_government = communism }
				add_popularity = {
					ideology = communism
					popularity = 0.2
				}
			}
			add_political_power = 200
		}
}

shared_focus = {
	id = absolutism_focus
	icon = GFX_focus_hun_elect_a_king
	prerequisite = { focus = collectivist_ethos }
	mutually_exclusive = { focus = nationalism_focus focus = internationalism_focus focus = radical_focus }
	x = 1
	y = 1
	relative_position_id = collectivist_ethos
	cost = 10
	available_if_capitulated = yes
	available = {
		OR = {
			has_government = absolutist
			has_government = neutrality
		}
	}
	completion_reward = {
		add_ideas = absolutism
	}
	ai_will_do = {
		factor = 5
		modifier = {
			factor = 2
			any_neighbor_country = {
				is_major = yes
				has_government = absolutist
			}
		}
		modifier = {
			factor = 0
			AND = {
				is_historical_focus_on = yes
				NOT = { has_government = absolutist }
			}
		}
	}
}

shared_focus = {
	id = royal_dictatorship_focus
	icon = GFX_focus_rom_royal_dictatorship
	prerequisite = { focus = absolutism_focus }
	x = 0
	y = 1
	relative_position_id = absolutism_focus
	cost = 10
	available_if_capitulated = yes
	completion_reward = {
		add_political_power = 200
			add_popularity = {
				ideology = absolutist
				popularity = 0.2
			}
			add_ideas = royal_dictatorship_focus
	}
}

shared_focus = {
	id = royal_army_tradition_focus
	icon = GFX_goal_generic_special_forces
	prerequisite = { focus = royal_dictatorship_focus }
	x = 0
	y = 1
	relative_position_id = royal_dictatorship_focus
	cost = 10
	available_if_capitulated = yes
	completion_reward = {
		army_experience = 40
		# add a elite division template?
	}
}

shared_focus = {
	id = historical_claims_focus
	icon = GFX_goal_generic_occupy_states_ongoing_war
	prerequisite = { focus = royal_army_tradition_focus }
	x = 0
	y = 1
	relative_position_id = royal_army_tradition_focus
	cost = 10
	available_if_capitulated = yes
	completion_reward = {
		add_ideas = historical_claims_focus
	}
}

shared_focus = {
	id = radical_focus
	icon = GFX_goal_generic_consumer_goods
	prerequisite = { focus = collectivist_ethos }
	mutually_exclusive = { focus = nationalism_focus focus = internationalism_focus focus = absolutism_focus }
	x = 3
	y = 1
	relative_position_id = collectivist_ethos
	cost = 10
	available_if_capitulated = yes
	available = {
		OR = {
			has_government = radical
			has_government = neutrality
		}
	}
	completion_reward = {
		add_ideas = radicalism
	}
	ai_will_do = {
		factor = 5
		modifier = {
			factor = 2
			any_neighbor_country = {
				is_major = yes
				has_government = radical
			}
		}
		modifier = {
			factor = 0
			AND = {
				is_historical_focus_on = yes
				NOT = { has_government = radical }
			}
		}
	}
}

shared_focus = {
	id = private_channels_focus
	icon = GFX_goal_generic_intelligence_exchange
	prerequisite = { focus = radical_focus }
	x = 0
	y = 1
	relative_position_id = radical_focus
	cost = 10
	available_if_capitulated = yes
	completion_reward = {
		every_country = {
			add_opinion_modifier = {
				target = ROOT modifier = private_channels_trade
			}
		}
	}
}

shared_focus = {
	id = hardfought_market_focus
	icon = GFX_focus_generic_license_production
	prerequisite = { focus = private_channels_focus }
	x = 0
	y = 1
	relative_position_id = private_channels_focus
	cost = 10
	available_if_capitulated = yes
	completion_reward = {
		add_ideas = hardfought_market_focus
	}
}

shared_focus = {
	id = army_provides_focus
	icon = GFX_focus_generic_concessions
	prerequisite = { focus = hardfought_market_focus }
	x = 0
	y = 1
	relative_position_id = hardfought_market_focus
	cost = 10
	available_if_capitulated = yes
	completion_reward = {
		add_ideas = army_provides_focus
	}
}

shared_focus = {
	id = ideological_fanaticism
	icon = GFX_goal_generic_demand_territory
	prerequisite = {  focus = paramilitarism focus = political_commissars focus = historical_claims_focus focus = army_provides_focus }
	x = 0
	y = 5
	relative_position_id = collectivist_ethos
	cost = 10
	available_if_capitulated = yes
	completion_reward = {
		add_ideas = ideological_fanaticism_focus
		set_rule = {
			can_create_factions = yes
		}
		hidden_effect = {
			set_rule = { can_use_kamikaze_pilots = yes }
		}
		custom_effect_tooltip = kamikaze_focus_tooltip
	}
}

shared_focus = {
	id = liberty_ethos
	icon = GFX_goal_support_democracy
	prerequisite = { focus = political_effort }
	mutually_exclusive = { focus = collectivist_ethos }
	x = 2
	y = 1
	relative_position_id = political_effort
	cost = 10
	available_if_capitulated = yes
	available = {
		OR = {
			has_government = democratic
			has_government = neutrality
		}
	}
	completion_reward = {
		add_ideas = liberty_ethos_focus
	}
	ai_will_do = {
			factor = 95
			modifier = {
				factor = 0.1
				any_neighbor_country = {
					is_major = yes
					OR = {
						has_government = absolutist
						has_government = communism
						has_government = democratic
						has_government = fascism
						has_government = neutrality
						has_government = radical
					}
				}
				NOT = {
					any_neighbor_country = {
						is_major = yes
						has_government = democratic
					}
				}
			}
		}
}

shared_focus = {
	id = neutrality_focus
	icon = GFX_goal_generic_neutrality_focus
	prerequisite = { focus = liberty_ethos }
	mutually_exclusive = { focus = interventionism_focus }
	x = 0
	y = 1
	relative_position_id = liberty_ethos
	cost = 10
	available_if_capitulated = yes
	completion_reward = {
		if = {
			limit = { NOT = { has_idea = neutrality_idea } }
			add_ideas = neutrality_idea
		}
		add_political_power = 150
	}
	ai_will_do = {
			factor = 1
		}
}

shared_focus = {
	id = deterrence
	icon = GFX_goal_generic_defence
	prerequisite = { focus = neutrality_focus }
	x = 0
	y = 1
	relative_position_id = neutrality_focus
	cost = 10
	available_if_capitulated = yes
	completion_reward = {
		add_ideas = deterrence
	}
}

shared_focus = {
	id = interventionism_focus
	icon = GFX_goal_generic_political_pressure
	prerequisite = { focus = liberty_ethos }
	mutually_exclusive = { focus = neutrality_focus }
	x = 2
	y = 1
	relative_position_id = liberty_ethos
	cost = 10
	available_if_capitulated = yes
	completion_reward = {
		if = {
			limit = { has_idea = neutrality_idea }
			remove_ideas = neutrality_idea
		}	
		set_rule = { can_send_volunteers = yes }
		add_political_power = 150
	}
	ai_will_do = {
		factor = 1
		modifier = {
			factor = 0
			has_idea = neutrality_idea
		}
	}
}

shared_focus = {
	id = volunteer_corps
	icon = GFX_goal_generic_allies_build_infantry
	prerequisite = { focus = interventionism_focus }
	x = 0
	y = 1
	relative_position_id = interventionism_focus
	cost = 10
	available_if_capitulated = yes
	completion_reward = {
		add_ideas = volunteer_corps_focus
	}
}

shared_focus = {
	id = foreign_expeditions
	icon = GFX_goal_generic_more_territorial_claims
	prerequisite = { focus = volunteer_corps }
	x = 0
	y = 1
	relative_position_id = volunteer_corps
	cost = 10
	available_if_capitulated = yes
	completion_reward = {
		add_ideas = foreign_expeditions_focus
	}
}

shared_focus = {
	id = why_we_fight
	icon = GFX_goal_generic_propaganda
	prerequisite = { focus = foreign_expeditions focus = deterrence }
	x = -2
	y = 1
	relative_position_id = foreign_expeditions
	cost = 10
	available_if_capitulated = yes
	available = { 
		OR = { 
			threat > 0.75 
			has_defensive_war = yes 
		}
	}
	continue_if_invalid = yes
	completion_reward = {
		add_ideas = why_we_fight_focus
		custom_effect_tooltip = why_we_fight_effect
		hidden_effect = {
			if = {
				limit = { NOT = { has_idea = neutrality_idea } }
				set_rule = { can_create_factions = yes }
			}			
		}
	}
}

shared_focus = {
	id = technology_sharing
	icon = GFX_goal_generic_scientific_exchange
	prerequisite = { focus = ideological_fanaticism focus = why_we_fight }
	x = 4
	y = 1
	relative_position_id = ideological_fanaticism
	cost = 10
	available_if_capitulated = yes
	available = {
		has_war = yes
		is_in_faction = yes
		OR = {
			num_of_factories > 50
			any_other_country = {
				is_in_faction_with = ROOT
				num_of_factories > 50
			}
		}
	}
	completion_reward = {
		if = {
			limit = {
				original_research_slots < 3
			}
			add_research_slot = 1
		}
		if = {
			limit = {
				original_research_slots > 2
			}
			add_tech_bonus = {
				name = electronics_bonus
				bonus = 1.0
				uses = 1
				category = electronics
			}
			add_tech_bonus = {
				name = industrial_bonus
				bonus = 1.0
				uses = 1
				category = industry
			}	
			add_tech_bonus = {
				name = infantry_artillery_bonus #@#
				bonus = 1.0
				uses = 1
				category = infantry_weapons
				category = artillery
			}				
		}			
	}
}

