###########################
# Portugal Focus Tree
# By TheBlackWinds
###########################

focus_tree = {
	id = portugal_focus
	country = {
		factor = 0
		modifier = {
			add = 10
			tag = POR
		}
	}
	default = no
	continuous_focus_position = { x = 4000 y = 900 }

	## Political Tree ##
	focus = {
		id = POR_matters_of_the_realm
		icon = GFX_goal_matters_of_realm
		x = 5
		y = 0
		cost = 5
		available = {
			OR = {
				date > 1938.1.1
				AND = {
					date > 1936.10.1
					NOT = { has_war_with = MAF }
					OR = {
						has_global_flag = MAF_NoAttack_Portugal
						MAF = {
							NOT = { has_idea = MAF_border_shit_show }
						}
					}
				}
			}
		}
		ai_will_do = {
			factor = 200
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_matters_of_the_realm"
			add_stability = 0.05
			if = {
				limit = {
					NOT = {
						is_in_faction = yes
						}
					}
			country_event = por.315
			}
		}
		search_filters = { FOCUS_FILTER_STABILITY }
	}

	focus = {
		id = POR_the_king_and_country
		icon = GFX_goal_portugal
		prerequisite = { focus = POR_matters_of_the_realm }
		mutually_exclusive = {
			focus = POR_the_organic_kingdom
		}
		available = {
			NOT = {
				544 = { is_owned_by_ROOT_or_subject = yes }
			}
		}
		relative_position_id = POR_matters_of_the_realm
		x = 2
		y = 1
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_the_king_and_country"
			country_event = por.313
			PAF = { country_event = por.313 }
			add_stability = 0.1
			add_ideas = POR_kingpath
		}
		search_filters = { FOCUS_FILTER_STABILITY }
	}

	focus = {
		id = POR_the_burden
		icon = GFX_goal_agrarian_reform
		prerequisite = { focus = POR_the_king_and_country }
		relative_position_id = POR_matters_of_the_realm
		x = 5
		y = 2
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_the_burden"
			add_ideas = POR_burden_or_civilization
		}
	}
	focus = {
		id = POR_consider_liberalisation
		icon = GFX_Focus_Generic_Press_Liberalization
		prerequisite = { focus = POR_the_king_and_country }
		relative_position_id = POR_matters_of_the_realm
		x = 3
		y = 2
		cost = 2
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_the_burden"
			country_event = por.1
			add_stability = 0.05
		}
	}
	focus = {
		id = POR_tarrafal
		icon = GFX_goal_POR_the_tarrafal
		prerequisite = { focus = POR_consider_liberalisation }
		prerequisite = { focus = POR_the_burden }
		relative_position_id = POR_matters_of_the_realm
		x = 3
		y = 3
		cost = 5
		ai_will_do = {
			factor = 100
		}
		bypass = {
			has_authoritarian_government = no
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_tarrafal"
			add_ideas = POR_tarrafall
			country_event = portoafricaflavor.50
			PAF = {
				country_event = portoafricaflavor.50
			}
		}
		search_filters = { FOCUS_FILTER_RESISTANCE }
	}

	focus = {
		id = POR_royal_edicts
		icon = GFX_goal_POR_royal_edicts
		prerequisite = { focus = POR_tarrafal }
		relative_position_id = POR_matters_of_the_realm
		x = 3
		y = 4
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_royal_edicts"
			add_ideas = POR_royal_edictos
		}
	}

	focus = {
		id = POR_the_moderating_power
		icon = GFX_goal_POR_the_moderating_power
		prerequisite = { focus = POR_royal_edicts }
		prerequisite = { focus = POR_centralized_rulership }
		relative_position_id = POR_matters_of_the_realm
		x = 2
		y = 5
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_the_moderating_power"
			add_ideas = PORder_moderador
		}
	}

	focus = {
		id = POR_persue_traitors
		icon = GFX_anti_syndicalism
		prerequisite = { focus = POR_tarrafal }
		relative_position_id = POR_matters_of_the_realm
		x = 5
		y = 4
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_persue_traitors"
			increase_ruling_party_popularity_by_5 = yes
			set_country_flag = totalist_banned
			set_country_flag = syndicalist_banned
			set_country_flag = radical_socialist_banned
			add_popularity = {
				ideology = radical_socialist popularity = -0.10
			}
			add_popularity = {
				ideology = totalist popularity = -0.10
			}
			add_popularity = {
				ideology = syndicalist popularity = -0.10
			}
		}
	}

	focus = {
		id = POR_ban_republican_parties
		icon = GFX_goal_POR_ban_republic
		prerequisite = { focus = POR_persue_traitors }
		relative_position_id = POR_matters_of_the_realm
		x = 5
		y = 5
		cost = 5
		ai_will_do = {
			factor = 100
		}
		available = {
			has_democratic_government = yes
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_ban_republican_parties"
			increase_ruling_party_popularity_by_5 = yes
			set_country_flag = social_liberal_banned
			set_country_flag = social_conservative_banned
			set_country_flag = market_liberal_banned
			set_country_flag = social_democrat_banned
			add_popularity = {
				ideology = social_democrat popularity = -0.10
			}
			add_popularity = {
				ideology = market_liberal popularity = -0.10
			}
			add_popularity = {
				ideology = social_conservative popularity = -0.10
			}
			add_popularity = {
				ideology = social_liberal popularity = -0.10
			}
		}
	}

	focus = {
		id = POR_colonial_empire
		icon = GFX_goal_navy_decision
		prerequisite = { focus = POR_the_burden }
		relative_position_id = POR_matters_of_the_realm
		x = 5
		y = 3
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_colonial_empire"
			add_war_support = 0.05
			navy_experience = 15
			army_experience = 15
		}
		search_filters = { FOCUS_FILTER_NAVY_BONUS FOCUS_FILTER_ARMY_BONUS }
	}

	focus = {
		id = POR_realities
		icon = GFX_lessonslearned
		prerequisite = { focus = POR_the_king_and_country }
		relative_position_id = POR_matters_of_the_realm
		x = 1
		y = 2
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_realities"
			increase_ruling_party_popularity_by_10 = yes
			army_experience = 15
		}
		search_filters = { FOCUS_FILTER_ARMY_BONUS }
	}

	focus = {
		id = POR_imperial_pride
		icon = GFX_goal_TEX_naval_prominence
		prerequisite = { focus = POR_realities }
		prerequisite = { focus = POR_consider_liberalisation }
		relative_position_id = POR_matters_of_the_realm
		x = 1
		y = 3
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_imperial_pride"
			add_tech_bonus = {
				name = POR_imperial_pride
				bonus = 1
				uses = 1
				category = naval_doctrine
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = POR_centralized_rulership
		icon = GFX_focus_rom_royal_dictatorship
		prerequisite = { focus = POR_imperial_pride }
		relative_position_id = POR_matters_of_the_realm
		x = 1
		y = 4
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_centralized_rulership"
			add_stability = 0.1
		}
		search_filters = { FOCUS_FILTER_STABILITY }
	}

	focus = {
		id = POR_moral_monarchy
		icon = GFX_goal_monarchism
		prerequisite = { focus = POR_the_moderating_power }
		prerequisite = { focus = POR_ban_republican_parties }
		relative_position_id = POR_matters_of_the_realm
		x = 4
		y = 6
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_moral_monarchy"
			add_stability = 0.1
			add_ideas = POR_unlimited_powa
		}
		search_filters = { FOCUS_FILTER_STABILITY }
	}

	focus = {
		id = POR_the_organic_kingdom
		icon = GFX_goal_ideology_national_populist
		prerequisite = { focus = POR_matters_of_the_realm }
		mutually_exclusive = {
			focus = POR_the_king_and_country
		}
		relative_position_id = POR_matters_of_the_realm
		x = -2
		y = 1
		cost = 5
		ai_will_do = {
			factor = 100
		}
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_the_organic_kingdom"
			country_event = por.314
			PAF = { country_event = por.314 }
			add_war_support = 0.1
			add_ideas = POR_organic_kingdomi
		}
	}

	focus = {
		id = POR_state_of_faithful
		icon = GFX_goal_faith_and_state
		prerequisite = { focus = POR_the_organic_kingdom }
		relative_position_id = POR_matters_of_the_realm
		x = -3
		y = 2
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_state_of_faithful"
			add_ideas = POR_faith_and_state
		}
	}

	focus = {
		id = POR_youth
		icon = GFX_goal_POR_portugese_youth
		prerequisite = { focus = POR_state_of_faithful }
		relative_position_id = POR_matters_of_the_realm
		x = -4
		y = 3
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_youth"
			army_experience = 10
			add_ideas = POR_jovens
		}
		search_filters = { FOCUS_FILTER_ARMY_BONUS }
	}
	focus = {
		id = POR_peacefreedomandjusticeformynewempire
		icon = GFX_enshrinebatakarights
		prerequisite = { focus = POR_youth }
		relative_position_id = POR_matters_of_the_realm
		x = -5
		y = 4
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_peacefreedomandjusticeformynewempire"
			add_ideas = POR_yournewempire
		}
		search_filters = { FOCUS_FILTER_RESISTANCE }
	}
	focus = {
		id = POR_state_priorities #infra
		icon = GFX_goal_generic_shipyard
		available = {
			
		}
		prerequisite = { focus = POR_peacefreedomandjusticeformynewempire }
		relative_position_id = POR_matters_of_the_realm
		x = -5
		y = 5
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_state_priorities"
			random_owned_state = {
				limit = {
					free_building_slots = {
						building = infrastructure
						size > 0
					}
					OR = {
						is_in_home_area = yes
						NOT = {
							owner = {
								any_owned_state = {
									free_building_slots = {
										building = infrastructure
										size > 0
									}
									is_in_home_area = yes
								}
							}
						}
					}
				}
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
			random_owned_state = {
				limit = {
					free_building_slots = {
						building = infrastructure
						size > 0
					}
					OR = {
						is_in_home_area = yes
						NOT = {
							owner = {
								any_owned_state = {
									free_building_slots = {
										building = infrastructure
										size > 0
									}
									is_in_home_area = yes
								}
							}
						}
					}
				}
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}
	focus = {
		id = POR_patriotic_fervour
		icon = GFX_goal_army_guy_2
		prerequisite = { focus = POR_youth }
		relative_position_id = POR_matters_of_the_realm
		x = -3
		y = 4
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_patriotic_fervour"
			swap_ideas = {
				add_idea = POR_patriot_youth
				remove_idea = POR_jovens
			}
		}
	}
	focus = {
		id = POR_baroes_assinalados
		icon = GFX_enlisttheveterans
		prerequisite = { focus = POR_patriotic_fervour }
		relative_position_id = POR_matters_of_the_realm
		x = -3
		y = 5
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_baroes_assinalados"
			army_experience = 20
			add_war_support = 0.05
		}
		search_filters = { FOCUS_FILTER_ARMY_BONUS }
	}

	focus = {
		id = POR_suspend_parliament
		icon = GFX_goal_DEI_focus_disband_volksraad
		prerequisite = { focus = POR_the_organic_kingdom }
		relative_position_id = POR_matters_of_the_realm
		x = -1
		y = 2
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_suspend_parliament"
			add_stability = 0.06
			add_ideas = POR_parliament_suspended
		}
		search_filters = { FOCUS_FILTER_STABILITY }
	}

	focus = {
		id = POR_expand_local_power
		icon = GFX_focus_generic_self_management
		prerequisite = { focus = POR_suspend_parliament }
		relative_position_id = POR_matters_of_the_realm
		x = -1
		y = 3
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_expand_local_power"
			add_stability = 0.1
		}
		search_filters = { FOCUS_FILTER_STABILITY }
	}

	focus = {
		id = POR_local_rulership
		icon = GFX_goal_POR_autonomy
		prerequisite = { focus = POR_expand_local_power }
		relative_position_id = POR_matters_of_the_realm
		x = -1
		y = 4
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_local_rulership"
			swap_ideas = {
				add_idea = POR_non_ironic_anarcho_monarchism_for_fucks_sake
				remove_idea = POR_organic_kingdomi
			}
		}
	}

	focus = {
		id = POR_codified_decentralization
		icon = GFX_goal_constitutional_guarantees
		prerequisite = { focus = POR_local_rulership }
		relative_position_id = POR_matters_of_the_realm
		x = -1
		y = 5
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_codified_decentralization"
			add_stability = 0.1
		}
		search_filters = { FOCUS_FILTER_STABILITY }
	}

	focus = {
		id = POR_abolish_parlament
		icon = GFX_goal_POR_Kingdom_Emblem
		prerequisite = { focus = POR_codified_decentralization }
		prerequisite = { focus = POR_baroes_assinalados }
		relative_position_id = POR_matters_of_the_realm
		x = -1
		y = 7
		cost = 10
		ai_will_do = {
			factor = 1
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_abolish_parlament"
			swap_ideas = {
				add_idea = POR_parliament_abolished
				remove_idea = POR_parliament_suspended
			}
			if = {
				limit = {
					PAF = {
						is_ai = yes
						}
					}
				POR = {
					every_state = {
						limit = {
							is_core_of = PAF
						}
						add_claim_by = POR
					}
					annex_country = {
						target = PAF
						transfer_troops = yes
					}
			POR = {
				every_owned_state = {
					limit = {
						is_claimed_by = PAF
					}
					remove_claim_by = PAF
				}
				every_owned_state = {
					limit = {
						is_core_of = PAF
					}
					remove_core_of = PAF
				}
			}
				}
			}
			if = {
				limit = { is_subject = no }
				set_cosmetic_tag = POR_empire
			}
			if = {
			limit = {
			is_ai = no
			BRA = {
			is_subject = no
			has_government = national_populist
				}
			}
			country_event = por.323
			}
			if = {
			limit = {
			is_ai = no
			BRA = {
			NOT = {
			has_government = national_populist
					}
				}
			}
			country_event = por.325
			}
		}
		search_filters = { FOCUS_FILTER_STABILITY }
	}

	focus = {
		id = POR_economical_strongstance
		icon = GFX_goal_monarchism_black
		prerequisite = { focus = POR_state_priorities }
		prerequisite = { focus = POR_baroes_assinalados }
		relative_position_id = POR_matters_of_the_realm
		x = -4
		y = 6
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_economical_strongstance"
			add_ideas = POR_organic_eco
		}
	}

	## Naval and Colonial Tree ##
	focus = {
		id = POR_navy
		icon = GFX_goal_POR_Navy_Emblem
		x = 16
		y = 0
		cost = 5
		ai_will_do = {
			factor = 100
		}
		available = {
			NOT = {
				has_idea = POR_black_monday
			}
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_navy"
			navy_experience = 30
		}
		search_filters = { FOCUS_FILTER_NAVY_BONUS }
	}

	focus = {
		id = POR_raise_regulos
		icon = GFX_Generic_Jungle_Ghost
		prerequisite = { focus = POR_navy }
		relative_position_id = POR_navy
		x = 3
		y = 1
		cost = 5
		ai_will_do = {
			factor = 100
		}
		available = {
			540 = { is_owned_by_ROOT_or_subject = yes }
			917 = { is_owned_by_ROOT_or_subject = yes }
			544 = { is_owned_by_ROOT_or_subject = yes }
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_raise_regulos"
			hidden_effect = { load_OOB = POR_regulos }
			custom_effect_tooltip = POR_regulos
		}
	}

	focus = {
		id = POR_colonial_war_effort
		icon = GFX_Generic_Jungle_Insurgency
		prerequisite = { focus = POR_raise_regulos }
		relative_position_id = POR_navy
		x = 3
		y = 2
		cost = 5
		ai_will_do = {
			factor = 1000
		}
		available = {
			has_war = yes
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_colonial_war_effort"
			add_war_support = 0.05
			hidden_effect = {
				load_OOB = POR_wareffort
			}
			custom_effect_tooltip = POR_cww
		}
	}

	focus = {
		id = POR_punish_traitors
		icon = GFX_goal_POR_mozambique
		prerequisite = { focus = POR_colonial_war_effort }
		prerequisite = { focus = POR_trumph }
		relative_position_id = POR_navy
		x = 5
		y = 5
		cost = 5
		ai_will_do = {
			factor = 100
		}
		available = {
			540 = { is_owned_by_ROOT_or_subject = yes }
			917 = { is_owned_by_ROOT_or_subject = yes }
			544 = { is_owned_by_ROOT_or_subject = yes }
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_punish_traitors"
			PAF = {
				add_stability = 0.05
			}
			army_experience = 15
		}
		search_filters = { FOCUS_FILTER_ARMY_BONUS }
	}

	focus = {
		id = POR_imperio
		icon = GFX_goal_POR_Imperio_Ultramarino
		prerequisite = { focus = POR_navy }
		relative_position_id = POR_navy
		x = 1
		y = 1
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_imperio"
			add_stability = 0.05
			add_war_support = 0.05
		}
		search_filters = { FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_STABILITY }
	}

	focus = {
		id = POR_enforce_colonial_act
		icon = GFX_Goal_generic_control_judiciary
		prerequisite = { focus = POR_imperio }
		relative_position_id = POR_navy
		x = 1
		y = 2
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_enforce_colonial_act"
			add_ideas = POR_colonial_act
			PAF = {
				add_stability = 0.05
			}
		}
	}

	focus = {
		id = POR_protect_mozambique
		icon = GFX_goal_POR_protect_mozambique
		available = {
			950 = { is_owned_by_ROOT_or_subject = yes }
		}
		prerequisite = { focus = POR_enforce_colonial_act }
		relative_position_id = POR_navy
		x = 1
		y = 3
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_protect_mozambique"
			950 = {
				add_building_construction = {
					type = bunker
					level = 2
					province = 5177
					instant_build = yes
				}
			}
			950 = {
				add_building_construction = {
					type = bunker
					level = 2
					province = 2193
					instant_build = yes
				}
			}
			if = {
				limit = {
					country_exists = PAF
					}
				PAF = {
					add_stability = 0.03
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = POR_protect_angola
		icon = GFX_goal_POR_protect_angola
		available = {
			540 = { is_owned_by_ROOT_or_subject = yes }
		}
		prerequisite = { focus = POR_enforce_colonial_act }
		relative_position_id = POR_navy
		x = 3
		y = 3
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_protect_angola"
			540 = {
				if = {
					limit = { is_owned_by_ROOT_or_subject = yes }
					add_building_construction = {
						type = bunker
						level = 2
						province = 8248
						instant_build = yes
					}
				}
			}
			540 = {
				if = {
					limit = { is_owned_by_ROOT_or_subject = yes }
					add_building_construction = {
						type = bunker
						level = 2
						province = 5158
						instant_build = yes
					}
				}
			}
			540 = {
				if = {
					limit = { is_owned_by_ROOT_or_subject = yes }
					add_building_construction = {
						type = bunker
						level = 2
						province = 13756
						instant_build = yes
					}
				}
			}
			540 = {
				if = {
					limit = { is_owned_by_ROOT_or_subject = yes }
					add_building_construction = {
						type = bunker
						level = 2
						province = 12981
						instant_build = yes
					}
				}
			}
			if = {
				limit = {
					country_exists = PAF
					}
				PAF = {
					add_stability = 0.03
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = POR_modernized_administators
		icon = GFX_pithhelmet
		prerequisite = { focus = POR_protect_angola focus = POR_protect_mozambique }
		relative_position_id = POR_navy
		x = 1
		y = 4
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_modernized_administators"
			swap_ideas = {
				add_idea = POR_colonial_admin
				remove_idea = POR_colonial_act
			}
		}
	}

	focus = {
		id = POR_academia_imperial
		icon = GFX_focus_research
		prerequisite = { focus = POR_protect_angola focus = POR_protect_mozambique }
		relative_position_id = POR_navy
		x = 3
		y = 4
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_academia_imperial"
			add_research_slot_until_five = yes
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = POR_casa_dos_estudantes_do_imperio
		icon = GFX_goal_great_science
		prerequisite = { focus = POR_academia_imperial }
		relative_position_id = POR_navy
		x = 3
		y = 5
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_casa_dos_estudantes_do_imperio"
			add_ideas = POR_estudantes
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = POR_cape_verde
		icon = GFX_goal_POR_capeverde
		prerequisite = { focus = POR_modernized_administators }
		relative_position_id = POR_navy
		x = 1
		y = 5
		cost = 5
		ai_will_do = {
			factor = 100
		}
		available = {
			702 = { is_owned_by_ROOT_or_subject = yes }
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_cape_verde"
			add_ideas = POR_encruzilhada
		}
	}

	focus = {
		id = POR_sao_tome
		icon = GFX_goal_POR_saotome
		prerequisite = { focus = POR_cape_verde }
		relative_position_id = POR_navy
		x = 1
		y = 6
		cost = 5
		ai_will_do = {
			factor = 100
		}
		available = {
			705 = { is_owned_by_ROOT_or_subject = yes }
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_sao_tome"
			add_ideas = POR_contratados
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = POR_macau
		icon = GFX_goal_POR_macau
		prerequisite = { focus = POR_cape_verde }
		relative_position_id = POR_navy
		x = 2
		y = 7
		cost = 5
		ai_will_do = {
			factor = 100
		}
		available = {
			729 = { is_owned_by_ROOT_or_subject = yes }
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_macau"
			729 = {
				add_building_construction = {
					type = bunker
					level = 3
					province = 4198
					instant_build = yes
				}
			}
			add_ideas = POR_macaud
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = POR_goa
		icon = GFX_goal_POR_goa
		prerequisite = { focus = POR_cape_verde }
		relative_position_id = POR_navy
		x = 3
		y = 6
		cost = 5
		ai_will_do = {
			factor = 100
		}
		available = {
			321 = { is_owned_by_ROOT_or_subject = yes }
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_goa"
			321 = {
				add_building_construction = {
					type = bunker
					level = 3
					province = 1273
					instant_build = yes
				}
			}
			add_ideas = POR_state_of_india
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = POR_capital_shipyrds
		available = {
			
		}
		icon = GFX_goal_generic_sea_focused_navy
		prerequisite = { focus = POR_navy }
		mutually_exclusive = { focus = POR_backfoot_armada }
		relative_position_id = POR_navy
		x = -1
		y = 1
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_capital_shipyrds"
			random_owned_state = {
				limit = {
					is_coastal = yes
					free_building_slots = {
						building = dockyard
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = dockyard
					level = 1
					instant_build = yes
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = POR_blueprints
		icon = GFX_goal_generic_navy_doctrines_tactics
		prerequisite = { focus = POR_capital_shipyrds}
		relative_position_id = POR_navy
		x = -1
		y = 2
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_blueprints"
			add_tech_bonus = {
				name = POR_blueprints
				bonus = 1
				uses = 3
				category = fleet_in_being_tree
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = POR_nau_capitania
		icon = GFX_goal_generic_navy_battleship
		prerequisite = { focus = POR_blueprints }
		relative_position_id = POR_navy
		x = -1
		y = 3
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_nau_capitania"
			navy_experience = 25
			add_tech_bonus = {
				name = POR_nau_capitania
				bonus = 1
				uses = 2
				category = bb_tech
			}
		}
		search_filters = { FOCUS_FILTER_NAVY_BONUS FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = POR_winds_of_change
		icon = GFX_focus_generic_coastal_fort
		prerequisite = { focus = POR_nau_capitania }
		relative_position_id = POR_navy
		x = -1
		y = 4
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_winds_of_change"
			navy_experience = 25
			add_tech_bonus = {
				name = POR_winds_of_change
				bonus = 0.65
				uses = 1
				category = fleet_in_being_tree
			}
		}
		search_filters = { FOCUS_FILTER_NAVY_BONUS FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = POR_grande_armada
		icon = GFX_goal_generic_navy_carrier
		prerequisite = { focus = POR_winds_of_change }
		relative_position_id = POR_navy
		x = -1
		y = 5
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_grande_armada"
			navy_experience = 25
			add_tech_bonus = {
				name = POR_grande_armada
				bonus = 1
				uses = 1
				category = cv_tech
			}
		}
		search_filters = { FOCUS_FILTER_NAVY_BONUS FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = POR_the_fleet_of_the_empire
		icon = GFX_requestpatrolboats
		prerequisite = { focus = POR_grande_armada }
		relative_position_id = POR_navy
		x = -1
		y = 6
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_the_fleet_of_the_empire"
			add_ideas = POR_heavyshipbuildcost
		}
	}

	focus = {
		id = POR_backfoot_armada
		icon = GFX_goal_generic_navy_submarine
		prerequisite = { focus = POR_navy }
		mutually_exclusive = { focus = POR_capital_shipyrds }
		relative_position_id = POR_navy
		x = -3
		y = 1
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_backfoot_armada"
			add_tech_bonus = {
				name = POR_backfoot_armada
				bonus = 1
				uses = 2
				technology = convoy_interdiction_ti
				technology = unrestricted_submarine_warfare
				technology = wolfpacks
				technology = advanced_submarine_warfare
				technology = combined_operations_raiding
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = POR_escort_effort
		icon = GFX_goal_generic_navy_cruiser
		prerequisite = { focus = POR_backfoot_armada }
		relative_position_id = POR_navy
		x = -3
		y = 2
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_escort_effort"
			add_tech_bonus = {
				name = POR_escort_effort
				bonus = 1
				uses = 1
				category = ca_tech
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = POR_raiders
		icon = GFX_focus_generic_destroyer
		prerequisite = { focus = POR_escort_effort }
		relative_position_id = POR_navy
		x = -3
		y = 3
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_raiders"
			add_tech_bonus = {
				name = POR_raiders
				bonus = 1
				uses = 1
				category = dd_tech
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = POR_submarines
		icon = GFX_goal_generic_wolf_pack
		prerequisite = { focus = POR_raiders }
		relative_position_id = POR_navy
		x = -3
		y = 4
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_submarines"
			add_tech_bonus = {
				name = POR_submarines
				bonus = 1
				uses = 1
				category = ss_tech
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = POR_raiding_squads
		icon = GFX_goal_generic_navy_doctrines_tactics
		prerequisite = { focus = POR_submarines }
		relative_position_id = POR_navy
		x = -3
		y = 5
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_raiding_squads"
			add_tech_bonus = {
				name = POR_raiding_squads
				bonus = 1
				uses = 2
				technology = convoy_interdiction_ti
				technology = unrestricted_submarine_warfare
				technology = wolfpacks
				technology = advanced_submarine_warfare
				technology = combined_operations_raiding
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = POR_ubarcos
		icon = GFX_goal_generic_navy_submarine
		prerequisite = { focus = POR_raiding_squads }
		relative_position_id = POR_navy
		x = -3
		y = 6
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_ubarcos"
			add_ideas = POR_smallshipbuildcost
		}
	}

	focus = {
		id = POR_angola_e_nossa
		icon = GFX_goal_POR_angola
		relative_position_id = POR_navy
		x = 6
		y = 2
		cost = 1
		ai_will_do = {
			factor = 1000
		}
		available = {
			544 = { is_owned_by_ROOT_or_subject = yes }
			OR = {
				has_global_flag = MAF_NoAttack_Portugal
				NOT = { country_exists = MAF }
			}
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_angola_e_nossa"
			add_stability = 0.05
				PAF = {
					add_state_core = 957
					add_state_core = 958
					add_state_core = 813
					add_state_core = 956
					add_state_core = 955
					add_state_core = 871
				}
				if = {
					limit = {
						owns_state = 957
					}
					PAF = {
						transfer_state = 957
					}
				}	
				if = {
					limit = {
						owns_state = 958
					}
					PAF = {
						transfer_state = 958
					}
				}	
				if = {
					limit = {
						owns_state = 813
					}
					PAF = {
						transfer_state = 813
					}
				}	
				if = {
					limit = {
						owns_state = 956
					}
					PAF = {
						transfer_state = 956
					}
				}
				if = {
					limit = {
						owns_state = 955
					}
					PAF = {
						transfer_state = 955
					}
				}
				if = {
					limit = {
						owns_state = 871
					}
					PAF = {
						transfer_state = 871
					}
				}
			}
		search_filters = { FOCUS_FILTER_STABILITY }
	}

	focus = {
		id = POR_trumph
		icon = GFX_seekmittelafrikanbacking
		prerequisite = { focus = POR_angola_e_nossa }
		relative_position_id = POR_navy
		ai_will_do = {
			factor = 1000
		}
		x = 5
		y = 3
		cost = 5

		available = {
			544 = { is_owned_by_ROOT_or_subject = yes }
			OR = {
				has_global_flag = MAF_NoAttack_Portugal
				NOT = { country_exists = MAF }
			}
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_trumph"
			add_war_support = 0.2
			add_ideas = POR_african_triumph
		}
		search_filters = { FOCUS_FILTER_WAR_SUPPORT }
	}


	focus = {
		id = POR_reward_loyalty
		icon = GFX_Focus_Bloody_Purge
		prerequisite = { focus = POR_angola_e_nossa }
		relative_position_id = POR_navy
		x = 8
		y = 3
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_reward_loyalty"
			add_ideas = POR_loyal_mozambique
			PAF = {
				add_war_support = 0.05
			}
			army_experience = -10
			navy_experience = -5
		}
		search_filters = { FOCUS_FILTER_NAVY_BONUS FOCUS_FILTER_ARMY_BONUS }
	}

	focus = {
		id = POR_redouble_investments
		icon = GFX_focus_generic_industry_3
		prerequisite = { focus = POR_reward_loyalty }
		relative_position_id = POR_navy
		x = 7
		y = 4
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_redouble_investments"
			random_owned_state = {
				prioritize = { 544 }
				limit = {
					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
				}
			}
			540 = {
				add_resource = {
					type = steel
					amount = 7
				}
			}
			112 = {
				add_resource = {
					type = steel
					amount = 14
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = POR_luanda_imperial
		icon = GFX_goal_generic_africa_rail
		prerequisite = { focus = POR_reward_loyalty }
		relative_position_id = POR_navy
		x = 8
		y = 5
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_luanda_imperial"
			add_offsite_building = { type = industrial_complex level = 1 }
			random_owned_state = {
				prioritize = { 540 }
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
			random_owned_state = {
				prioritize = {
					540
				}
				limit = {
					free_building_slots = {
						building = infrastructure
						size > 0
					}
					OR = {
						is_in_home_area = yes
						NOT = {
							owner = {
								any_owned_state = {
									free_building_slots = {
										building = infrastructure
										size > 0
									}
									is_in_home_area = yes
								}
							}
						}
					}
				}
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = POR_zambia_e_nossa
		icon = GFX_goal_POR_zambia
		prerequisite = { focus = POR_angola_e_nossa }
		relative_position_id = POR_navy
		x = 6
		y = 6
		cost = 2
		ai_will_do = {
			factor = 100
		}
		available = {
			is_subject = no
			OR = {
				AND = {
					country_exists = ZAM
					ZAM = { is_in_faction = no }
				}
				AND = {
					country_exists = BSC
					BSC = { is_in_faction = no }
				}
				AND = {
					country_exists = BRT
					BRT = { is_in_faction = no }
				}
				AND = {
					country_exists = MLW
					MLW = { is_in_faction = no }
				}
			}
		}
		will_lead_to_war_with = ZAM
		will_lead_to_war_with = BRT
		will_lead_to_war_with = BSC
		will_lead_to_war_with = MLW
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_zambia_e_nossa"
			if = {
				limit = {
					ZAM = {
						NOT = {
							OR = {
								is_in_faction = yes
								is_subject = yes
							}
						}
					}
				}
			create_wargoal = { type = annex_everything target = ZAM }
			}
			if = {
				limit = {
					BRT = {
						NOT = {
							OR = {
								is_in_faction = yes
								is_subject = yes
							}
						}
					}
				}
			create_wargoal = { type = annex_everything target = BRT }
			}
			if = {
				limit = {
					BSC = {
						NOT = {
							OR = {
								is_in_faction = yes
								is_subject = yes
							}
						}
					}
				}
			create_wargoal = { type = annex_everything target = BSC }
			}
			if = {
				limit = {
					MLW = {
						NOT = {
							OR = {
								is_in_faction = yes
								is_subject = yes
							}
						}
					}
				}
			create_wargoal = { type = annex_everything target = MLW }
			}
		}
		search_filters = { FOCUS_FILTER_ANNEXATION }
	}

	focus = {
		id = POR_pinko
		icon = GFX_goal_POR_pink_map
		prerequisite = { focus = POR_zambia_e_nossa }
		relative_position_id = POR_navy
		x = 7
		y = 7
		cost = 5
		ai_will_do = {
			factor = 100
		}
		available = {
			is_subject = no
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_pinko"
			813 = {
				add_claim_by = POR
			}
			871 = {
				add_claim_by = POR
			}
			879 = {
				add_claim_by = POR
			}
			545 = { #zimbabwe
				add_claim_by = POR
			}
			if = {
				limit = {
					country_exists = KOG
					KOG = {
						has_country_leader = {
							name = "Pedro VII"
							ruling_only = yes
						}
					}
				}
				KOG = {
					country_event = congo.53
				}
			}
		}
	}

	focus = {
		id = POR_congo_e_nosso
		icon = GFX_goal_POR_flag_of_kongo
		prerequisite = { focus = POR_zambia_e_nossa }
		relative_position_id = POR_navy
		x = 5
		y = 7
		cost = 5
		ai_will_do = {
			factor = 100
		}
		available = {
			is_subject = no
			country_exists = KOG
			KOG = { is_subject = no }
			KOG = {
				has_country_leader = {
					name = "Pedro VII"
					ruling_only = yes
				}
			}
		}
		available = {
			country_exists = KOG
			KOG = { is_subject = no }
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_congo_e_nosso"
			add_political_power = 50
			KOG = {
			add_equipment_to_stockpile = { type = infantry_equipment_1 amount = 1500 producer = POR }
			add_manpower = 2500
			}
			custom_effect_tooltip = POR_supported_kog
		}
	}

	## Industrial Tree ##
	focus = {
		id = POR_manufacturies
		icon = GFX_redevelopfortjameson
		x = 27
		y = 0
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_manufacturies"
			add_tech_bonus = {
				name = POR_manufacturies
				bonus = 1
				uses = 1
				category = industry
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = POR_investments
		icon = GFX_newmarkets
		prerequisite = { focus = POR_manufacturies }
		relative_position_id = POR_manufacturies
		x = -1
		y = 1
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_investments"
			add_offsite_building = { type = industrial_complex level = 1 }
			add_tech_bonus = {
				name = POR_investments
				bonus = 1
				uses = 1
				category = industry
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = POR_not_again
		icon = GFX_goal_gold_reserve
		prerequisite = { focus = POR_manufacturies }
		relative_position_id = POR_manufacturies
		x = 3
		y = 1
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_not_again"
			add_stability =0.05
			increase_ruling_party_popularity_by_5 = yes
		}
		search_filters = { FOCUS_FILTER_STABILITY }
	}

	focus = {
		id = POR_guns
		icon = GFX_Focus_Superior_Firepower_Doctrine
		ai_will_do = {
			factor = 100
		}
		prerequisite = { focus = POR_investments }
		relative_position_id = POR_manufacturies
		x = -1
		y = 2
		cost = 5
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_guns"
			random_owned_state = {
				limit = {
					free_building_slots = {
						building = arms_factory
						size > 0
						include_locked = yes
					}
					OR = {
						is_in_home_area = yes
						NOT = {
							owner = {
								any_owned_state = {
									free_building_slots = {
										building = arms_factory
										size > 0
										include_locked = yes
									}
									is_in_home_area = yes
								}
							}
						}
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = POR_armylogis
		icon = GFX_goal_generic_air_production
		prerequisite = { focus = POR_guns }
		relative_position_id = POR_manufacturies
		x = -1
		y = 3
		cost = 5
		ai_will_do = {
			factor = 100
		}
		available = {
			NOT = {
				has_idea = POR_black_monday
			}
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_armylogis"
			add_tech_bonus = {
				name = POR_armylogis
				bonus = 2
				uses = 1
				category = logistics_tech
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = POR_milfact
		icon = GFX_expandheavyindustry
		prerequisite = { focus = POR_armylogis }
		relative_position_id = POR_manufacturies
		x = -1
		y = 4
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_milfact"
			random_owned_state = {
				limit = {
					free_building_slots = {
						building = arms_factory
						size > 0
						include_locked = yes
					}
					OR = {
						is_in_home_area = yes
						NOT = {
							owner = {
								any_owned_state = {
									free_building_slots = {
										building = arms_factory
										size > 0
										include_locked = yes
									}
									is_in_home_area = yes
								}
							}
						}
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = POR_dockyard
		icon = GFX_goal_generic_construct_naval_dockyard
		prerequisite = { focus = POR_milfact }
		relative_position_id = POR_manufacturies
		x = -1
		y = 5
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_dockyard"
			random_owned_state = {
				limit = {
					is_coastal = yes
					free_building_slots = {
						building = dockyard
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = dockyard
					level = 1
					instant_build = yes
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = POR_dockyard2
		icon = GFX_lakeinfrastructure
		ai_will_do = {
			factor = 100
		}
		prerequisite = { focus = POR_dockyard }
		relative_position_id = POR_manufacturies
		x = -2
		y = 6
		cost = 5
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_dockyard2"
			random_owned_state = {
				limit = {
					is_coastal = yes
					free_building_slots = {
						building = dockyard
						size > 2
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = dockyard
					level = 1
					instant_build = yes
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = POR_milfac2
		icon = GFX_goal_generic_construct_mil_factory
		ai_will_do = {
			factor = 100
		}
		prerequisite = { focus = POR_dockyard }
		relative_position_id = POR_manufacturies
		x = 0
		y = 6
		cost = 5
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_milfac2"
			random_owned_state = {
				limit = {
					free_building_slots = {
						building = arms_factory
						size > 0
						include_locked = yes
					}
					OR = {
						is_in_home_area = yes
						NOT = {
							owner = {
								any_owned_state = {
									free_building_slots = {
										building = arms_factory
										size > 0
										include_locked = yes
									}
									is_in_home_area = yes
								}
							}
						}
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = POR_econimical_recovery
		icon = GFX_goal_bankruptcy
		prerequisite = { focus = POR_investments focus = POR_not_again }
		relative_position_id = POR_manufacturies
		x = 2
		y = 2
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_econimical_recovery"
			swap_ideas = {
				add_idea = POR_partial_recovery
				remove_idea = POR_black_monday
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = POR_focus_shift
		icon = GFX_demandcompaniesonshore
		prerequisite = { focus = POR_econimical_recovery }
		relative_position_id = POR_manufacturies
		x = 2
		y = 3
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_focus_shift"
			add_tech_bonus = {
				name = POR_focus_shift
				bonus = 1
				uses = 1
				category = industry
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = POR_civfac
		icon = GFX_goal_generic_construct_civ_factory
		ai_will_do = {
			factor = 100
		}
		prerequisite = { focus = POR_focus_shift }
		relative_position_id = POR_manufacturies
		x = 2
		y = 4
		cost = 5
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_civfac"
			random_owned_state = {
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
					OR = {
						is_in_home_area = yes
						NOT = {
							owner = {
								any_owned_state = {
									free_building_slots = {
										building = industrial_complex
										size > 0
										include_locked = yes
									}
									is_in_home_area = yes
								}
							}
						}
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = POR_christian_austerity
		icon = GFX_enlistthemissionaries
		prerequisite = { focus = POR_civfac }
		relative_position_id = POR_manufacturies
		x = 2
		y = 5
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_christian_austerity"
			swap_ideas = {
				add_idea = POR_austerity
				remove_idea = POR_partial_recovery
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = POR_education
		icon = GFX_focus_research
		prerequisite = { focus = POR_christian_austerity }
		relative_position_id = POR_manufacturies
		x = 2
		y = 6
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_education"
			add_research_slot_until_five = yes
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = POR_railwaya
		icon = GFX_improvethegreateastroad
		ai_will_do = {
			factor = 100
		}
		prerequisite = { focus = POR_not_again }
		relative_position_id = POR_manufacturies
		x = 4
		y = 2
		cost = 5
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_railwaya"
			build_railway = {
				level = 3
				start_province = 9817
				target_province = 877
			}
			random_owned_state = {
				prioritize = {
					112
				}
				limit = {
					free_building_slots = {
						building = infrastructure
						size > 0
					}
					OR = {
						is_in_home_area = yes
						NOT = {
							owner = {
								any_owned_state = {
									free_building_slots = {
										building = infrastructure
										size > 0
									}
									is_in_home_area = yes
								}
							}
						}
					}
				}
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
			random_owned_state = {
				prioritize = {
					180
				}
				limit = {
					free_building_slots = {
						building = infrastructure
						size > 0
					}
					OR = {
						is_in_home_area = yes
						NOT = {
							owner = {
								any_owned_state = {
									free_building_slots = {
										building = infrastructure
										size > 0
									}
									is_in_home_area = yes
								}
							}
						}
					}
				}
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = POR_construction
		icon = GFX_goal_generic_construction
		ai_will_do = {
			factor = 100
		}
		prerequisite = { focus = POR_railwaya }
		relative_position_id = POR_manufacturies
		x = 4
		y = 3
		cost = 5
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_construction"
			random_owned_state = {
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
					OR = {
						is_in_home_area = yes
						NOT = {
							owner = {
								any_owned_state = {
									free_building_slots = {
										building = industrial_complex
										size > 0
										include_locked = yes
									}
									is_in_home_area = yes
								}
							}
						}
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = POR_naval_supply
		icon = GFX_Expand_Trade_Fleet
		prerequisite = { focus = POR_construction }
		relative_position_id = POR_manufacturies
		x = 4
		y = 4
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_naval_supply"
			112 = {
				add_building_construction = {
					type = naval_base
					level = 1
					province = 11805
					instant_build = yes
				}
			}
			random_state = {
				limit = {
					controller = { tag = ROOT }
					free_building_slots = {
						building = dockyard
						size > 2
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = dockyard
					level = 1
					instant_build = yes
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = POR_railways
		icon = GFX_dschibutilinks
		ai_will_do = {
			factor = 100
		}
		prerequisite = { focus = POR_naval_supply }
		relative_position_id = POR_manufacturies
		x = 4
		y = 5
		cost = 5
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_railways"
			random_owned_state = {
				prioritize = { 179 }
				limit = {
					free_building_slots = {
						building = infrastructure
						size > 0
					}
					OR = {
						is_in_home_area = yes
						NOT = {
							owner = {
								any_owned_state = {
									free_building_slots = {
										building = infrastructure
										size > 0
									}
									is_in_home_area = yes
								}
							}
						}
					}
				}
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
			random_owned_state = {
				prioritize = { 181 }
				limit = {
					free_building_slots = {
						building = infrastructure
						size > 0
					}
					OR = {
						is_in_home_area = yes
						NOT = {
							owner = {
								any_owned_state = {
									free_building_slots = {
										building = infrastructure
										size > 0
									}
									is_in_home_area = yes
								}
							}
						}
					}
				}
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	## Army Tree ##
	focus = {
		id = POR_army
		icon = GFX_goal_POR_Army_Emblem
		x = 37
		y = 0
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_army"
			army_experience = 20
		}
		search_filters = { FOCUS_FILTER_ARMY_BONUS }
	}

	focus = {
		id = POR_mic
		icon = GFX_goal_generic_construct_mil_factory
		ai_will_do = {
			factor = 100
		}
		prerequisite = { focus = POR_army }
		relative_position_id = POR_army
		x = 3
		y = 1
		cost = 5
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_mic"
			random_owned_state = {
				limit = {
					free_building_slots = {
						building = arms_factory
						size > 0
						include_locked = yes
					}
					OR = {
						is_in_home_area = yes
						NOT = {
							owner = {
								any_owned_state = {
									free_building_slots = {
										building = arms_factory
										size > 0
										include_locked = yes
									}
									is_in_home_area = yes
								}
							}
						}
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = POR_buildnavapower
		icon = GFX_goal_generic_build_navy
		ai_will_do = {
			factor = 100
		}
		prerequisite = { focus = POR_mic }
		relative_position_id = POR_army
		x = 3
		y = 2
		cost = 5
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_buildnavapower"
			random_state = {
				limit = {
					controller = { tag = ROOT }
					free_building_slots = {
						building = dockyard
						size > 2
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = dockyard
					level = 1
					instant_build = yes
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = POR_miltech
		icon = GFX_focus_research
		prerequisite = { focus = POR_buildnavapower}
		relative_position_id = POR_army
		x = 3
		y = 3
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_miltech"
			add_tech_bonus = {
				name = POR_miltech
				bonus = 1
				uses = 1
				category = land_doctrine
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = POR_milindu
		icon = GFX_goal_economic_control
		ai_will_do = {
			factor = 100
		}
		prerequisite = { focus = POR_miltech}
		relative_position_id = POR_army
		x = 3
		y = 4
		cost = 5
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_milindu"
			random_owned_state = {
				limit = {
					free_building_slots = {
						building = arms_factory
						size > 0
						include_locked = yes
					}
					OR = {
						is_in_home_area = yes
						NOT = {
							owner = {
								any_owned_state = {
									free_building_slots = {
										building = arms_factory
										size > 0
										include_locked = yes
									}
									is_in_home_area = yes
								}
							}
						}
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = POR_prodeff
		icon = GFX_focus_generic_license_production
		prerequisite = { focus = POR_milindu }
		relative_position_id = POR_army
		x = 3
		y = 5
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_prodeff"
			add_ideas = POR_milprod
		}
	}

	focus = {
		id = POR_linha_vedras
		icon = GFX_goal_nested_fortifications
		prerequisite = { focus = POR_miltech}
		relative_position_id = POR_army
		x = 5
		y = 4
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_linha_vedras"
			112 = {
				add_building_construction = {
					type = bunker
					level = 3
					province = 11805
					instant_build = yes
				}
				add_building_construction = {
					type = bunker
					level = 3
					province = 924
					instant_build = yes
				}
				add_building_construction = {
					type = bunker
					level = 3
					province = 799
					instant_build = yes
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = POR_state_construction
		icon = GFX_goal_generic_construct_civ_factory
		ai_will_do = {
			factor = 100
		}
		prerequisite = { focus = POR_linha_vedras }
		relative_position_id = POR_army
		x = 5
		y = 5
		cost = 5
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_state_construction"
			random_owned_state = {
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
					OR = {
						is_in_home_area = yes
						NOT = {
							owner = {
								any_owned_state = {
									free_building_slots = {
										building = industrial_complex
										size > 0
										include_locked = yes
									}
									is_in_home_area = yes
								}
							}
						}
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = POR_infeq
		icon = GFX_focus_generic_military_equipment
		prerequisite = { focus = POR_army }
		relative_position_id = POR_army
		x = 1
		y = 1
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_infeq"
			add_tech_bonus = {
				name = POR_infeq
				bonus = 2
				uses = 1
				category = infantry_weapons
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = POR_training
		icon = GFX_goal_generic_army_training
		prerequisite = { focus = POR_infeq }
		relative_position_id = POR_army
		x = 1
		y = 2
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_training"
			add_ideas = POR_trainingi
		}
	}

	focus = {
		id = POR_artillerybattalion
		icon = GFX_goal_generic_army_artillery
		prerequisite = { focus = POR_training }
		relative_position_id = POR_army
		x = 1
		y = 3
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_artillerybattalion"
			add_tech_bonus = {
				name = POR_artillerybattalion
				bonus = 2
				uses = 1
				category = artillery
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = POR_spotter_squads
		icon = GFX_goal_munitions_factories
		prerequisite = { focus = POR_artillerybattalion }
		relative_position_id = POR_army
		x = 1
		y = 5
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_spotter_squads"
			add_tech_bonus = {
				name = POR_spotter_squads
				bonus = 2
				uses = 1
				category = signal_company_tech
				category = recon_tech
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}


	focus = {
		id = POR_knights
		icon = GFX_goal_POR_knights_of_portugal
		prerequisite = { focus = POR_army }
		relative_position_id = POR_army
		x = -1
		y = 1
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_knights"
			add_ideas = POR_knights
		}
		search_filters = { FOCUS_FILTER_ARMY_BONUS }
	}

	focus = {
		id = POR_motorized_dragoons
		icon = GFX_goal_generic_army_motorized
		prerequisite = { focus = POR_knights }
		relative_position_id = POR_army
		x = -1
		y = 2
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_motorized_dragoons"
			add_tech_bonus = {
				name = POR_motorized_dragoons
				bonus = 2
				technology = motorised_infantry
				category = mot_rockets
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = POR_loghtank
		icon = GFX_goal_POL_light_tanks
		prerequisite = { focus = POR_motorized_dragoons }
		relative_position_id = POR_army
		x = -1
		y = 3
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_loghtank"
			add_tech_bonus = {
				name = POR_loghtank
				bonus = 1
				uses = 2
				category = armor
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = POR_tankarmy
		icon = GFX_goal_generic_heavy_armour_british
		prerequisite = { focus = POR_loghtank }
		relative_position_id = POR_army
		x = -2
		y = 4
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_tankarmy"
			add_tech_bonus = {
				name = POR_tankarmy
				bonus = 1
				uses = 2
				category = armor
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = POR_support_squads
		icon = GFX_goal_generic_support_equipment
		prerequisite = { focus = POR_tankarmy }
		relative_position_id = POR_army
		x = -3
		y = 5
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_support_squads"
			add_tech_bonus = {
				name = POR_support_squads
				bonus = 2
				uses = 1
				category = support_tech
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = POR_doctrine_reform
		icon = GFX_focus_generic_military_academy
		prerequisite = { focus = POR_tankarmy }
		prerequisite = { focus = POR_hearvy_art_batteries }
		relative_position_id = POR_army
		x = -1
		y = 5
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_doctrine_reform"
			add_tech_bonus = {
				name = POR_doctrine_reform
				bonus = 1
				uses = 1
				category = land_doctrine
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = POR_herois_do_mar
		icon = GFX_goal_generic_amphibious_assault
		prerequisite = { focus = POR_doctrine_reform }
		relative_position_id = POR_army
		x = -3
		y = 6
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_herois_do_mar"
			add_ideas = POR_herois_do_mari
			add_tech_bonus = {
				name = POR_herois_do_mar
				bonus = 0.85
				uses = 1
				technology = marines
				technology = marines2
				technology = marines3
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = POR_our_legacy
		icon = GFX_EGY_Palestine_Defence
		prerequisite = { focus = POR_doctrine_reform }
		relative_position_id = POR_army
		x = -1
		y = 6
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_our_legacy"
			army_experience = 15
			add_tech_bonus = {
				name = POR_our_legacy
				bonus = 1
				uses = 1
				category = land_doctrine
			}
		}
		search_filters = { FOCUS_FILTER_ARMY_BONUS FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = POR_suebi
		icon = GFX_goal_authority
		prerequisite = { focus = POR_doctrine_reform }
		relative_position_id = POR_army
		x = 1
		y = 6
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_suebi"
			add_ideas = POR_bravery
		}
	}

	focus = {
		id = POR_hearvy_art_batteries
		icon = GFX_developartillery
		prerequisite = { focus = POR_artillerybattalion focus = POR_loghtank }
		relative_position_id = POR_army
		x = 0
		y = 4
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_hearvy_art_batteries"
			add_tech_bonus = {
				name = POR_hearvy_art_batteries
				bonus = 2
				uses = 1
				category = artillery
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}


	focus = {
		id = POR_paratroop
		icon = GFX_focus_generic_paratrooper
		prerequisite = { focus = POR_army }
		relative_position_id = POR_army
		x = -3
		y = 1
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_paratroop"
			add_tech_bonus = {
				name = POR_paratroop
				bonus = 1
				uses = 1
				technology = paratroopers
				technology = paratroopers2
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = POR_wewerentexpectingspecialforces
		icon = GFX_goal_generic_special_forces
		prerequisite = { focus = POR_paratroop }
		relative_position_id = POR_army
		x = -3
		y = 2
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_wewerentexpectingspecialforces"
			add_tech_bonus = {
				name = POR_wewerentexpectingspecialforces
				bonus = 1
				uses = 1
				technology = marines
				technology = marines2
				technology = tech_mountaineers
				technology = tech_mountaineers2
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	## Air Tree ##
	focus = {
		id = POR_airforce
		icon = GFX_goal_POR_Airforce_Emblem
		available = {
			NOT = {
				has_idea = POR_black_monday
			}
		}
		x = 46
		y = 0
		cost = 5
		ai_will_do = {
			factor = 100
		}	
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_airforce"
			if = {
				limit = {
					capital_scope = {
						NOT = {
							free_building_slots = {
								building = air_base
								size > 1
							}
						}
					}
				}
				random_owned_state = {
					limit = {
						free_building_slots = {
							building = air_base
							size > 1
						}
					}
					add_building_construction = {
						type = air_base
						level = 1
						instant_build = yes
					}
					ROOT = {
						set_country_flag = aviation_effort_AB
					}
				}
			}
			if = {
				limit = {
					capital_scope = {
						free_building_slots = {
							building = air_base
							size > 1
						}
					}
				}
				capital_scope = {
					add_building_construction = {
						type = air_base
						level = 1
						instant_build = yes
					}
					ROOT = {
						set_country_flag = aviation_effort_AB
					}
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = POR_air_superiority
		icon = GFX_goal_generic_air_fighter_new
		prerequisite = { focus = POR_airforce }
		relative_position_id = POR_airforce
		x = -1
		y = 1
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_air_superiority"
			add_tech_bonus = {
				name = POR_air_superiority
				bonus = 1
				uses = 2
				technology = early_fighter
				technology = fighter1
				technology = fighter2
				technology = fighter3
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = POR_bomber
		icon = GFX_goal_generic_air_tactical_bomber_new
		prerequisite = { focus = POR_airforce }
		relative_position_id = POR_airforce
		x = 1
		y = 1
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_bomber"
			add_tech_bonus = {
				name = POR_bomber
				bonus = 1
				uses = 2
				category = tactical_bomber
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}


	focus = {
		id = POR_fighterefforto
		icon = GFX_goal_generic_air_heavy_fighter2_new
		prerequisite = { focus = POR_air_superiority }
		relative_position_id = POR_airforce
		x = -1
		y = 2
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_fighterefforto"
			add_tech_bonus = {
				name = POR_fighterefforto
				bonus = 1
				uses = 2
				technology = heavy_fighter1
				technology = heavy_fighter2
				technology = heavy_fighter3
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = POR_cas
		icon = GFX_goal_generic_air_CAS_new
		prerequisite = { focus = POR_bomber }
		relative_position_id = POR_airforce
		x = 1
		y = 2
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_cas"
			add_tech_bonus = {
				name = POR_cas
				bonus = 1
				uses = 1
				category = cas_bomber
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = POR_carrier_groups_1
		icon = GFX_goal_generic_navy_carrier
		prerequisite = { focus = POR_fighterefforto }
		prerequisite = { focus = POR_cas }
		relative_position_id = POR_airforce
		x = 0
		y = 3
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_carrier_groups_1"
			add_tech_bonus = {
				name = POR_carrier_groups_1
				bonus = 1
				uses = 2
				category = naval_air
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = POR_projection_of_airpower
		icon = GFX_goal_generic_air_doctrine
		prerequisite = { focus = POR_fighterefforto }
		relative_position_id = POR_airforce
		x = -1
		y = 4
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_projection_of_airpower"
			add_tech_bonus = {
				name = POR_projection_of_airpower
				bonus = 1
				uses = 2
				category = air_doctrine
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = POR_strategic_bomber
		icon = GFX_goal_generic_air_strategic_bomber_new
		prerequisite = { focus = POR_cas }
		relative_position_id = POR_airforce
		x = 1
		y = 4
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_strategic_bomber"
			add_tech_bonus = {
				name = POR_strategic_bomber
				bonus = 1
				uses = 2
				technology = strategic_bomber1
				technology = strategic_bomber2
				technology = strategic_bomber3
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = POR_carrier_groups_2
		icon = GFX_goal_generic_air_naval_bomber_new
		prerequisite = { focus = POR_carrier_groups_1 }
		relative_position_id = POR_airforce
		x = 0
		y = 5
		cost = 5
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus POR_carrier_groups_2"
			add_tech_bonus = {
				name = POR_carrier_groups_2
				bonus = 1
				uses = 2
				category = naval_air
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}
}
