
shared_focus = {
	id = SMB_army
	#icon = GFX_goal_panzerwaffe

	dynamic = yes

	icon = {
		trigger = {
			original_tag = CHL
		}
		value = GFX_focus_CHL_ejercito_de_chile
	}
	icon = {
		trigger = {
			original_tag = ARG
		}
		value = GFX_focus_ARG_army
	}
	icon = {
		trigger = {
			original_tag = BRA
		}
		value = GFX_focus_BRA_army
	}
	icon = {
		trigger = {
			NOT = {
				OR = {
					original_tag = CHL
					original_tag = ARG
					original_tag = BRA
				}
			}
		}
		value = GFX_goal_panzerwaffe
	} 

	x = 0
	y = 0
	offset = {
		x = 26
		y = 0
		trigger = {
			tag = BRA
		}
	}
	offset = {
		x = 48
		y = 0
		trigger = {
			tag = ARG 
		}
	}

	offset = {
		x = 74
		y = 0
		trigger = {
			tag = CHL
		}
	}

	offset = {
		x = 56
		y = 0
		trigger = {
			tag = PAR
		}
	}

	offset = {
		x = 51
		y = 0
		trigger = {
			tag = URG
		}
	}

	offset = {
		x = -29
		y = 0
		trigger = {
			has_game_rule = {
				rule = obsolete_focus_branches_visibility
				option = HIDE
			}
			tag = CHL
			has_completed_focus = CHL_look_to_tradition
		}	
	}

	offset = {
		x = -15
		y = 0
		trigger = {
			has_game_rule = {
				rule = obsolete_focus_branches_visibility
				option = HIDE
			}
			tag = CHL
			has_completed_focus = CHL_address_the_mapuche_conflict
		}
	}

	offset = {
		x = -38
		y = 0
		trigger = {
			has_game_rule = {
				rule = obsolete_focus_branches_visibility
				option = HIDE
			}
			has_completed_focus = CHL_endorse_the_constitution
		}
	}

	offset = {
		x = -42
		y = 0
		trigger = {
			has_game_rule = {
				rule = obsolete_focus_branches_visibility
				option = HIDE
			}
			has_completed_focus = CHL_denounce_the_anarchy
		}
	}

	offset = {
		x = -7
		y = 0
		trigger = {
			has_game_rule = {
				rule = obsolete_focus_branches_visibility
				option = HIDE
			}
			has_completed_focus = CHL_rule_by_decree
		}
	}

	offset = {
		x = -33
		y = 0
		trigger = {
			has_game_rule = {
				rule = obsolete_focus_branches_visibility
				option = HIDE
			}
			has_completed_focus = BRA_prepare_for_second_intentona
		}	
	}

	offset = {
		x = -15
		y = 0
		trigger = {
			has_game_rule = {
				rule = obsolete_focus_branches_visibility
				option = HIDE
			}
			has_completed_focus = BRA_end_the_state_of_emergency
		}	
	}

	offset = {
			x = -21
			y = 0
			trigger = {
				has_game_rule = {
					rule = obsolete_focus_branches_visibility
					option = HIDE
				}
				has_completed_focus = ARG_the_clean_election 
			}
		}

		offset = {
			x = -33
			y = 0
			trigger = {
				has_game_rule = {
					rule = obsolete_focus_branches_visibility
					option = HIDE
				}
				has_completed_focus = ARG_a_call_to_reform 
			}
		}

	cost = 5

	available = {

	}

	ai_will_do = {
			factor = 20
		}

	bypass = {
		
	}

	completion_reward = {

		army_experience = 25

		IF = {
			limit = {
				has_idea = idea_CHL_repubican_guard
			}
			remove_ideas = {
				idea_CHL_repubican_guard
			}
		}

		random_core_state = {
			limit = {
				free_building_slots = {
					building = arms_factory
					size > 0
					include_locked = yes
				}
				is_owned_and_controlled_by = ROOT
				NOT = {
					has_dynamic_modifier = { modifier = BRA_neglected_state_dynamic_modifier }
					OR = {
						state = 961
						state = 962
						state = 963
						state = 964
						state = 965
						state = 966
						state = 967
						state = 968
					}					
				}
			}
			add_extra_state_shared_building_slots = 1
			add_building_construction = {
				type = arms_factory
				level = 1
				instant_build = yes
			}
		}

		IF = {
			limit = {
				original_tag = CHL
			}
			add_dynamic_modifier = { modifier = CHL_army_modifier }
		}
		ELSE_IF = {
			limit = {
				original_tag = BRA
			}
			add_dynamic_modifier = { modifier = BRA_army_modifier }
		}
		ELSE_IF = {
			limit = {
				original_tag = ARG
			}
			add_dynamic_modifier = { modifier = ARG_army_modifier }
		}
		ELSE_IF = {
			limit = {
				original_tag = PAR
			}
			add_dynamic_modifier = { modifier = PAR_army_modifier }
		}
		ELSE_IF = {
			limit = {
				original_tag = URG
			}
			add_dynamic_modifier = { modifier = URG_army_modifier }
		}
		ELSE = {
			add_dynamic_modifier = { modifier = south_american_army_modifier }
		}
	}
}

shared_focus = {
	id = SMB_military_facilities
	icon = GFX_focus_generic_reorient_production
	relative_position_id = SMB_army
	prerequisite = { focus = SMB_army }
	x = -1
	y = 1

	cost = 5

	available = {
		any_owned_state = {
			is_controlled_by = ROOT
			free_building_slots = {
			    building = arms_factory
			    size > 1
			    include_locked = yes
			}
		}
	}

	bypass = {
		all_owned_state = {
			OR = {
				NOT = { is_controlled_by = ROOT }
				free_building_slots = {
					building = arms_factory
					size < 1
					include_locked = no
				}
			}
		}
	}

	ai_will_do = {
		factor = 20
	}

	completion_reward = {

		random_core_state = {
			limit = {
				free_building_slots = {
					building = arms_factory
					size > 0
					include_locked = yes
				}
				is_owned_and_controlled_by = ROOT
				NOT = {
					OR = {
						state = 961
						state = 962
						state = 963
						state = 964
						state = 965
						state = 966
						state = 967
						state = 968
					}
				}
			}
			add_extra_state_shared_building_slots = 1
			add_building_construction = {
				type = arms_factory
				level = 1
				instant_build = yes
			}
		}
		IF = {
			limit = {
				original_tag = CHL
			}
			custom_effect_tooltip = CHL_modify_chilean_army_ns_intro
			add_to_variable = { JUNO_army_production_speed_arms_factory_factor = 0.05 tooltip = production_speed_arms_factory_factor_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = BRA
			}
			custom_effect_tooltip = BRA_modify_brazilian_army_ns_intro
			add_to_variable = { JUNO_army_production_speed_arms_factory_factor = 0.05 tooltip = production_speed_arms_factory_factor_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = ARG
			}
			custom_effect_tooltip = ARG_modify_argentine_army_ns_intro
			add_to_variable = { JUNO_army_production_speed_arms_factory_factor = 0.05 tooltip = production_speed_arms_factory_factor_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = PAR
			}
			custom_effect_tooltip = PAR_modify_paraguayan_army_ns_intro
			add_to_variable = { JUNO_army_production_speed_arms_factory_factor = 0.05 tooltip = production_speed_arms_factory_factor_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = URG
			}
			custom_effect_tooltip = URG_modify_uruguayan_army_ns_intro
			add_to_variable = { JUNO_army_production_speed_arms_factory_factor = 0.05 tooltip = production_speed_arms_factory_factor_tt }
		}
		ELSE = {
			custom_effect_tooltip = JUNO_modify_south_american_army_ns_intro
			add_to_variable = { JUNO_army_production_speed_arms_factory_factor = 0.05 tooltip = production_speed_arms_factory_factor_tt }
		}

	}
}

shared_focus = {
	id = SMB_department_of_propaganda
	icon = GFX_goal_generic_propaganda
	relative_position_id = SMB_army
	prerequisite = { focus = SMB_army }
	x = -4
	y = 1

	cost = 10

	available = {
		OR = {
			has_war = yes
			threat > 0.49
		}
	}

	#offset = {
	#	x = -1
	#	y = 0
	#	trigger = {
	#		tag = BRA
	#	}
	#}

	bypass = {
		
	}

	ai_will_do = {
			factor = 20
		}

	completion_reward = {
	
		add_war_support = 0.1

		add_popularity = {
			ideology = ROOT
			popularity = 0.05
		}

	}
}

shared_focus = {  
	id = SMB_logistics_department
	icon = GFX_focus_generic_supply_line
	relative_position_id = SMB_army 
	prerequisite = { focus = SMB_army }  
	x = -6
	y = 1

	cost = 10

	#offset = {
	#	x = 3
	#	y = 0
	#	trigger = {
	#		tag = BRA
	#	}
	#}

	allow_branch = { 
		NOT = {
			original_tag = CHL
		}
	}

	available = {
		#OR = {
		#	has_war = yes
		#	threat > 0.49
		#}
	}

	bypass = {
		
	}

	ai_will_do = {
			factor = 20
		}

	completion_reward = {
		IF = {
			limit = {
				original_tag = CHL
			}
			custom_effect_tooltip = CHL_modify_chilean_army_ns_intro
			add_to_variable = { JUNO_supply_combat_penalties_on_core_factor = -0.15 tooltip = supply_combat_penalties_on_core_factor_tt }
			add_to_variable = { JUNO_modifier_production_speed_supply_node_factor = 0.25 tooltip = production_speed_supply_node_factor_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = BRA
			}
			custom_effect_tooltip = BRA_modify_brazilian_army_ns_intro
			add_to_variable = { JUNO_supply_combat_penalties_on_core_factor = -0.15 tooltip = supply_combat_penalties_on_core_factor_tt }
			add_to_variable = { JUNO_modifier_production_speed_supply_node_factor = 0.25 tooltip = production_speed_supply_node_factor_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = ARG
			}
			custom_effect_tooltip = ARG_modify_argentine_army_ns_intro
			add_to_variable = { JUNO_supply_combat_penalties_on_core_factor = -0.15 tooltip = supply_combat_penalties_on_core_factor_tt }
			add_to_variable = { JUNO_modifier_production_speed_supply_node_factor = 0.25 tooltip = production_speed_supply_node_factor_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = PAR
			}
			custom_effect_tooltip = PAR_modify_paraguayan_army_ns_intro
			add_to_variable = { JUNO_supply_combat_penalties_on_core_factor = -0.15 tooltip = supply_combat_penalties_on_core_factor_tt }
			add_to_variable = { JUNO_modifier_production_speed_supply_node_factor = 0.25 tooltip = production_speed_supply_node_factor_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = URG
			}
			custom_effect_tooltip = URG_modify_uruguayan_army_ns_intro
			add_to_variable = { JUNO_supply_combat_penalties_on_core_factor = -0.15 tooltip = supply_combat_penalties_on_core_factor_tt }
			add_to_variable = { JUNO_modifier_production_speed_supply_node_factor = 0.25 tooltip = production_speed_supply_node_factor_tt }
		}
		ELSE = {
			custom_effect_tooltip = JUNO_modify_south_american_army_ns_intro
			add_to_variable = { JUNO_supply_combat_penalties_on_core_factor = -0.15 tooltip = supply_combat_penalties_on_core_factor_tt }
			add_to_variable = { JUNO_modifier_production_speed_supply_node_factor = 0.25 tooltip = production_speed_supply_node_factor_tt }
		}
	}
}

shared_focus = {
	id = SMB_support_company
	icon = GFX_focus_generic_land_reclamation
	relative_position_id = SMB_logistics_department
	prerequisite = { focus = SMB_logistics_department }
	allow_branch = {
		OR = {
			TAG = ARG
			#TAG = CHL
			TAG = PAR
			TAG = URG
		}
	}
	x = 0
	y = 1

	cost = 5

	available = {

	}

	bypass = {
		
	}

	ai_will_do = {
			factor = 20
		}

	completion_reward = {
		#IF = {
		#	limit = {
		#		original_tag = BRA
		#	}
		#	add_tech_bonus = {
		#		name = JUNO_support_company_initiative
		#		bonus = 0.25
		#		uses = 1
		#		category = support_tech
		#	}
		#	set_technology = { TOA_jungle_pioneers_support_tech = 1 }
		#}
		#ELSE = {
			add_tech_bonus = {
				name = JUNO_support_company_initiative
				bonus = 0.25
				uses = 2
				category = support_tech
			}
		#}
	}
}

shared_focus = {
	id = SMB_department_of_military_intelligence
	icon = GFX_goal_generic_intelligence_exchange
	relative_position_id = SMB_department_of_propaganda
	prerequisite = { focus = SMB_department_of_propaganda }
	x = 0
	y = 1

	cost = 10

	available = {
	}

	allow_branch = {
		has_dlc = "La Resistance"
	}

	bypass = {
		
	}

	ai_will_do = {
			factor = 20
		}

	completion_reward = {

		IF = {
			limit = {
				original_tag = CHL
			}
			custom_effect_tooltip = CHL_modify_chilean_army_ns_intro
			add_to_variable = { JUNO_army_operative_slot = 1 tooltip = operative_slot_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = BRA
			}
			custom_effect_tooltip = BRA_modify_brazilian_army_ns_intro
			add_to_variable = { JUNO_army_operative_slot = 1 tooltip = operative_slot_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = ARG
			}
			custom_effect_tooltip = ARG_modify_argentine_army_ns_intro
			add_to_variable = { JUNO_army_operative_slot = 1 tooltip = operative_slot_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = PAR
			}
			custom_effect_tooltip = PAR_modify_paraguayan_army_ns_intro
			add_to_variable = { JUNO_army_operative_slot = 1 tooltip = operative_slot_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = URG
			}
			custom_effect_tooltip = URG_modify_uruguayan_army_ns_intro
			add_to_variable = { JUNO_army_operative_slot = 1 tooltip = operative_slot_tt }
		}
		ELSE = {
			custom_effect_tooltip = JUNO_modify_south_american_army_ns_intro
			add_to_variable = { JUNO_army_operative_slot = 1 tooltip = operative_slot_tt }
		}

		hidden_effect = {
			set_technology = {
				lar_decryption_bonus_tech = 1
				popup = no
			}
		}
		custom_effect_tooltip = lar_decryption_bonus_tt
	}
}

shared_focus = {
	id = SMB_motorized
	icon = GFX_focus_generic_truck
	relative_position_id = SMB_military_facilities
	prerequisite = { focus = SMB_military_facilities focus = SMB_army_academy }
	mutually_exclusive = { focus = SMB_regular_infantry }
	x = 0
	y = 1

	cost = 10

	available = {

	}

	bypass = {
		
	}

	ai_will_do = {
			factor = 10
		}

	completion_reward = {
		IF = {
			limit = {
				has_dlc = "Arms Against Tyranny"
				original_tag = BRA
			}
			IF = {
				limit = {
					NOT = { has_completed_focus = BRA_fabrica_nacional_de_motores }
				}
				custom_effect_tooltip = available_mio_tt
				show_mio_tooltip = BRA_fnm_organization
			}
			mio:BRA_fnm_organization = {
				add_mio_size = 1
			}

		}
		ELSE = {
			add_ideas = idea_JUNO_truck_production_cost
			add_tech_bonus = {
				name = JUNO_motorization_initiative
				bonus = 0.5
				uses = 2
				category = motorized_equipment
			}
		}
	}
}

shared_focus = {
	id = SMB_tank_warfare
	icon = GFX_goal_generic_army_tanks
	relative_position_id = SMB_motorized
	prerequisite = { focus = SMB_motorized focus = SMB_regular_infantry }
	x = 0
	y = 1

	cost = 5

	available = { 

	}

	bypass = {
		
	}

	ai_will_do = {
			factor = 20
		}

	completion_reward = {
		add_tech_bonus = {
			name = JUNO_armor_modernization_initiative
			bonus = 0.5
			uses = 2
			category = armor
		}

		custom_effect_tooltip = SMB_tank_warfare_tt
	}
}

shared_focus = {
	id = SMB_domestic_production
	icon = {
		trigger = {
			original_tag = BRA
		}
		value = GFX_focus_BRA_dec
	}
	icon = {
		trigger = {
			NOT = {
				original_tag = BRA
			}
		}
		value = GFX_goal_generic_amphibious_assault
	} 
	mutually_exclusive = { focus = SMB_foreign_designs }
	relative_position_id = SMB_tank_warfare
	prerequisite = { focus = SMB_tank_warfare }
	x = 0
	y = 1

	cost = 5

	available = {

	}

	bypass = {
		
	}

	ai_will_do = {
			factor = 10
		}

	completion_reward = {
		IF = {
			limit = {
				original_tag = CHL
			}
			custom_effect_tooltip = CHL_modify_chilean_army_ns_intro
			add_to_variable = { JUNO_army_modifier_industrial_capacity_factory = 0.05 tooltip = industrial_capacity_factory_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = BRA
			}
			custom_effect_tooltip = BRA_modify_brazilian_army_ns_intro
			add_to_variable = { JUNO_army_modifier_industrial_capacity_factory = 0.05 tooltip = industrial_capacity_factory_tt }
			IF = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}		
				custom_effect_tooltip = available_mio_tt
				show_mio_tooltip = BRA_bernadini_organization
				mio:BRA_bernadini_organization = {
					add_mio_size = 2
				}
			}
		}
		ELSE_IF = {
			limit = {
				original_tag = ARG
			}
			custom_effect_tooltip = ARG_modify_argentine_army_ns_intro
			add_to_variable = { JUNO_army_modifier_industrial_capacity_factory = 0.05 tooltip = industrial_capacity_factory_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = PAR
			}
			custom_effect_tooltip = PAR_modify_paraguayan_army_ns_intro
			add_to_variable = { JUNO_army_modifier_industrial_capacity_factory = 0.05 tooltip = industrial_capacity_factory_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = URG
			}
			custom_effect_tooltip = URG_modify_uruguayan_army_ns_intro
			add_to_variable = { JUNO_army_modifier_industrial_capacity_factory = 0.05 tooltip = industrial_capacity_factory_tt }
		}
		ELSE = {
			custom_effect_tooltip = JUNO_modify_south_american_army_ns_intro
			add_to_variable = { JUNO_army_modifier_industrial_capacity_factory = 0.05 tooltip = industrial_capacity_factory_tt }
		}
	}
}

shared_focus = {
	id = SMB_tierra_del_fuego_training
	icon = GFX_focus_SMB_tierra_del_fuego_training
	mutually_exclusive = { focus = SMB_atacama_training }
	relative_position_id = SMB_domestic_production
	prerequisite = { focus = SMB_domestic_production focus = SMB_foreign_designs }
	x = -2
	y = 1

	cost = 5

	available = {
		OR = {
			controls_state = 953
			controls_state = 507
		}
	}

	bypass = {
		
	}

	allow_branch = {
		OR = {
			original_tag = ARG
			original_tag = CHL
		}
	}

	ai_will_do = {
			factor = 10
		}

	completion_reward = {
		IF = {
			limit = {
				original_tag = CHL
			}
			custom_effect_tooltip = CHL_modify_chilean_army_ns_intro
			add_to_variable = { JUNO_army_modifier_acclimatization_cold_climate_gain_factor = 0.15 tooltip = acclimatization_cold_climate_gain_factor_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = BRA
			}
			custom_effect_tooltip = BRA_modify_brazilian_army_ns_intro
			add_to_variable = { JUNO_army_modifier_acclimatization_cold_climate_gain_factor = 0.15 tooltip = acclimatization_cold_climate_gain_factor_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = ARG
			}
			custom_effect_tooltip = ARG_modify_argentine_army_ns_intro
			add_to_variable = { JUNO_army_modifier_acclimatization_cold_climate_gain_factor = 0.15 tooltip = acclimatization_cold_climate_gain_factor_tt }
		}
		ELSE = { 
			custom_effect_tooltip = JUNO_modify_south_american_army_ns_intro
			add_to_variable = { JUNO_army_modifier_acclimatization_cold_climate_gain_factor = 0.15 tooltip = acclimatization_cold_climate_gain_factor_tt }
		}
	}
}

shared_focus = {
	id = SMB_atacama_training
	icon = GFX_focus_SMB_atacama_training
	mutually_exclusive = { focus = SMB_tierra_del_fuego_training }
	relative_position_id = SMB_domestic_production
	prerequisite = { focus = SMB_domestic_production focus = SMB_foreign_designs }
	x = -4
	y = 1

	cost = 5

	available = {
		OR = {
			controls_state = 951
			controls_state = 506
			controls_state = 952
			controls_state = 959
			controls_state = 508
			controls_state = 960
		}
	}

	bypass = {
		
	}

	allow_branch = {
		OR = {
			original_tag = ARG
			original_tag = CHL
		}
	}

	completion_reward = {
		IF = {
			limit = {
				original_tag = CHL
			}
			custom_effect_tooltip = CHL_modify_chilean_army_ns_intro
			add_to_variable = { JUNO_army_modifier_acclimatization_hot_climate_gain_factor = 0.15 tooltip = acclimatization_hot_climate_gain_factor_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = BRA
			}
			custom_effect_tooltip = BRA_modify_brazilian_army_ns_intro
			add_to_variable = { JUNO_army_modifier_acclimatization_hot_climate_gain_factor = 0.15 tooltip = acclimatization_hot_climate_gain_factor_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = ARG
			}
			custom_effect_tooltip = ARG_modify_argentine_army_ns_intro
			add_to_variable = { JUNO_army_modifier_acclimatization_hot_climate_gain_factor = 0.15 tooltip = acclimatization_hot_climate_gain_factor_tt }
		}
		ELSE = {
			custom_effect_tooltip = JUNO_modify_south_american_army_ns_intro
			add_to_variable = { JUNO_army_modifier_acclimatization_hot_climate_gain_factor = 0.15 tooltip = acclimatization_hot_climate_gain_factor_tt }
		}
	}
}

shared_focus = {
	id = SMB_a_land_of_mountains
	icon = GFX_focus_SMB_a_land_of_mountains
	#mutually_exclusive = { focus = SMB_tierra_del_fuego_training }
	relative_position_id = SMB_atacama_training
	prerequisite = { focus = SMB_atacama_training focus = SMB_tierra_del_fuego_training }
	x = 1
	y = 1

	cost = 10

	available = {

	}

	bypass = {
		
	}

	allow_branch = {
		original_tag = CHL
	}

	ai_will_do = {
			factor = 10
		}

	completion_reward = {
		custom_effect_tooltip = GRE_mountain_training_effect
		hidden_effect = { set_technology = { mountain_warfare = 1 } }
	}
}

shared_focus = {
	id = SMB_mechanized_troops
	icon = GFX_goal_generic_army_motorized
	relative_position_id = SMB_tank_warfare
	prerequisite = { focus = SMB_tank_warfare }
	prerequisite = { focus = SMB_motorized}
	x = -2
	y = 1

	cost = 10

	available = {

	}

	bypass = {
		
	}

	ai_will_do = {
			factor = 20
		}

	completion_reward = {
		add_tech_bonus = {
			name = motorized_bonus
			ahead_reduction = 2
			uses = 1
			category = motorized_equipment
		}
		add_tech_bonus = {
			name = JUNO_armor_modernization_initiative
			bonus = 0.5
			uses = 2
			category = motorized_equipment
		}
	}
}

shared_focus = {
	id = SMB_army_academy
	icon = {
		trigger = {
			original_tag = BRA
		}
		value = GFX_focus_BRA_agulhas_negras
	}
	icon = {
		trigger = {
			NOT = {
				original_tag = BRA
			}
		}
		value = GFX_focus_ETH_ecole_militaire_haile_selassie_1er
	} 
	relative_position_id = SMB_army
	prerequisite = { focus = SMB_army }
	x = 1
	y = 1

	cost = 10

	ai_will_do = {
			factor = 20
		}

	available = {

	}

	bypass = {
		 
	}

	completion_reward = {
		custom_effect_tooltip = JUNO_army_academy_random_generals_tt
		hidden_effect = {
			random_army_leader = {		
				add_planning = 1
			}
			random_army_leader = {			
				add_planning = 1
			} 
			random_army_leader = {			
				add_planning = 1
			}
		}

		IF = {
			limit = {
				original_tag = CHL
			}
			custom_effect_tooltip = CHL_modify_chilean_army_ns_intro
			add_to_variable = { JUNO_army_modifier_experience_gain_army_factor = 0.05 tooltip = experience_gain_army_factor_tt }
			add_to_variable = { JUNO_army_modifier_army_org_factor = 0.03 tooltip = army_org_factor_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = BRA
			}
			custom_effect_tooltip = BRA_modify_brazilian_army_ns_intro
			add_to_variable = { JUNO_army_modifier_experience_gain_army_factor = 0.05 tooltip = experience_gain_army_factor_tt }
			add_to_variable = { JUNO_army_modifier_army_org_factor = 0.03 tooltip = army_org_factor_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = ARG
			}
			custom_effect_tooltip = ARG_modify_argentine_army_ns_intro
			add_to_variable = { JUNO_army_modifier_experience_gain_army_factor = 0.05 tooltip = experience_gain_army_factor_tt }
			add_to_variable = { JUNO_army_modifier_army_org_factor = 0.03 tooltip = army_org_factor_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = PAR
			}
			custom_effect_tooltip = PAR_modify_paraguayan_army_ns_intro
			add_to_variable = { JUNO_army_modifier_experience_gain_army_factor = 0.05 tooltip = experience_gain_army_factor_tt }
			add_to_variable = { JUNO_army_modifier_army_org_factor = 0.03 tooltip = army_org_factor_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = URG
			}
			custom_effect_tooltip = URG_modify_uruguayan_army_ns_intro
			add_to_variable = { JUNO_army_modifier_experience_gain_army_factor = 0.05 tooltip = experience_gain_army_factor_tt }
			add_to_variable = { JUNO_army_modifier_army_org_factor = 0.03 tooltip = army_org_factor_tt }
		}
		ELSE = {
			custom_effect_tooltip = JUNO_modify_south_american_army_ns_intro
			add_to_variable = { JUNO_army_modifier_experience_gain_army_factor = 0.05 tooltip = experience_gain_army_factor_tt }
			add_to_variable = { JUNO_army_modifier_army_org_factor = 0.03 tooltip = army_org_factor_tt }
		}
	}
}

shared_focus = {
	id = SMB_regular_infantry
	icon = GFX_goal_generic_allies_build_infantry
	relative_position_id = SMB_army_academy
	prerequisite = { focus = SMB_army_academy focus = SMB_military_facilities }
	mutually_exclusive = { focus = SMB_motorized }
	x = 0
	y = 1

	cost = 10

	ai_will_do = {
			factor = 20
		}

	available = {

	}

	bypass = {
		
	}

	completion_reward = {

		IF = {
			limit = {
				original_tag = CHL
			}
			custom_effect_tooltip = CHL_modify_chilean_army_ns_intro
			add_to_variable = { JUNO_army_modifier_army_org_factor = 0.02 tooltip = army_org_factor_tt }
			add_to_variable = { JUNO_army_modifier_army_core_defence_factor = 0.04 tooltip = army_core_defence_factor_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = BRA
			}
			custom_effect_tooltip = BRA_modify_brazilian_army_ns_intro
			add_to_variable = { JUNO_army_modifier_army_org_factor = 0.02 tooltip = army_org_factor_tt }
			add_to_variable = { JUNO_army_modifier_army_core_defence_factor = 0.04 tooltip = army_core_defence_factor_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = ARG
			}
			custom_effect_tooltip = ARG_modify_argentine_army_ns_intro
			add_to_variable = { JUNO_army_modifier_army_org_factor = 0.02 tooltip = army_org_factor_tt }
			add_to_variable = { JUNO_army_modifier_army_core_defence_factor = 0.04 tooltip = army_core_defence_factor_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = PAR
			}
			custom_effect_tooltip = PAR_modify_paraguayan_army_ns_intro
			add_to_variable = { JUNO_army_modifier_army_org_factor = 0.02 tooltip = army_org_factor_tt }
			add_to_variable = { JUNO_army_modifier_army_core_defence_factor = 0.04 tooltip = army_core_defence_factor_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = URG
			}
			custom_effect_tooltip = URG_modify_uruguayan_army_ns_intro
			add_to_variable = { JUNO_army_modifier_army_org_factor = 0.02 tooltip = army_org_factor_tt }
			add_to_variable = { JUNO_army_modifier_army_core_defence_factor = 0.04 tooltip = army_core_defence_factor_tt }
		}
		ELSE = {
			custom_effect_tooltip = JUNO_modify_south_american_army_ns_intro
			add_to_variable = { JUNO_army_modifier_army_org_factor = 0.02 tooltip = army_org_factor_tt }
			add_to_variable = { JUNO_army_modifier_army_core_defence_factor = 0.04 tooltip = army_core_defence_factor_tt }
		}

		add_tech_bonus = {
			name = JUNO_army_modernization_initiative
			bonus = 0.35	
			uses = 1
			category = infantry_weapons
		}
	}
}

shared_focus = {
	id = SMB_artillery
	icon = GFX_goal_generic_army_artillery2
	relative_position_id = SMB_regular_infantry
	prerequisite = { focus = SMB_regular_infantry focus = SMB_motorized}
	x = 0
	y = 1

	cost = 5

	ai_will_do = {
			factor = 20
		}

	available = {

	}

	bypass = {
		
	}

	completion_reward = {

		add_tech_bonus = {
			name = JUNO_artilery_modernization_initiative
			bonus = 0.5
			uses = 1
			category = artillery
		}

		country_event = {
			id = south_american_events.2
			hours = 0
		}	
	}
}

shared_focus = {
	id = SMB_foreign_designs
	icon = GFX_focus_generic_license_production
	mutually_exclusive = { focus = SMB_domestic_production }
	relative_position_id = SMB_artillery
	prerequisite = { focus = SMB_tank_warfare focus = SMB_artillery}
	x = 0
	y = 1

	cost = 5

	ai_will_do = {
			factor = 20
		}

	available = {
		NOT = {
			has_idea = JUNO_license_idea
		}
	}

	bypass = {
		
	}

	completion_reward = {
		IF = {
			limit = {
				has_dlc = "Arms Against Tyranny"
			}
			add_equipment_subsidy = {
				cic = 1000
				equipment_type = infantry_equipment
				seller_tags = { USA JAP ENG FRA ITA GER MEX SOV } 
			}
			add_equipment_subsidy = {
				cic = 1000
				equipment_type = motorized_equipment
				seller_tags = { USA JAP ENG FRA ITA GER MEX SOV } 
			}
			add_equipment_subsidy = {
				cic = 1000
				equipment_type = artillery_equipment
				seller_tags = { USA JAP ENG FRA ITA GER MEX SOV } 
			}
			add_equipment_subsidy = {
				cic = 1000
				equipment_type = anti_air_equipment
				seller_tags = { USA JAP ENG FRA ITA GER MEX SOV } 
			}
			if = {
				limit = {
					original_tag = BRA
				}
				custom_effect_tooltip = available_mio_tt
				show_mio_tooltip = BRA_bernadini_organization
				mio:BRA_bernadini_organization = {
					add_mio_size = 2
				}
			}
		}

		IF = {
			limit = {
				NOT = {
					has_idea = JUNO_license_idea
				}
			}
			add_ideas = JUNO_license_idea
		} 
	}
}

shared_focus = {
	id = SMB_foreign_advisors
	icon = GFX_focus_generic_military_mission
	relative_position_id = SMB_domestic_production
	prerequisite = { focus = SMB_domestic_production focus = SMB_foreign_designs}
	x = 1
	y = 1

	cost = 5

	ai_will_do = {
			factor = 20
		}

	available = { 

	}

	bypass = {
		
	}

	completion_reward = {
		custom_effect_tooltip = SMB_foreign_advisors_tt
	}
}

shared_focus = {
	id = SMB_army_professionalism
	icon = GFX_focus_generic_full_social_mobilization
	relative_position_id = SMB_foreign_advisors
	prerequisite = { focus = SMB_foreign_advisors }
	mutually_exclusive = { focus = SMB_conscription }
	x = -2
	y = 1

	cost = 10

	ai_will_do = {
			factor = 20
		}

	available = {

	}

	bypass = {
		
	}

	completion_reward = {
		IF = {
			limit = {
				original_tag = CHL
			}
			custom_effect_tooltip = CHL_modify_chilean_army_ns_intro
			add_to_variable = { JUNO_army_modifier_training_time_factor = 0.15 tooltip = training_time_factor_tt }
			add_to_variable = { JUNO_army_modifier_army_attack_factor = 0.02 tooltip = army_attack_factor_tt }
			add_to_variable = { JUNO_army_modifier_army_org_factor = 0.01 tooltip = army_org_factor_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = BRA
			}
			custom_effect_tooltip = BRA_modify_brazilian_army_ns_intro
			add_to_variable = { JUNO_army_modifier_training_time_factor = 0.15 tooltip = training_time_factor_tt }
			add_to_variable = { JUNO_army_modifier_army_attack_factor = 0.02 tooltip = army_attack_factor_tt }
			add_to_variable = { JUNO_army_modifier_army_org_factor = 0.01 tooltip = army_org_factor_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = ARG
			}
			custom_effect_tooltip = ARG_modify_argentine_army_ns_intro
			add_to_variable = { JUNO_army_modifier_training_time_factor = 0.15 tooltip = training_time_factor_tt }
			add_to_variable = { JUNO_army_modifier_army_attack_factor = 0.02 tooltip = army_attack_factor_tt }
			add_to_variable = { JUNO_army_modifier_army_org_factor = 0.01 tooltip = army_org_factor_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = PAR
			}
			custom_effect_tooltip = PAR_modify_paraguayan_army_ns_intro
			add_to_variable = { JUNO_army_modifier_training_time_factor = 0.15 tooltip = training_time_factor_tt }
			add_to_variable = { JUNO_army_modifier_army_attack_factor = 0.02 tooltip = army_attack_factor_tt }
			add_to_variable = { JUNO_army_modifier_army_org_factor = 0.01 tooltip = army_org_factor_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = URG
			}
			custom_effect_tooltip = URG_modify_uruguayan_army_ns_intro
			add_to_variable = { JUNO_army_modifier_training_time_factor = 0.15 tooltip = training_time_factor_tt }
			add_to_variable = { JUNO_army_modifier_army_attack_factor = 0.02 tooltip = army_attack_factor_tt }
			add_to_variable = { JUNO_army_modifier_army_org_factor = 0.01 tooltip = army_org_factor_tt }
		}
		ELSE = {
			custom_effect_tooltip = JUNO_modify_south_american_army_ns_intro
			add_to_variable = { JUNO_army_modifier_training_time_factor = 0.15 tooltip = training_time_factor_tt }
			add_to_variable = { JUNO_army_modifier_army_attack_factor = 0.02 tooltip = army_attack_factor_tt }
			add_to_variable = { JUNO_army_modifier_army_org_factor = 0.01 tooltip = army_org_factor_tt }
		}
	}
}

shared_focus = {
	id = SMB_conscription
	icon = GFX_focus_generic_limited_social_mobilization
	relative_position_id = SMB_foreign_advisors
	prerequisite = { focus = SMB_foreign_advisors }
	mutually_exclusive = { focus = SMB_army_professionalism }
	x = 2
	y = 1
 
	cost = 10

	available = {

	}

	bypass = {
		
	}

	ai_will_do = {
			factor = 10
		}

	completion_reward = {
		IF = {
			limit = {
				original_tag = CHL
			}
			custom_effect_tooltip = CHL_modify_chilean_army_ns_intro
			add_to_variable = { JUNO_army_modifier_training_time_factor = 0.25 tooltip = training_time_factor_tt }
			add_to_variable = { JUNO_army_modifier_max_planning_factor = 0.05 tooltip = max_planning_factor_tt }
			add_to_variable = { JUNO_army_modifier_army_artillery_defence_factor = 0.05 tooltip = army_artillery_defence_factor_tt }
			add_to_variable = { JUNO_army_modifier_conscription = 0.015 tooltip = conscription_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = BRA
			}
			custom_effect_tooltip = BRA_modify_brazilian_army_ns_intro
			add_to_variable = { JUNO_army_modifier_training_time_factor = 0.15 tooltip = training_time_factor_tt }
			add_to_variable = { JUNO_army_modifier_conscription = 0.015 tooltip = conscription_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = ARG
			}
			custom_effect_tooltip = ARG_modify_argentine_army_ns_intro
			add_to_variable = { JUNO_army_modifier_training_time_factor = 0.15 tooltip = training_time_factor_tt }
			add_to_variable = { JUNO_army_modifier_conscription = 0.015 tooltip = conscription_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = PAR
			}
			custom_effect_tooltip = PAR_modify_paraguayan_army_ns_intro
			add_to_variable = { JUNO_army_modifier_training_time_factor = 0.15 tooltip = training_time_factor_tt }
			add_to_variable = { JUNO_army_modifier_conscription = 0.015 tooltip = conscription_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = URG
			}
			custom_effect_tooltip = URG_modify_uruguayan_army_ns_intro
			add_to_variable = { JUNO_army_modifier_training_time_factor = 0.15 tooltip = training_time_factor_tt }
			add_to_variable = { JUNO_army_modifier_conscription = 0.015 tooltip = conscription_tt }
		}
		ELSE = {
			custom_effect_tooltip = JUNO_modify_south_american_army_ns_intro
			add_to_variable = { JUNO_army_modifier_training_time_factor = 0.15 tooltip = training_time_factor_tt }
			add_to_variable = { JUNO_army_modifier_conscription = 0.015 tooltip = conscription_tt }
		}
	}
}

shared_focus = {
	id = SMB_experimental_weapons_department
	icon = GFX_focus_rocketry
	relative_position_id = SMB_foreign_advisors
	prerequisite = { focus = SMB_army_professionalism focus = SMB_conscription }
	x = 0
	y = 2

	cost = 10

	available = {

	}

	bypass = {
		
	}

	ai_will_do = {
			factor = 20
		}

	completion_reward = {

		add_breakthrough_progress = {
			specialization = specialization_air
			value = 0.75
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		add_ideas = generic_secret_weapons_ns

		#add_tech_bonus = {
		#	name = secret_bonus
		#	bonus = 0.5
		#	uses = 2
		#	category = electronics
		#	category = nuclear
		#	category = rocketry
		#}

	}
}

shared_focus = {
	id = SMB_nuclear_program
	icon = GFX_focus_wonderweapons
	relative_position_id = SMB_experimental_weapons_department
	prerequisite = { focus = SMB_experimental_weapons_department }
	prerequisite = { focus = SMB_strategic_bombing }
	x = 3
	y = 1

	cost = 10

	available = {

	}

	bypass = {
		
	}

	ai_will_do = {
		factor = 20
	} 

	completion_reward = {

		if = {
			limit = {
				NOT = {
					has_tech = atomic_research
				}
			}
			add_tech_bonus = {
				name = JUNO_nuclear_initiative
				ahead_reduction = 2
				bonus = 1
				uses = 1
				category = nuclear
			}
			add_breakthrough_progress = {
				specialization = specialization_nuclear
				value = 0.25
			}
		}
		else = {
			add_breakthrough_progress = {
				specialization = specialization_nuclear
				value = 0.75
			}
		}

	}   
}  
 
shared_focus = {
	id = SMB_special_forces
	icon = GFX_focus_eng_special_air_service
	relative_position_id = SMB_army_professionalism
	prerequisite = { focus = SMB_army_professionalism focus = SMB_conscription }
	x = -2
	y = 1

	cost = 5 
 
	available = {  

	}  

	bypass = {
		
	}

	ai_will_do = {
			factor = 20
		}   

	completion_reward = {
		IF = {
			limit = {
				has_dlc = "Arms Against Tyranny"
			}
			add_potential_special_forces_tree = yes
			add_doctrine_cost_reduction = {
				name = JUNO_expand_the_special_foces
				cost_reduction = 0.25
				uses = 1
				category = special_forces_doctrine
			}
		}

		IF = {
			limit = {
				original_tag = CHL
			}
			custom_effect_tooltip = CHL_modify_chilean_army_ns_intro
			add_to_variable = { JUNO_army_modifier_special_forces_cap = 0.15 tooltip = special_forces_cap_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = BRA
			}
			custom_effect_tooltip = BRA_modify_brazilian_army_ns_intro
			add_to_variable = { JUNO_army_modifier_special_forces_cap = 0.15 tooltip = special_forces_cap_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = ARG
			}
			custom_effect_tooltip = ARG_modify_argentine_army_ns_intro
			add_to_variable = { JUNO_army_modifier_special_forces_cap = 0.15 tooltip = special_forces_cap_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = PAR
			}
			custom_effect_tooltip = PAR_modify_paraguayan_army_ns_intro
			add_to_variable = { JUNO_army_modifier_special_forces_cap = 0.15 tooltip = special_forces_cap_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = URG
			}
			custom_effect_tooltip = URG_modify_uruguayan_army_ns_intro
			add_to_variable = { JUNO_army_modifier_special_forces_cap = 0.15 tooltip = special_forces_cap_tt }
		}
		ELSE = {
			custom_effect_tooltip = JUNO_modify_south_american_army_ns_intro
			add_to_variable = { JUNO_army_modifier_special_forces_cap = 0.15 tooltip = special_forces_cap_tt }
		}
	}
}

shared_focus = {
	id = SMB_special_forces_option_1
	icon = GFX_focus_SMB_special_forces_option_1
	relative_position_id = SMB_special_forces
	prerequisite = { focus = SMB_special_forces }
	mutually_exclusive = { focus = SMB_special_forces_option_2 focus = SMB_special_forces_option_3 }
	x = -2
	y = 1

	cost = 5

	available = {

	}

	bypass = {
		
	}

	ai_will_do = {
			factor = 10
		}

	allow_branch = {
		NOT = {
			OR = {
				original_tag = BRA
				original_tag = ARG
			}
		}
	}

	offset = {
		x = 1
		y = 0
		trigger = {
			OR = {
				original_tag = CHL
				original_tag = URG
				original_tag = PAR
				original_tag = BOL
			}
		}
	}

	completion_reward = {
		IF = {
			limit = { NOT = { has_tech = tech_mountaineers }}
			set_technology = { tech_mountaineers = 1 }
		}
		ELSE_IF = {
			limit = { NOT = { has_tech = tech_mountaineers2 }}
			set_technology = { tech_mountaineers2 = 1 }
		}
		ELSE_IF = {
			limit = { NOT = { has_tech = tech_mountaineers3 }}
			set_technology = { tech_mountaineers3 = 1 }
		}

		IF = {
			limit = {
				has_dlc = "Arms Against Tyranny"
			}
			add_doctrine_cost_reduction = {
				name = JUNO_expand_the_special_foces
				cost_reduction = 0.25
				uses = 1
				category = special_forces_doctrine
			}
		}
	}
}

shared_focus = {
	id = SMB_special_forces_option_2
	icon = {
		trigger = {
			original_tag = BRA
		}
		value = GFX_focus_BRA_corpo_navais
	}
	icon = {
		trigger = {
			NOT = {
				original_tag = BRA
			}
		}
		value = GFX_goal_generic_amphibious_assault
	} 
	relative_position_id = SMB_special_forces
	prerequisite = { focus = SMB_special_forces }
	mutually_exclusive = { focus = SMB_special_forces_option_1 focus = SMB_special_forces_option_3 }
	x = 2
	y = 1

	cost = 5

	available = {

	}

	bypass = {
		
	}

	ai_will_do = {
			factor = 10
		}

	offset = {
		x = -1
		y = 0
		trigger = {
			OR = {
				original_tag = CHL
				original_tag = URG
				original_tag = PAR
				original_tag = BOL
				original_tag = BRA
				original_tag = ARG
			}
		}
	}

	completion_reward = {
		IF = {
			limit = { NOT = { has_tech = marines }}
			set_technology = { marines = 1 }
		}
		ELSE_IF = {
			limit = { NOT = { has_tech = marines2 }}
			set_technology = { marines2 = 1 }
		}
		ELSE_IF = {
			limit = { NOT = { has_tech = marines3 }}
			set_technology = { marines3 = 1 }
		}

		IF = {
			limit = {
				has_dlc = "Arms Against Tyranny"
			}
			add_doctrine_cost_reduction = {
				name = JUNO_expand_the_special_foces
				cost_reduction = 0.25
				uses = 1
				category = special_forces_doctrine
			}
		}
	}
}

shared_focus = {
	id = SMB_special_forces_option_3
	icon = GFX_focus_SMB_special_forces_option_3 
	relative_position_id = SMB_special_forces
	prerequisite = { focus = SMB_special_forces }
	mutually_exclusive = { focus = SMB_special_forces_option_1 focus = SMB_special_forces_option_2 }
	x = 0
	y = 1

	cost = 5

	allow_branch = {
		NOT = {
			OR = {
				original_tag = CHL
				original_tag = URG
				original_tag = PAR
				original_tag = BOL
			}
		}
	}

	offset = {
		x = -1
		y = 0
		trigger = {
			OR = {
				original_tag = BRA
				original_tag = ARG
			}
		}
	}
 
	available = {

	}

	bypass = {
		 
	}

	ai_will_do = {
			factor = 10
		} 

	completion_reward = {
		IF = {
			limit = { NOT = { has_tech = paratroopers }}
			set_technology = { paratroopers = 1 }
		}
		ELSE_IF = {
			limit = { NOT = { has_tech = paratroopers2 }}
			set_technology = { paratroopers2 = 1 }
		}
		ELSE_IF = {
			limit = { NOT = { has_tech = paratroopers3 }}
			set_technology = { paratroopers3 = 1 }
		}

		IF = {
			limit = {
				has_dlc = "Arms Against Tyranny"
			}
			add_doctrine_cost_reduction = {
				name = JUNO_expand_the_special_foces
				cost_reduction = 0.25
				uses = 1
				category = special_forces_doctrine
			}
		}
	}
}

shared_focus = {
	id = SMB_special_forces_option_3_continuation
	icon = GFX_goal_generic_build_airforce 
	relative_position_id = SMB_special_forces_option_3
	prerequisite = { focus = SMB_special_forces_option_3 }

	x = 0
	y = 1

	cost = 5
 
	available = {

	}

	bypass = {
		 
	}

	ai_will_do = {
			factor = 20
		} 

	completion_reward = {

		IF = {
			limit = {
				original_tag = CHL
			}
			custom_effect_tooltip = CHL_modify_chilean_army_ns_intro
			add_to_variable = { JUNO_army_modifier_special_forces_out_of_supply_factor = -0.15 tooltip = special_forces_out_of_supply_factor_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = BRA
			}
			custom_effect_tooltip = BRA_modify_brazilian_army_ns_intro
			add_to_variable = { JUNO_army_modifier_special_forces_out_of_supply_factor = -0.15 tooltip = special_forces_out_of_supply_factor_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = ARG
			}
			custom_effect_tooltip = ARG_modify_argentine_army_ns_intro
			add_to_variable = { JUNO_army_modifier_special_forces_out_of_supply_factor = -0.15 tooltip = special_forces_out_of_supply_factor_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = PAR
			}
			custom_effect_tooltip = PAR_modify_paraguayan_army_ns_intro
			add_to_variable = { JUNO_army_modifier_special_forces_out_of_supply_factor = -0.15 tooltip = special_forces_out_of_supply_factor_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = URG
			}
			custom_effect_tooltip = URG_modify_uruguayan_army_ns_intro
			add_to_variable = { JUNO_army_modifier_special_forces_out_of_supply_factor = -0.15 tooltip = special_forces_out_of_supply_factor_tt }
		}
		ELSE = {
			custom_effect_tooltip = JUNO_modify_south_american_army_ns_intro
			add_to_variable = { JUNO_army_modifier_special_forces_out_of_supply_factor = -0.15 tooltip = special_forces_out_of_supply_factor_tt }
		}

		IF = {
			limit = { has_dlc = "No Step Back" }
			IF = {
				limit = {
					NOT = {
						has_tech = basic_light_tank_chassis
					}
				}
				set_technology = { basic_light_tank_chassis = 1 }
			}
			ELSE_IF = {
				limit = {
					NOT = {
						has_tech = improved_light_tank_chassis
					}
				}
				set_technology = { improved_light_tank_chassis = 1 }
			}
			ELSE_IF = {
				limit = {
					NOT = {
						has_tech = advanced_light_tank_chassis
					}
				}
				set_technology = { advanced_light_tank_chassis = 1 }
			}
		}
		ELSE = {
			IF = {
				limit = {
					NOT = {
						has_tech = basic_light_tank
					}
				}
				set_technology = { basic_light_tank = 1 }
			}
			ELSE_IF = {
				limit = {
					NOT = {
						has_tech = improved_light_tank
					}
				}
				set_technology = { improved_light_tank = 1 }
			}
			ELSE_IF = {
				limit = {
					NOT = {
						has_tech = advanced_light_tank
					}
				}
				set_technology = { advanced_light_tank = 1 }
			}
		}
		army_experience = 15
		air_experience = 15
	}
}

shared_focus = {
	id = SMB_special_forces_option_2_continuation 
	icon = GFX_goal_generic_occupy_states_coastal 
	relative_position_id = SMB_special_forces_option_2
	prerequisite = { focus = SMB_special_forces_option_2 }

	x = 0
	y = 1

	cost = 5
 
	available = {

	}

	bypass = {
		 
	}

	ai_will_do = {
			factor = 20
		} 


	completion_reward = {

		IF = {
			limit = {
				original_tag = CHL
			}
			custom_effect_tooltip = CHL_modify_chilean_army_ns_intro
			add_to_variable = { JUNO_army_modifier_extra_marine_supply_grace = 48 tooltip = extra_marine_supply_grace_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = BRA
			}
			custom_effect_tooltip = BRA_modify_brazilian_army_ns_intro
			add_to_variable = { JUNO_army_modifier_extra_marine_supply_grace = 48 tooltip = extra_marine_supply_grace_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = ARG
			}
			custom_effect_tooltip = ARG_modify_argentine_army_ns_intro
			add_to_variable = { JUNO_army_modifier_extra_marine_supply_grace = 48 tooltip = extra_marine_supply_grace_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = PAR
			}
			custom_effect_tooltip = PAR_modify_paraguayan_army_ns_intro
			add_to_variable = { JUNO_army_modifier_extra_marine_supply_grace = 48 tooltip = extra_marine_supply_grace_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = URG
			}
			custom_effect_tooltip = URG_modify_uruguayan_army_ns_intro
			add_to_variable = { JUNO_army_modifier_extra_marine_supply_grace = 48 tooltip = extra_marine_supply_grace_tt }
		}
		ELSE = {
			custom_effect_tooltip = JUNO_modify_south_american_army_ns_intro
			add_to_variable = { JUNO_army_modifier_extra_marine_supply_grace = 48 tooltip = extra_marine_supply_grace_tt }
		}
		
		IF = {
			limit = { has_dlc = "Man the Guns" }
			IF = {
				limit = {
					NOT = {
						has_tech = mtg_transport
					}
				}
				set_technology = { mtg_transport = 1 }
			}
			ELSE_IF = {
				limit = {
					NOT = {
						has_tech = mtg_landing_craft
					}
				}
				set_technology = { mtg_landing_craft = 1 }
			}
			ELSE_IF = {
				limit = {
					NOT = {
						has_tech = mtg_tank_landing_craft
					}
				}
				set_technology = { mtg_tank_landing_craft = 1 }
			}
			IF = {
				limit = {
					NOT = { has_tech = amphibious_tank }
				}
				set_technology = { amphibious_tank = 1}
			}
			ELSE_IF = {
				limit = {
					NOT = { has_tech = amphibious_drive }
				}
				set_technology = { amphibious_drive = 1}
			}
		}
		ELSE = {
			IF = {
				limit = {
					NOT = {
						has_tech = transport
					}
				}
				set_technology = { transport = 1 }
			}
			ELSE_IF = {
				limit = {
					NOT = {
						has_tech = landing_craft
					}
				}
				set_technology = { landing_craft = 1 }
			}
			ELSE_IF = {
				limit = {
					NOT = {
						has_tech = tank_landing_craft
					}
				}
				set_technology = { tank_landing_craft = 1 }
			}
		}

		navy_experience = 15
		army_experience = 15
	}
}

shared_focus = {
	id = SMB_special_forces_option_1_continuation
	icon = GFX_focus_SWE_beneath_sticks_and_stone 
	relative_position_id = SMB_special_forces_option_1
	prerequisite = { focus = SMB_special_forces_option_1 }

	x = 0
	y = 1

	cost = 5
 
	available = {

	}

	bypass = {
		 
	}

	ai_will_do = {
			factor = 20
		} 

	completion_reward = {

		IF = {
			limit = { 
				NOT = { has_tech = night_vision }
				date > 1940.1.1
			}
			set_technology = { night_vision = 1 }
		}
		ELSE_IF = {
			limit = { 
				NOT = { has_tech = night_vision2 }
				date > 1941.1.1
			}
			set_technology = { night_vision2 = 1 }
		}	

		IF = {
			limit = {
				original_tag = CHL
			}
			custom_effect_tooltip = CHL_modify_chilean_army_ns_intro
			add_to_variable = { JUNO_army_modifier_special_forces_cap = 0.1 tooltip = special_forces_cap_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = BRA
			}
			custom_effect_tooltip = BRA_modify_brazilian_army_ns_intro
			add_to_variable = { JUNO_army_modifier_special_forces_cap = 0.1 tooltip = special_forces_cap_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = ARG
			}
			custom_effect_tooltip = ARG_modify_argentine_army_ns_intro
			add_to_variable = { JUNO_army_modifier_special_forces_cap = 0.1 tooltip = special_forces_cap_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = PAR
			}
			custom_effect_tooltip = PAR_modify_paraguayan_army_ns_intro
			add_to_variable = { JUNO_army_modifier_special_forces_cap = 0.1 tooltip = special_forces_cap_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = URG
			}
			custom_effect_tooltip = URG_modify_uruguayan_army_ns_intro
			add_to_variable = { JUNO_army_modifier_special_forces_cap = 0.1 tooltip = special_forces_cap_tt }
		}
		ELSE = {
			custom_effect_tooltip = JUNO_modify_south_american_army_ns_intro
			add_to_variable = { JUNO_army_modifier_special_forces_cap = 0.1 tooltip = special_forces_cap_tt }
		}

		army_experience = 30
	}
}

shared_focus = {
	id = SMB_mountain_guns
	icon = GFX_focus_SMB_mountain_guns
	relative_position_id = SMB_special_forces_option_1
	prerequisite = { focus = SMB_special_forces_option_1 }
	mutually_exclusive = { }
	x = -2
	y = 1

	cost = 5

	available = {
		NOT = {
			has_tech = mountain_gun
		}
	}

	bypass = {
		
	}

	allow_branch = {
		original_tag = CHL
	}

	ai_will_do = {
			factor = 20
		} 

	completion_reward = {
		
		IF = {
			limit = {
				NOT = {
					has_tech = mountain_gun
				}
			}
			custom_effect_tooltip = mountain_guns_tt
			hidden_effect = { set_technology = { mountain_gun = 1 } }
		}

	}
}

shared_focus = {
	id = SMB_air_defense
	icon = GFX_focus_generic_air_defense
	relative_position_id = SMB_army
	prerequisite = { focus = SMB_army }
	prerequisite = { focus = SMB_air_force}
	x = 4
	y = 1

	offset = {
		x = 2
		y = 0
		trigger = {
			tag = BRA
		}
	}

	cost = 5

	available = {
		any_country = {
			NOT = {
				tag = ROOT
			}
			has_completed_focus = SMB_establish_aircraft_industry
		}
	}

	bypass = {
		
	}

	ai_will_do = {
			factor = 20
		}

	completion_reward = {
		IF = {
			limit = {
				original_tag = CHL
			}
			custom_effect_tooltip = CHL_modify_chilean_army_ns_intro
			add_to_variable = { JUNO_army_modifier_production_speed_anti_air_building_factor = 0.15 tooltip = production_speed_anti_air_building_factor_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = BRA
			}
			custom_effect_tooltip = BRA_modify_brazilian_army_ns_intro
			add_to_variable = { JUNO_army_modifier_production_speed_anti_air_building_factor = 0.15 tooltip = production_speed_anti_air_building_factor_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = ARG
			}
			custom_effect_tooltip = ARG_modify_argentine_army_ns_intro
			add_to_variable = { JUNO_army_modifier_production_speed_anti_air_building_factor = 0.15 tooltip = production_speed_anti_air_building_factor_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = PAR
			}
			custom_effect_tooltip = PAR_modify_paraguayan_army_ns_intro
			add_to_variable = { JUNO_army_modifier_production_speed_anti_air_building_factor = 0.15 tooltip = production_speed_anti_air_building_factor_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = URG
			}
			custom_effect_tooltip = URG_modify_uruguayan_army_ns_intro
			add_to_variable = { JUNO_army_modifier_production_speed_anti_air_building_factor = 0.15 tooltip = production_speed_anti_air_building_factor_tt }
		}
		ELSE = {
			custom_effect_tooltip = JUNO_modify_south_american_army_ns_intro
			add_to_variable = { JUNO_army_modifier_production_speed_anti_air_building_factor = 0.15 tooltip = production_speed_anti_air_building_factor_tt }
		}

		add_ideas = JUNO_hidden_aa_production_ns_2
	}
}

shared_focus = {
	id = SMB_air_force
	#icon = GFX_goal_generic_build_airforce
	relative_position_id = SMB_army
	#prerequisite = { focus = SMB_army }
	x = 8
	y = 0

	dynamic = yes

	offset = {
		x = 4
		y = 0
		trigger = {
			tag = BRA
		}
	}

	icon = {
		trigger = {
			original_tag = CHL
		}
		value = GFX_focus_CHL_fuerza_aerea_de_chile
	}
	icon = {
		trigger = {
			original_tag = ARG
		}
		value = GFX_focus_ARG_air_force
	}
	icon = {
		trigger = {
			original_tag = BRA
		}
		value = GFX_focus_BRA_air_force
	}
	icon = {
		trigger = {
			NOT = {
				OR = {
					original_tag = CHL
					original_tag = ARG
					original_tag = BRA
				}
			}
		}
		value = GFX_goal_generic_build_airforce
	}

	cost = 5

	ai_will_do = {
		factor = 20
	}

	available = {

	}

	bypass = {
		
	}

	completion_reward = {

		air_experience = 25

		random_core_state = {
			limit = {
				free_building_slots = {
					building = arms_factory
					size > 1
					include_locked = yes
				}
				is_owned_and_controlled_by = ROOT
				NOT = {
					OR = {
						state = 961
						state = 962
						state = 963
						state = 964
						state = 965
						state = 966
						state = 967
						state = 968
					}
				}
			}
			add_extra_state_shared_building_slots = 2
			add_building_construction = {
				type = arms_factory
				level = 1
				instant_build = yes
			}
			add_building_construction = {
				type = air_base
				level = 1
				instant_build = yes
			}
		}

		IF = {
			limit = {
				original_tag = CHL
			}
			add_dynamic_modifier = { modifier = CHL_airforce_modifier }
		}
		ELSE_IF = {
			limit = {
				original_tag = BRA
			}
			add_dynamic_modifier = { modifier = BRA_airforce_modifier }
		}
		ELSE_IF = {
			limit = {
				original_tag = ARG
			}
			add_dynamic_modifier = { modifier = ARG_airforce_modifier }
		}
		ELSE_IF = {
			limit = {
				original_tag = PAR
			}
			add_dynamic_modifier = { modifier = PAR_airforce_modifier }
		}
		ELSE_IF = {
			limit = {
				original_tag = URG
			}
			add_dynamic_modifier = { modifier = URG_airforce_modifier }
		}
		ELSE = {
			add_dynamic_modifier = { modifier = south_american_airforce_modifier }
		}
	}
}

shared_focus = {
	id = SMB_air_academy
	icon = GFX_focus_SOV_flying_clubs
	relative_position_id = SMB_air_force
	prerequisite = { focus = SMB_air_force}
	x = -2
	y = 1

	cost = 5

	ai_will_do = {
			factor = 20
		}

	available = {

	}

	bypass = {
		
	}

	completion_reward = {

		IF = {
			limit = {
				original_tag = CHL
			}
			custom_effect_tooltip = CHL_modify_chilean_airforce_ns_intro
			add_to_variable = { JUNO_airforce_modifier_air_ace_generation_chance_factor = 0.15 tooltip = air_ace_generation_chance_factor_tt }
			add_to_variable = { JUNO_airforce_modifier_air_doctrine_cost_factor = -0.1 tooltip = air_doctrine_cost_factor_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = BRA
			}
			custom_effect_tooltip = BRA_modify_brazilian_airforce_ns_intro
			add_to_variable = { JUNO_airforce_modifier_air_ace_generation_chance_factor = 0.15 tooltip = air_ace_generation_chance_factor_tt }
			add_to_variable = { JUNO_airforce_modifier_air_doctrine_cost_factor = -0.1 tooltip = air_doctrine_cost_factor_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = ARG
			}
			custom_effect_tooltip = ARG_modify_argentine_airforce_ns_intro
			add_to_variable = { JUNO_airforce_modifier_air_ace_generation_chance_factor = 0.15 tooltip = air_ace_generation_chance_factor_tt }
			add_to_variable = { JUNO_airforce_modifier_air_doctrine_cost_factor = -0.1 tooltip = air_doctrine_cost_factor_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = PAR
			}
			custom_effect_tooltip = PAR_modify_paraguayan_airforce_ns_intro
			add_to_variable = { JUNO_airforce_modifier_air_ace_generation_chance_factor = 0.15 tooltip = air_ace_generation_chance_factor_tt }
			add_to_variable = { JUNO_airforce_modifier_air_doctrine_cost_factor = -0.1 tooltip = air_doctrine_cost_factor_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = URG
			}
			custom_effect_tooltip = URG_modify_uruguayan_airforce_ns_intro
			add_to_variable = { JUNO_airforce_modifier_air_ace_generation_chance_factor = 0.15 tooltip = air_ace_generation_chance_factor_tt }
			add_to_variable = { JUNO_airforce_modifier_air_doctrine_cost_factor = -0.1 tooltip = air_doctrine_cost_factor_tt }
		}
		ELSE = {
			custom_effect_tooltip = JUNO_modify_south_american_airforce_ns_intro
			add_to_variable = { JUNO_airforce_modifier_air_ace_generation_chance_factor = 0.15 tooltip = air_ace_generation_chance_factor_tt }
			add_to_variable = { JUNO_airforce_modifier_air_doctrine_cost_factor = -0.1 tooltip = air_doctrine_cost_factor_tt }
		}
	}
}

shared_focus = {
	id = SMB_construct_air_bases
	icon = GFX_focus_generic_air_bases
	relative_position_id = SMB_air_force
	prerequisite = { focus = SMB_air_force}
	x = 2
	y = 1

	cost = 5

	ai_will_do = {
			factor = 20
		}

	available = {

	}

	bypass = {
		
	}

	completion_reward = {
		random_core_state = {
			limit = {
				free_building_slots = {
					building = air_base
					size > 0
				}
				is_owned_and_controlled_by = ROOT
				NOT = {
					OR = {
						state = 961
						state = 962
						state = 963
						state = 964
						state = 965
						state = 966
						state = 967
						state = 968
					}
				}
			}
			add_extra_state_shared_building_slots = 1
			add_building_construction = {
				type = air_base
				level = 2
				instant_build = yes
			}
		}
		random_core_state = {
			limit = {
				free_building_slots = {
					building = air_base
					size > 0
				}
				is_owned_and_controlled_by = ROOT
				NOT = {
					OR = {
						state = 961
						state = 962
						state = 963
						state = 964
						state = 965
						state = 966
						state = 967
						state = 968
					}
				}
			}
			add_extra_state_shared_building_slots = 1
			add_building_construction = {
				type = air_base
				level = 2
				instant_build = yes
			}
		}
	}
}

shared_focus = {
	id = SMB_domestic_designs
	icon = GFX_focus_SMB_purchase_aircraft
	relative_position_id = SMB_air_academy
	mutually_exclusive = { focus = SMB_license_designs focus = SMB_purchase_aircraft }
	prerequisite = { focus = SMB_air_academy focus = SMB_construct_air_bases }
	x = 0
	y = 1

	cost = 5

	available = {

	}

	bypass = {
		
	}

	ai_will_do = {
			factor = 10
		}

	completion_reward = {

		IF = {
			limit = {
				original_tag = CHL
			}
			custom_effect_tooltip = CHL_modify_chilean_airforce_ns_intro
			add_to_variable = { JUNO_army_modifier_industrial_capacity_factory_airfoce = 0.05 tooltip = industrial_capacity_factory_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = BRA
			}
			custom_effect_tooltip = BRA_modify_brazilian_airforce_ns_intro
			add_to_variable = { JUNO_army_modifier_industrial_capacity_factory_airfoce = 0.05 tooltip = industrial_capacity_factory_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = ARG
			}
			custom_effect_tooltip = ARG_modify_argentine_airforce_ns_intro
			add_to_variable = { JUNO_army_modifier_industrial_capacity_factory_airfoce = 0.05 tooltip = industrial_capacity_factory_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = PAR
			}
			custom_effect_tooltip = PAR_modify_paraguayan_airforce_ns_intro
			add_to_variable = { JUNO_army_modifier_industrial_capacity_factory_airfoce = 0.05 tooltip = industrial_capacity_factory_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = URG
			}
			custom_effect_tooltip = URG_modify_uruguayan_airforce_ns_intro
			add_to_variable = { JUNO_army_modifier_industrial_capacity_factory_airfoce = 0.05 tooltip = industrial_capacity_factory_tt }
		}
		ELSE = {
			custom_effect_tooltip = JUNO_modify_south_american_airforce_ns_intro
			add_to_variable = { JUNO_army_modifier_industrial_capacity_factory_airfoce = 0.05 tooltip = industrial_capacity_factory_tt }
		}
		
	}
}

shared_focus = {
	id = SMB_license_designs
	icon = GFX_focus_generic_copy_plane_designs
	relative_position_id = SMB_air_force
	prerequisite = { focus = SMB_air_academy focus = SMB_construct_air_bases }
	mutually_exclusive = { focus = SMB_domestic_designs focus = SMB_purchase_aircraft }
	x = 0
	y = 2

	cost = 5

	available = {
		NOT = {
			has_idea = JUNO_license_air_idea
		}
	}

	bypass = {
		
	}

	ai_will_do = {
			factor = 10
		}

	completion_reward = {

		IF = {
			limit = {
				has_dlc = "Arms Against Tyranny"
			}
			add_equipment_subsidy = {
				cic = 500
				equipment_type = small_plane_airframe
				seller_tags = { USA JAP ENG FRA ITA GER MEX SOV } 
			}
			add_equipment_subsidy = {
				cic = 500
				equipment_type = large_plane_airframe
				seller_tags = { USA JAP ENG FRA ITA GER MEX SOV } 
			}
			add_equipment_subsidy = {
				cic = 500
				equipment_type = medium_plane_airframe
				seller_tags = { USA JAP ENG FRA ITA GER MEX SOV } 
			}
		}

		IF = {
			limit = {
				NOT = {
					has_idea = JUNO_license_air_idea
				}
			}
			add_ideas = JUNO_license_air_idea
		}
	}
}

shared_focus = {
	id = SMB_purchase_aircraft
	icon = GFX_focus_SMB_purchase_aircraft
	relative_position_id = SMB_construct_air_bases
	prerequisite = { focus = SMB_air_academy focus = SMB_construct_air_bases }
	mutually_exclusive = { focus = SMB_domestic_designs focus = SMB_license_designs }
	x = 0
	y = 1

	cost = 5

	ai_will_do = {
			factor = 20
		}

	available = {

	}

	bypass = {
		
	}

	completion_reward = {
		IF = {
			limit = {
				has_dlc = "Arms Against Tyranny"
			}
			add_equipment_subsidy = {
				cic = 1000
				equipment_type = small_plane_airframe
				seller_tags = { USA JAP ENG FRA ITA GER MEX SOV } 
			}
			add_equipment_subsidy = {
				cic = 1000
				equipment_type = large_plane_airframe
				seller_tags = { USA JAP ENG FRA ITA GER MEX SOV } 
			}
			add_equipment_subsidy = {
				cic = 1000
				equipment_type = medium_plane_airframe
				seller_tags = { USA JAP ENG FRA ITA GER MEX SOV } 
			}
		}

		IF = {
			limit = {
				NOT = {
					has_dlc = "Arms Against Tyranny"
				}
			}
			custom_effect_tooltip = SMB_purchase_aircraft_tt
		}
		
	}
}

shared_focus = {
	id = SMB_establish_aircraft_industry
	icon = GFX_focus_generic_aircraft_production
	relative_position_id = SMB_license_designs
	prerequisite = { focus = SMB_license_designs focus = SMB_domestic_designs focus = SMB_purchase_aircraft }
	x = 0
	y = 1

	cost = 10

	ai_will_do = {
			factor = 20
		}

	available = {

	}

	bypass = {
		
	}

	completion_reward = {
		IF = {
			limit = {
				original_tag = BRA
			}
			custom_effect_tooltip = available_mio_tt
			show_mio_tooltip = BRA_embraer_organization
			mio:BRA_embraer_organization = {
				add_mio_size = 1
			}
			custom_effect_tooltip = generic_skip_one_line_tt
		}
		random_core_state = {
			limit = {
				free_building_slots = {
					building = arms_factory
					size > 0
					include_locked = yes
				}
				is_owned_and_controlled_by = ROOT
				NOT = {
					OR = {
						state = 961
						state = 962
						state = 963
						state = 964
						state = 965
						state = 966
						state = 967
						state = 968
					}
				}
			}
			add_extra_state_shared_building_slots = 2
			add_building_construction = {
				type = arms_factory
				level = 2
				instant_build = yes
			}
		}
	}
}

shared_focus = {
	id = SMB_flying_fortress
	icon = GFX_focus_generic_long_range_aircraft
	relative_position_id = SMB_establish_aircraft_industry
	mutually_exclusive = { focus = SMB_tactical_air_force focus = SMB_nimble_air_force }
	prerequisite = { focus = SMB_establish_aircraft_industry }
	x = -2
	y = 1

	cost = 10

	available = {

	}

	bypass = {
		
	}

	ai_will_do = {
			factor = 10
		}

	completion_reward = {
		add_tech_bonus = {
			name = JUNO_heavy_airframe_initiative
			bonus = 0.75
			uses = 2
			category = heavy_air
		}
	}
}

shared_focus = {
	id = SMB_tactical_air_force
	icon = GFX_focus_usa_escort_fighters
	relative_position_id = SMB_establish_aircraft_industry
	prerequisite = { focus = SMB_establish_aircraft_industry }
	mutually_exclusive = { focus = SMB_flying_fortress focus = SMB_nimble_air_force }
	x = 0
	y = 1

	cost = 10

	available = {

	}

	bypass = {
		
	}

	ai_will_do = {
			factor = 10
		}

	completion_reward = {
		add_tech_bonus = {
			name = JUNO_medium_airframe_initiative 
			bonus = 0.75
			uses = 2
			category = medium_air
		}
	}
}

shared_focus = {
	id = SMB_nimble_air_force
	icon = GFX_goal_generic_air_fighter2
	relative_position_id = SMB_establish_aircraft_industry
	prerequisite = { focus = SMB_establish_aircraft_industry }
	mutually_exclusive = { focus = SMB_flying_fortress focus = SMB_tactical_air_force }
	x = 2
	y = 1

	cost = 10

	ai_will_do = {
			factor = 20
		}

	available = {

	}

	bypass = {
		
	}

	completion_reward = {
		add_tech_bonus = {
			name = JUNO_light_airframe_initiative
			bonus = 0.75
			uses = 2
			category = light_air
		}
	}
}

shared_focus = {
	id = SMB_strategic_bombing
	icon = GFX_focus_SWE_marauder_bombers
	relative_position_id = SMB_flying_fortress
	prerequisite = { focus = SMB_flying_fortress }
	mutually_exclusive = { focus = SMB_army_support }
	x = -1
	y = 1

	cost = 10

	available = {

	}

	bypass = {
		
	}

	ai_will_do = {
			factor = 10
		}

	completion_reward = {
		IF = {
			limit = {
				original_tag = CHL
			}
			custom_effect_tooltip = CHL_modify_chilean_airforce_ns_intro
			add_to_variable = { JUNO_airforce_modifier_air_range_factor = 0.2 tooltip = air_range_factor_tt }
			add_to_variable = { JUNO_airforce_modifier_air_strategic_bomber_bombing_factor = 0.15 tooltip = air_strategic_bomber_bombing_factor_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = BRA
			}
			custom_effect_tooltip = BRA_modify_brazilian_airforce_ns_intro
			add_to_variable = { JUNO_airforce_modifier_air_range_factor = 0.2 tooltip = air_range_factor_tt }
			add_to_variable = { JUNO_airforce_modifier_air_strategic_bomber_bombing_factor = 0.15 tooltip = air_strategic_bomber_bombing_factor_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = ARG
			}
			custom_effect_tooltip = ARG_modify_argentine_airforce_ns_intro
			add_to_variable = { JUNO_airforce_modifier_air_range_factor = 0.2 tooltip = air_range_factor_tt }
			add_to_variable = { JUNO_airforce_modifier_air_strategic_bomber_bombing_factor = 0.15 tooltip = air_strategic_bomber_bombing_factor_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = PAR
			}
			custom_effect_tooltip = PAR_modify_paraguayan_airforce_ns_intro
			add_to_variable = { JUNO_airforce_modifier_air_range_factor = 0.2 tooltip = air_range_factor_tt }
			add_to_variable = { JUNO_airforce_modifier_air_strategic_bomber_bombing_factor = 0.15 tooltip = air_strategic_bomber_bombing_factor_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = URG
			}
			custom_effect_tooltip = URG_modify_uruguayan_airforce_ns_intro
			add_to_variable = { JUNO_airforce_modifier_air_range_factor = 0.2 tooltip = air_range_factor_tt }
			add_to_variable = { JUNO_airforce_modifier_air_strategic_bomber_bombing_factor = 0.15 tooltip = air_strategic_bomber_bombing_factor_tt }
		}
		ELSE = {
			custom_effect_tooltip = JUNO_modify_south_american_airforce_ns_intro
			add_to_variable = { JUNO_airforce_modifier_air_range_factor = 0.2 tooltip = air_range_factor_tt }
			add_to_variable = { JUNO_airforce_modifier_air_strategic_bomber_bombing_factor = 0.15 tooltip = air_strategic_bomber_bombing_factor_tt }
		}
	}
}

shared_focus = {
	id = SMB_army_support
	icon = GFX_focus_generic_cas_aircraft
	relative_position_id = SMB_flying_fortress
	prerequisite = { focus = SMB_flying_fortress focus = SMB_tactical_air_force }
	mutually_exclusive = { focus = SMB_strategic_bombing focus = SMB_winning_the_air_war  }
	x = 1
	y = 1

	cost = 10

	ai_will_do = {
			factor = 20
		}

	available = {

	}

	bypass = {
		
	}

	completion_reward = {
		IF = {
			limit = {
				original_tag = CHL
			}
			custom_effect_tooltip = CHL_modify_chilean_airforce_ns_intro
			add_to_variable = { JUNO_airforce_modifier_air_superiority_efficiency = 0.05 tooltip = air_superiority_efficiency_tt }
			add_to_variable = { JUNO_airforce_modifier_air_cas_present_factor = 0.1 tooltip = air_cas_present_factor_tt }
			add_to_variable = { JUNO_airforce_modifier_ground_attack_factor = 0.05 tooltip = ground_attack_factor_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = BRA
			}
			custom_effect_tooltip = BRA_modify_brazilian_airforce_ns_intro
			add_to_variable = { JUNO_airforce_modifier_air_superiority_efficiency = 0.05 tooltip = air_superiority_efficiency_tt }
			add_to_variable = { JUNO_airforce_modifier_air_cas_present_factor = 0.1 tooltip = air_cas_present_factor_tt }
			add_to_variable = { JUNO_airforce_modifier_ground_attack_factor = 0.05 tooltip = ground_attack_factor_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = ARG
			}
			custom_effect_tooltip = ARG_modify_argentine_airforce_ns_intro
			add_to_variable = { JUNO_airforce_modifier_air_superiority_efficiency = 0.05 tooltip = air_superiority_efficiency_tt }
			add_to_variable = { JUNO_airforce_modifier_air_cas_present_factor = 0.1 tooltip = air_cas_present_factor_tt }
			add_to_variable = { JUNO_airforce_modifier_ground_attack_factor = 0.05 tooltip = ground_attack_factor_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = PAR
			}
			custom_effect_tooltip = PAR_modify_paraguayan_airforce_ns_intro
			add_to_variable = { JUNO_airforce_modifier_air_superiority_efficiency = 0.05 tooltip = air_superiority_efficiency_tt }
			add_to_variable = { JUNO_airforce_modifier_air_cas_present_factor = 0.1 tooltip = air_cas_present_factor_tt }
			add_to_variable = { JUNO_airforce_modifier_ground_attack_factor = 0.05 tooltip = ground_attack_factor_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = URG
			}
			custom_effect_tooltip = URG_modify_uruguayan_airforce_ns_intro
			add_to_variable = { JUNO_airforce_modifier_air_superiority_efficiency = 0.05 tooltip = air_superiority_efficiency_tt }
			add_to_variable = { JUNO_airforce_modifier_air_cas_present_factor = 0.1 tooltip = air_cas_present_factor_tt }
			add_to_variable = { JUNO_airforce_modifier_ground_attack_factor = 0.05 tooltip = ground_attack_factor_tt }
		}
		ELSE = {
			custom_effect_tooltip = JUNO_modify_south_american_airforce_ns_intro
			add_to_variable = { JUNO_airforce_modifier_air_superiority_efficiency = 0.05 tooltip = air_superiority_efficiency_tt }
			add_to_variable = { JUNO_airforce_modifier_air_cas_present_factor = 0.1 tooltip = air_cas_present_factor_tt }
			add_to_variable = { JUNO_airforce_modifier_ground_attack_factor = 0.05 tooltip = ground_attack_factor_tt }
		}
	}
}

shared_focus = {
	id = SMB_winning_the_air_war
	icon = GFX_goal_generic_air_fighter
	relative_position_id = SMB_nimble_air_force
	prerequisite = { focus = SMB_tactical_air_force focus = SMB_nimble_air_force }
	mutually_exclusive = { focus = SMB_army_support focus = SMB_naval_support  }
	x = -1
	y = 1

	cost = 10

	available = {

	}

	bypass = {
		
	}

	ai_will_do = {
			factor = 10
		}

	completion_reward = {

		IF = {
			limit = {
				original_tag = CHL
			}
			custom_effect_tooltip = CHL_modify_chilean_airforce_ns_intro
			add_to_variable = { JUNO_airforce_modifier_air_superiority_efficiency = 0.1 tooltip = air_superiority_efficiency_tt }
			add_to_variable = { JUNO_airforce_modifier_air_intercept_efficiency = 0.05 tooltip = air_intercept_efficiency_tt }
			add_to_variable = { JUNO_airforce_modifier_air_agility_factor = 0.1 tooltip = air_agility_factor_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = BRA
			}
			custom_effect_tooltip = BRA_modify_brazilian_airforce_ns_intro
			add_to_variable = { JUNO_airforce_modifier_air_superiority_efficiency = 0.1 tooltip = air_superiority_efficiency_tt }
			add_to_variable = { JUNO_airforce_modifier_air_intercept_efficiency = 0.05 tooltip = air_intercept_efficiency_tt }
			add_to_variable = { JUNO_airforce_modifier_air_agility_factor = 0.1 tooltip = air_agility_factor_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = ARG
			}
			custom_effect_tooltip = ARG_modify_argentine_airforce_ns_intro
			add_to_variable = { JUNO_airforce_modifier_air_superiority_efficiency = 0.1 tooltip = air_superiority_efficiency_tt }
			add_to_variable = { JUNO_airforce_modifier_air_intercept_efficiency = 0.05 tooltip = air_intercept_efficiency_tt }
			add_to_variable = { JUNO_airforce_modifier_air_agility_factor = 0.1 tooltip = air_agility_factor_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = PAR
			}
			custom_effect_tooltip = PAR_modify_paraguayan_airforce_ns_intro
			add_to_variable = { JUNO_airforce_modifier_air_superiority_efficiency = 0.1 tooltip = air_superiority_efficiency_tt }
			add_to_variable = { JUNO_airforce_modifier_air_intercept_efficiency = 0.05 tooltip = air_intercept_efficiency_tt }
			add_to_variable = { JUNO_airforce_modifier_air_agility_factor = 0.1 tooltip = air_agility_factor_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = URG
			}
			custom_effect_tooltip = URG_modify_uruguayan_airforce_ns_intro
			add_to_variable = { JUNO_airforce_modifier_air_superiority_efficiency = 0.1 tooltip = air_superiority_efficiency_tt }
			add_to_variable = { JUNO_airforce_modifier_air_intercept_efficiency = 0.05 tooltip = air_intercept_efficiency_tt }
			add_to_variable = { JUNO_airforce_modifier_air_agility_factor = 0.1 tooltip = air_agility_factor_tt }
		}
		ELSE = {
			custom_effect_tooltip = JUNO_modify_south_american_airforce_ns_intro
			add_to_variable = { JUNO_airforce_modifier_air_superiority_efficiency = 0.1 tooltip = air_superiority_efficiency_tt }
			add_to_variable = { JUNO_airforce_modifier_air_intercept_efficiency = 0.05 tooltip = air_intercept_efficiency_tt }
			add_to_variable = { JUNO_airforce_modifier_air_agility_factor = 0.1 tooltip = air_agility_factor_tt }
		}
	}
}

shared_focus = {
	id = SMB_naval_support
	icon = GFX_goal_generic_air_naval_bomber
	relative_position_id = SMB_nimble_air_force
	prerequisite = { focus = SMB_nimble_air_force }
	mutually_exclusive = { focus = SMB_winning_the_air_war  }
	x = 1
	y = 1

	cost = 10

	available = {

	}

	bypass = {
		
	}

	ai_will_do = {
			factor = 10
		}

	completion_reward = {
		IF = {
			limit = {
				original_tag = CHL
			}
			custom_effect_tooltip = CHL_modify_chilean_airforce_ns_intro
			add_to_variable = { JUNO_airforce_modifier_air_range_factor = 0.2 tooltip = air_range_factor_tt }
			add_to_variable = { JUNO_airforce_modifier_air_agility_factor = 0.1 tooltip = air_agility_factor_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = BRA
			}
			custom_effect_tooltip = BRA_modify_brazilian_airforce_ns_intro
			add_to_variable = { JUNO_airforce_modifier_air_range_factor = 0.2 tooltip = air_range_factor_tt }
			add_to_variable = { JUNO_airforce_modifier_air_agility_factor = 0.1 tooltip = air_agility_factor_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = ARG
			}
			custom_effect_tooltip = ARG_modify_argentine_airforce_ns_intro
			add_to_variable = { JUNO_airforce_modifier_air_range_factor = 0.2 tooltip = air_range_factor_tt }
			add_to_variable = { JUNO_airforce_modifier_air_agility_factor = 0.1 tooltip = air_agility_factor_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = PAR
			}
			custom_effect_tooltip = PAR_modify_paraguayan_airforce_ns_intro
			add_to_variable = { JUNO_airforce_modifier_air_range_factor = 0.2 tooltip = air_range_factor_tt }
			add_to_variable = { JUNO_airforce_modifier_air_agility_factor = 0.1 tooltip = air_agility_factor_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = URG
			}
			custom_effect_tooltip = URG_modify_uruguayan_airforce_ns_intro
			add_to_variable = { JUNO_airforce_modifier_air_range_factor = 0.2 tooltip = air_range_factor_tt }
			add_to_variable = { JUNO_airforce_modifier_air_agility_factor = 0.1 tooltip = air_agility_factor_tt }
		}
		ELSE = {
			custom_effect_tooltip = JUNO_modify_south_american_airforce_ns_intro
			add_to_variable = { JUNO_airforce_modifier_air_range_factor = 0.2 tooltip = air_range_factor_tt }
			add_to_variable = { JUNO_airforce_modifier_air_agility_factor = 0.1 tooltip = air_agility_factor_tt }
		}
	}
}

shared_focus = {
	id = SMB_air_modifier_boost_1
	icon = GFX_focus_generic_tank_air_support
	relative_position_id = SMB_army_support
	prerequisite = { focus = SMB_strategic_bombing focus = SMB_army_support }
	x = -1
	y = 1

	cost = 10

	ai_will_do = {
			factor = 20
		}

	available = {

	}

	bypass = {
		
	}

	completion_reward = {
		IF = {
			limit = {
				original_tag = CHL
			}
			custom_effect_tooltip = CHL_modify_chilean_airforce_ns_intro
			add_to_variable = { JUNO_airforce_modifier_air_range_factor = 0.05 tooltip = air_range_factor_tt }
			add_to_variable = { JUNO_airforce_modifier_ground_attack_factor = 0.1 tooltip = ground_attack_factor_tt }
			add_to_variable = { JUNO_airforce_modifier_air_defence_factor = 0.15 tooltip = air_defence_factor_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = BRA
			}
			custom_effect_tooltip = BRA_modify_brazilian_airforce_ns_intro
			add_to_variable = { JUNO_airforce_modifier_air_range_factor = 0.05 tooltip = air_range_factor_tt }
			add_to_variable = { JUNO_airforce_modifier_ground_attack_factor = 0.1 tooltip = ground_attack_factor_tt }
			add_to_variable = { JUNO_airforce_modifier_air_defence_factor = 0.15 tooltip = air_defence_factor_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = ARG
			}
			custom_effect_tooltip = ARG_modify_argentine_airforce_ns_intro
			add_to_variable = { JUNO_airforce_modifier_air_range_factor = 0.05 tooltip = air_range_factor_tt }
			add_to_variable = { JUNO_airforce_modifier_ground_attack_factor = 0.1 tooltip = ground_attack_factor_tt }
			add_to_variable = { JUNO_airforce_modifier_air_defence_factor = 0.15 tooltip = air_defence_factor_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = PAR
			}
			custom_effect_tooltip = PAR_modify_paraguayan_airforce_ns_intro
			add_to_variable = { JUNO_airforce_modifier_air_range_factor = 0.05 tooltip = air_range_factor_tt }
			add_to_variable = { JUNO_airforce_modifier_ground_attack_factor = 0.1 tooltip = ground_attack_factor_tt }
			add_to_variable = { JUNO_airforce_modifier_air_defence_factor = 0.15 tooltip = air_defence_factor_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = URG
			}
			custom_effect_tooltip = URG_modify_uruguayan_airforce_ns_intro
			add_to_variable = { JUNO_airforce_modifier_air_range_factor = 0.05 tooltip = air_range_factor_tt }
			add_to_variable = { JUNO_airforce_modifier_ground_attack_factor = 0.1 tooltip = ground_attack_factor_tt }
			add_to_variable = { JUNO_airforce_modifier_air_defence_factor = 0.15 tooltip = air_defence_factor_tt }
		}
		ELSE = {
			custom_effect_tooltip = JUNO_modify_south_american_airforce_ns_intro
			add_to_variable = { JUNO_airforce_modifier_air_range_factor = 0.05 tooltip = air_range_factor_tt }
			add_to_variable = { JUNO_airforce_modifier_ground_attack_factor = 0.1 tooltip = ground_attack_factor_tt }
			add_to_variable = { JUNO_airforce_modifier_air_defence_factor = 0.15 tooltip = air_defence_factor_tt }
		}
	}
}

shared_focus = {
	id = SMB_air_modifier_boost_2
	icon = GFX_focus_generic_armored_air_support
	relative_position_id = SMB_winning_the_air_war
	prerequisite = { focus = SMB_winning_the_air_war focus = SMB_naval_support }
	x = 1
	y = 1

	cost = 10

	available = {

	}

	bypass = {
		
	}

	ai_will_do = {
			factor = 20
		}

	completion_reward = {
		IF = {
			limit = {
				original_tag = CHL
			}
			custom_effect_tooltip = CHL_modify_chilean_airforce_ns_intro
			add_to_variable = { JUNO_airforce_modifier_air_range_factor = 0.1 tooltip = air_range_factor_tt }
			add_to_variable = { JUNO_airforce_modifier_air_agility_factor = 0.05 tooltip = air_agility_factor_tt }
			add_to_variable = { JUNO_airforce_modifier_air_defence_factor = 0.1 tooltip = air_defence_factor_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = BRA
			}
			custom_effect_tooltip = BRA_modify_brazilian_airforce_ns_intro
			add_to_variable = { JUNO_airforce_modifier_air_range_factor = 0.1 tooltip = air_range_factor_tt }
			add_to_variable = { JUNO_airforce_modifier_air_agility_factor = 0.05 tooltip = air_agility_factor_tt }
			add_to_variable = { JUNO_airforce_modifier_air_defence_factor = 0.1 tooltip = air_defence_factor_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = ARG
			}
			custom_effect_tooltip = ARG_modify_argentine_airforce_ns_intro
			add_to_variable = { JUNO_airforce_modifier_air_range_factor = 0.1 tooltip = air_range_factor_tt }
			add_to_variable = { JUNO_airforce_modifier_air_agility_factor = 0.05 tooltip = air_agility_factor_tt }
			add_to_variable = { JUNO_airforce_modifier_air_defence_factor = 0.1 tooltip = air_defence_factor_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = PAR
			}
			custom_effect_tooltip = PAR_modify_paraguayan_airforce_ns_intro
			add_to_variable = { JUNO_airforce_modifier_air_range_factor = 0.1 tooltip = air_range_factor_tt }
			add_to_variable = { JUNO_airforce_modifier_air_agility_factor = 0.05 tooltip = air_agility_factor_tt }
			add_to_variable = { JUNO_airforce_modifier_air_defence_factor = 0.1 tooltip = air_defence_factor_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = URG
			}
			custom_effect_tooltip = URG_modify_uruguayan_airforce_ns_intro
			add_to_variable = { JUNO_airforce_modifier_air_range_factor = 0.1 tooltip = air_range_factor_tt }
			add_to_variable = { JUNO_airforce_modifier_air_agility_factor = 0.05 tooltip = air_agility_factor_tt }
			add_to_variable = { JUNO_airforce_modifier_air_defence_factor = 0.1 tooltip = air_defence_factor_tt }
		}
		ELSE = {
			custom_effect_tooltip = JUNO_modify_south_american_airforce_ns_intro
			add_to_variable = { JUNO_airforce_modifier_air_range_factor = 0.1 tooltip = air_range_factor_tt }
			add_to_variable = { JUNO_airforce_modifier_air_agility_factor = 0.05 tooltip = air_agility_factor_tt }
			add_to_variable = { JUNO_airforce_modifier_air_defence_factor = 0.1 tooltip = air_defence_factor_tt }
		}
		add_breakthrough_progress = {
			specialization = specialization_air
			value = 0.25
		}
		add_tech_bonus = {
			name = SMB_jet_tech_bonus
			bonus = 0.5
			uses = 1
			category = jet_technology
		} 
	}
}

shared_focus = {
	id = SMB_air_doctrine
	icon = GFX_goal_generic_air_doctrine
	relative_position_id = SMB_tactical_air_force
	prerequisite = { focus = SMB_winning_the_air_war focus = SMB_naval_support focus = SMB_strategic_bombing focus = SMB_army_support }
	x = 0
	y = 2

	cost = 10

	available = {

	}

	bypass = {
		
	}

	ai_will_do = {
			factor = 20
		}

	completion_reward = {

		air_experience = 25

		add_doctrine_cost_reduction = {
			name = SMB_air_doctrine
			cost_reduction = 0.5
			uses = 2
			category = air_doctrine
		}
	}
}

shared_focus = {
	id = SMB_aircraft_carriers
	icon = GFX_goal_generic_navy_carrier
	relative_position_id = SMB_naval_support
	prerequisite = { focus = SMB_naval_support }
	prerequisite = { focus = SMB_blue_water_fleet }
	x = 1
	y = 3

	cost = 5

	available = {

	}

	bypass = {
		
	}

	ai_will_do = {
			factor = 20
		}

	completion_reward = {
		navy_experience = 15
		add_breakthrough_progress = {
			specialization = specialization_naval
			value = 0.5
		}
		add_tech_bonus = {
			name = SMB_aircraft_carriers
			bonus = 1
			uses = 2
			category = cv_tech
		}
		JUNO_pick_navy_modifier_tt = yes
		add_to_variable = {
			ROOT.JUNO_navy_refit_speed = 0.1
			tooltip = refit_speed_tt
		}
	}
}


shared_focus = {
	id = SMB_joint_operative_command
	icon = GFX_focus_generic_combined_arms
	relative_position_id = SMB_air_defense
	prerequisite = { focus = SMB_army_academy }
	prerequisite = { focus = SMB_air_academy }
	x = 0
	y = 1

	cost = 10

	available = {

	}

	bypass = {
		
	}

	ai_will_do = {
			factor = 20
		}

	completion_reward = {
		IF = {
			limit = { 
				original_tag = CHL
			}
			custom_effect_tooltip = CHL_modify_chilean_army_ns_intro
			add_to_variable = { JUNO_army_modifier_max_command_power_mult = 0.15 tooltip = max_command_power_mult_tt }
			add_to_variable = { JUNO_army_modifier_command_power_gain_mult = 0.1 tooltip = command_power_gain_mult_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = BRA
			}
			custom_effect_tooltip = BRA_modify_brazilian_army_ns_intro
			add_to_variable = { JUNO_army_modifier_max_command_power_mult = 0.15 tooltip = max_command_power_mult_tt }
			add_to_variable = { JUNO_army_modifier_command_power_gain_mult = 0.1 tooltip = command_power_gain_mult_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = ARG
			}
			custom_effect_tooltip = ARG_modify_argentine_army_ns_intro
			add_to_variable = { JUNO_army_modifier_max_command_power_mult = 0.15 tooltip = max_command_power_mult_tt }
			add_to_variable = { JUNO_army_modifier_command_power_gain_mult = 0.1 tooltip = command_power_gain_mult_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = PAR
			}
			custom_effect_tooltip = PAR_modify_paraguayan_army_ns_intro
			add_to_variable = { JUNO_army_modifier_max_command_power_mult = 0.15 tooltip = max_command_power_mult_tt }
			add_to_variable = { JUNO_army_modifier_command_power_gain_mult = 0.1 tooltip = command_power_gain_mult_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = URG
			}
			custom_effect_tooltip = URG_modify_uruguayan_army_ns_intro
			add_to_variable = { JUNO_army_modifier_max_command_power_mult = 0.15 tooltip = max_command_power_mult_tt }
			add_to_variable = { JUNO_army_modifier_command_power_gain_mult = 0.1 tooltip = command_power_gain_mult_tt }
		}
		ELSE = {
			custom_effect_tooltip = JUNO_modify_south_american_army_ns_intro
			add_to_variable = { JUNO_army_modifier_max_command_power_mult = 0.15 tooltip = max_command_power_mult_tt }
			add_to_variable = { JUNO_army_modifier_command_power_gain_mult = 0.1 tooltip = command_power_gain_mult_tt }
		}
	}
}

shared_focus = {
	id = SMB_war_planning_office
	icon = GFX_focus_SOV_mobilization_plan
	relative_position_id = SMB_joint_operative_command
	prerequisite = { focus = SMB_joint_operative_command }
	x = -1
	y = 1

	cost = 10

	available = {

	}

	bypass = {
		
	}

	ai_will_do = {
			factor = 20
		}

	completion_reward = {

		army_experience = 15
		air_experience = 15
		navy_experience = 15

		IF = {
			limit = { 
				original_tag = CHL
			}
			custom_effect_tooltip = CHL_modify_chilean_army_ns_intro
			add_to_variable = { JUNO_army_modifier_max_planning_factor = 0.1 tooltip = max_planning_factor_tt }
			add_to_variable = { JUNO_army_modifier_planning_speed_factor = 0.15 tooltip = planning_speed_factor_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = BRA
			}
			custom_effect_tooltip = BRA_modify_brazilian_army_ns_intro
			add_to_variable = { JUNO_army_modifier_max_planning_factor = 0.1 tooltip = max_planning_factor_tt }
			add_to_variable = { JUNO_army_modifier_planning_speed_factor = 0.15 tooltip = planning_speed_factor_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = ARG
			}
			custom_effect_tooltip = ARG_modify_argentine_army_ns_intro
			add_to_variable = { JUNO_army_modifier_max_planning_factor = 0.1 tooltip = max_planning_factor_tt }
			add_to_variable = { JUNO_army_modifier_planning_speed_factor = 0.15 tooltip = planning_speed_factor_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = PAR
			}
			custom_effect_tooltip = PAR_modify_paraguayan_army_ns_intro
			add_to_variable = { JUNO_army_modifier_max_planning_factor = 0.1 tooltip = max_planning_factor_tt }
			add_to_variable = { JUNO_army_modifier_planning_speed_factor = 0.15 tooltip = planning_speed_factor_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = URG
			}
			custom_effect_tooltip = URG_modify_uruguayan_army_ns_intro
			add_to_variable = { JUNO_army_modifier_max_planning_factor = 0.1 tooltip = max_planning_factor_tt }
			add_to_variable = { JUNO_army_modifier_planning_speed_factor = 0.15 tooltip = planning_speed_factor_tt }
		}
		ELSE = {
			custom_effect_tooltip = JUNO_modify_south_american_army_ns_intro
			add_to_variable = { JUNO_army_modifier_max_planning_factor = 0.1 tooltip = max_planning_factor_tt }
			add_to_variable = { JUNO_army_modifier_planning_speed_factor = 0.15 tooltip = planning_speed_factor_tt }
		}
	}
}

shared_focus = {
	id = SMB_women_in_aviation
	icon = GFX_focus_SOV_women_in_aviation
	relative_position_id = SMB_joint_operative_command
	prerequisite = { focus = SMB_joint_operative_command }
	x = 1
	y = 1

	cost = 10

	available = {
		OR = {
			has_government = democratic
			has_government = communism
		}
	}

	bypass = {
		
	}

	ai_will_do = {
			factor = 20
		}

	completion_reward = {

		air_experience = 50

		set_rule = {
			can_generate_female_aces = yes
		}

		IF = {
			limit = {
				original_tag = CHL
			}
			custom_effect_tooltip = CHL_modify_chilean_airforce_ns_intro
			add_to_variable = { JUNO_airforce_modifier_conscription_factor = 0.1 tooltip = conscription_factor_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = BRA
			}
			custom_effect_tooltip = BRA_modify_brazilian_airforce_ns_intro
			add_to_variable = { JUNO_airforce_modifier_conscription_factor = 0.1 tooltip = conscription_factor_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = ARG
			}
			custom_effect_tooltip = ARG_modify_argentine_airforce_ns_intro
			add_to_variable = { JUNO_airforce_modifier_conscription_factor = 0.1 tooltip = conscription_factor_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = PAR
			}
			custom_effect_tooltip = PAR_modify_paraguayan_army_ns_intro
			add_to_variable = { JUNO_airforce_modifier_conscription_factor = 0.1 tooltip = conscription_factor_tt }
		}
		ELSE_IF = {
			limit = {
				original_tag = URG
			}
			custom_effect_tooltip = URG_modify_uruguayan_army_ns_intro
			add_to_variable = { JUNO_airforce_modifier_conscription_factor = 0.1 tooltip = conscription_factor_tt }
		}
		ELSE = {
			custom_effect_tooltip = JUNO_modify_south_american_airforce_ns_intro
			add_to_variable = { JUNO_airforce_modifier_conscription_factor = 0.1 tooltip = conscription_factor_tt }
		}
	}
}

shared_focus = {
	id = SMB_navy
	#icon = GFX_goal_generic_build_navy
	relative_position_id = SMB_air_force
	x = 8
	y = 0

	dynamic = yes

	icon = {
		trigger = {
			original_tag = CHL
		}
		value = GFX_focus_CHL_armada_de_chile
	}
	icon = {
		trigger = {
			original_tag = ARG
		}
		value = GFX_focus_ARG_navy
	}
	icon = {
		trigger = {
			original_tag = BRA
		}
		value = GFX_focus_BRA_navy
	}
	icon = {
		trigger = {
			NOT = {
				OR = {
					original_tag = CHL
					original_tag = ARG
					original_tag = BRA
				}
			}
		}
		value = GFX_goal_generic_build_navy
	}

	cost = 5

	ai_will_do = {
		factor = 20
		modifier = {
			any_controlled_state = {
				is_coastal = no
			}
			factor = 0	
		}
	}

	available = {
		any_owned_state = {
			is_controlled_by = ROOT
			is_coastal = yes
		}
	}

	bypass = {
		
	}

	completion_reward = {

		navy_experience = 25

		random_core_state = {
			limit = {
				free_building_slots = {
					building = dockyard
					size > 0
					include_locked = yes
				}

				NOT = {
					has_dynamic_modifier = { modifier = BRA_neglected_state_dynamic_modifier }
				}

				is_owned_and_controlled_by = ROOT
			}
			add_extra_state_shared_building_slots = 1
			add_building_construction = {
				type = dockyard
				level = 1
				instant_build = yes
			}
		}

		IF = {
			limit = {
				original_tag = CHL
			}
			add_dynamic_modifier = { modifier = CHL_navy_modifier }
		}
		ELSE_IF = {
			limit = {
				original_tag = BRA
			}
			add_dynamic_modifier = { modifier = BRA_navy_modifier }
		}
		ELSE_IF = {
			limit = {
				original_tag = ARG
			}
			add_dynamic_modifier = { modifier = ARG_navy_modifier }
		}
		ELSE_IF = {
			limit = {
				original_tag = PAR
			}
			add_dynamic_modifier = { modifier = PAR_navy_modifier }
		}
		ELSE_IF = {
			limit = {
				original_tag = URG
			}
			add_dynamic_modifier = { modifier = URG_navy_modifier }
		}
		ELSE = {
			add_dynamic_modifier = { modifier = south_american_navy_modifier }
		}

	}
}

shared_focus = {
	id = SMB_naval_academy
	icon = GFX_focus_generic_naval_discipline
	prerequisite = {focus = SMB_navy }
	relative_position_id = SMB_navy
	x = -1
	y = 1

	cost = 10

	ai_will_do = {
		factor = 20
		modifier = {
			any_controlled_state = {
				is_coastal = no
			}
			factor = 0	
		}
	}

	available = {

	}

	bypass = {
		
	}

	completion_reward = {
		JUNO_pick_navy_modifier_tt = yes
		add_to_variable = { 
			JUNO_navy_navy_spirit_category_type_cost_factor = -0.1 
			tooltip = navy_spirit_category_type_cost_factor_tt 		
		}
		custom_effect_tooltip = JUNO_naval_academy_random_admirals_tt
		navy_experience = 20
		hidden_effect = {
			random_navy_leader = {
				limit = {
					NOT = { has_character_flag = SMB_naval_academy_boost }
				}
				add_coordination = 1
				set_character_flag = SMB_naval_academy_boost
			}
			random_navy_leader = {
				limit = {
					NOT = { has_character_flag = SMB_naval_academy_boost }
				}
				add_coordination = 1
				set_character_flag = SMB_naval_academy_boost
			}
			random_navy_leader = {
				limit = {
					NOT = { has_character_flag = SMB_naval_academy_boost }
				}
				add_coordination = 1
				set_character_flag = SMB_naval_academy_boost
			}
		}
	}
}

shared_focus = {
	id = SMB_construct_naval_bases
	icon = GFX_goal_generic_construct_naval_dockyard
	prerequisite = {focus = SMB_navy }
	relative_position_id = SMB_navy
	x = 1
	y = 1

	cost = 10

	ai_will_do = {
		factor = 20
		modifier = {
			any_controlled_state = {
				is_coastal = no
			}
			factor = 0	
		}
	}

	available = {

	}

	bypass = {
		
	}

	completion_reward = {
		random_owned_controlled_state = {
			limit = { 
				is_coastal = yes 
				free_building_slots = {
					building = dockyard
					size > 1
					include_locked = yes
				}
			}
			set_state_flag = SMB_expanded_naval_bases
			IF = {
				limit = { naval_base < 8 }
				add_building_construction = {
					type = naval_base
					level = 1
					instant_build = yes
					province = {
						all_provinces = yes
						limit_to_coastal = yes
				    }
				}
			}
			IF = {
				limit = { 
					dockyard < 8
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = dockyard
					level = 2
					instant_build = yes
				}
				
			}
		}
	}
}


shared_focus = {
	id = SMB_naval_foreign_advisors
	icon = GFX_focus_generic_military_academy
	prerequisite = {focus = SMB_naval_academy focus = SMB_construct_naval_bases }
	relative_position_id = SMB_naval_academy
	x = 0 
	y = 1

	cost = 5

	ai_will_do = {
		factor = 20
		modifier = {
			any_controlled_state = {
				is_coastal = no
			}
			factor = 0	
		}
	}
	available = {

	}

	bypass = {
		 
	}

	completion_reward = {
		custom_effect_tooltip = SMB_navy_foreign_advisors_tt
	}
}

shared_focus = {
	id = SMB_purchase_destroyers_and_subs
	icon = GFX_focus_generic_destroyer
	prerequisite = {focus = SMB_construct_naval_bases focus = SMB_naval_academy }
	relative_position_id = SMB_construct_naval_bases
	x = 0
	y = 1

	cost = 5

	ai_will_do = {
			factor = 20
		}

	available = {

	}

	bypass = {
		
	}

	completion_reward = {
		custom_effect_tooltip = ETH_purchase_obsolete_ships_tt
		set_country_flag = generic_purchase_old_ships_flag
	}
}

shared_focus = {
	id = SMB_reescalate_the_naval_arms_race
	icon = GFX_focus_SMB_reescalate_the_naval_arms_race
	prerequisite = {focus = SMB_naval_foreign_advisors focus = SMB_purchase_destroyers_and_subs }
	relative_position_id = SMB_navy
	x = 0
	y = 3

	cost = 5

	ai_will_do = {
		factor = 20
		modifier = {
			any_controlled_state = {
				is_coastal = no
			}
			factor = 0	
		}
	}

	available = {

	}

	bypass = {
		NOT = {
			has_idea = SMB_MTG_naval_arms_race_legacy
		}
		OR = {
			original_tag = URG
			original_tag = PAR
		}
	}

	completion_reward = {
		remove_ideas = SMB_MTG_naval_arms_race_legacy
		every_other_country = {
			limit = {
				OR = {
					is_major = yes
					capital_scope = {
						is_core_of = THIS
						is_on_continent = south_america
					}
				}
				NOT = { 
					has_idea = SMB_MTG_naval_arms_race_legacy
				}
			}
			news_event = {
				id = south_american_news.10
				hours = 2
			} 
			IF = {
				limit = {
					original_tag = USA
				}
				add_opinion_modifier = {
					modifier = SMB_naval_arms_race
					target = ROOT
				}
			} 
		} 
		every_other_country = {
			limit = {
				has_idea = SMB_MTG_naval_arms_race_legacy
			}
			country_event = {
				id = south_american_events.10
				hours = 1
			}
			add_opinion_modifier = {
				modifier = SMB_naval_arms_race
				target = ROOT
			}
		}
	}
}

shared_focus = {
	id = SMB_blue_water_fleet
	# TODO JUNO: Icon is missing shine, need to fix
	icon = GFX_focus_SMB_blue_water_fleet
	prerequisite = {focus = SMB_reescalate_the_naval_arms_race }
	relative_position_id = SMB_reescalate_the_naval_arms_race
	mutually_exclusive = { focus = SMB_coastal_fleet }
	x = -1
	y = 1

	cost = 10

	ai_will_do = {
			factor = 10
		}

	available = {

	}

	bypass = {
		
	}

	completion_reward = {
		add_tech_bonus = {
			name = tooltip_capital_ships
			bonus = 1.0
			uses = 2
			category = ca_tech
			category = bb_tech
		}
	}
}

shared_focus = {
	id = SMB_coastal_fleet
	icon = GFX_focus_SWE_coastal_support
	prerequisite = {focus = SMB_reescalate_the_naval_arms_race }
	relative_position_id = SMB_reescalate_the_naval_arms_race
	mutually_exclusive = { focus = SMB_blue_water_fleet }
	x = 1
	y = 1

	cost = 10

	ai_will_do = {
		factor = 20
		modifier = {
			any_controlled_state = {
				is_coastal = no
			}
			factor = 0	
		}
	}

	available = {

	}

	bypass = {
		
	}

	completion_reward = {
		set_technology = { coastal_defense_ships = 1 }
		add_tech_bonus = {
			name = SMB_coastal_fleet
			bonus = 1.0
			uses = 2
			category = ca_tech
			category = dd_tech
		}
	}
}

shared_focus = {
	id = SMB_purchase_cruisers_and_dreadnoughts
	icon = GFX_goal_generic_navy_battleship
	prerequisite = {focus = SMB_blue_water_fleet focus = SMB_coastal_fleet }
	relative_position_id = SMB_reescalate_the_naval_arms_race
	x = 0
	y = 2

	cost = 5

	available = {

	}

	bypass = {
		
	}

	ai_will_do = {
		factor = 20
		modifier = {
			any_controlled_state = {
				is_coastal = no
			}
			factor = 0	
		}
	}

	completion_reward = {
		custom_effect_tooltip = SMB_purchase_obsolete_ships_tt
		set_country_flag = generic_purchase_dreadnoughts_flag
	}
}

shared_focus = {
	id = SMB_minelaying
	icon = GFX_focus_generic_mine_warfare
	prerequisite = {focus = SMB_coastal_fleet }
	relative_position_id = SMB_coastal_fleet
	x = 1
	y = 1

	cost = 5

	available = {
	
	}

	bypass = {
		
	}

	ai_will_do = {
		factor = 20
		modifier = {
			any_controlled_state = {
				is_coastal = no
			}
			factor = 0	
		}
	}

	allow_branch = { 
		has_dlc = "Man the Guns"
	}

	completion_reward = {
		add_tech_bonus = {
			name = SMB_minelaying_bonus
			bonus = 0.5
			uses = 1
			category = naval_mines
		}
		JUNO_pick_navy_modifier_tt = yes
		add_to_variable = {
			JUNO_navy_mines_planting_by_fleets_factor = 0.1
			tooltip = mines_planting_by_fleets_factor_tt
		}
		add_to_variable = {
			JUNO_navy_naval_mines_effect_reduction = 0.1
			tooltip = naval_mines_effect_reduction_tt
		}
	}
}

shared_focus = {
	id = SMB_escort_fleet
	icon = GFX_focus_generic_navy_battleship2
	prerequisite = {focus = SMB_purchase_cruisers_and_dreadnoughts }
	relative_position_id = SMB_purchase_cruisers_and_dreadnoughts
	mutually_exclusive = { focus = SMB_raiding_fleet }
	x = -2
	y = 1

	cost = 10

	ai_will_do = {
			factor = 20
		}

	available = {

	}

	bypass = {
		
	}

	completion_reward = {
		navy_experience = 15


		if = {
			limit = {
				has_doctrine = new_convoy_raiding
			}
				add_mastery_bonus = {
					name = SMB_escort_fleet
					bonus = 0.2
					days = 180
					grand_doctrine = new_convoy_raiding
				}
				add_mastery_bonus = {
					name = SMB_escort_fleet
					bonus = 0.1
					days = 180
					track = screens
				}
		}
		else = {
			add_mastery_bonus = {
				name = SMB_escort_fleet
				bonus = 0.1
				days = 180
				
			}
			add_mastery_bonus = {
				name = SMB_escort_fleet
				bonus = 0.1
				days = 180
				track = screens
			}
		}
		
	}
}

shared_focus = {
	id = SMB_raiding_fleet
	icon = GFX_goal_generic_navy_submarine
	prerequisite = {focus = SMB_purchase_cruisers_and_dreadnoughts }
	relative_position_id = SMB_purchase_cruisers_and_dreadnoughts
	mutually_exclusive = { focus = SMB_escort_fleet }
	x = 2
	y = 1

	cost = 10

	available = {

	}

	bypass = {
		
	}

	ai_will_do = {
			factor = 10
		}

	completion_reward = {
		navy_experience = 15
		if = {
			limit = {
				has_doctrine = new_convoy_raiding
			}
				add_mastery_bonus = {
					name = SMB_raiding_fleet
					bonus = 0.2
					days = 180
					grand_doctrine = new_convoy_raiding
				}
				add_mastery_bonus = {
					name = SMB_raiding_fleet
					bonus = 0.1
					days = 180
					track = submarines
				}
		}
		else = {
			add_mastery_bonus = {
				name = SMB_raiding_fleet
				bonus = 0.1
				days = 180
				
			}
			add_mastery_bonus = {
				name = SMB_raiding_fleet
				bonus = 0.1
				days = 180
				track = submarines
			}
		}

	}
}

shared_focus = {
	id = SMB_degaussing
	icon = GFX_goal_generic_navy_anti_submarine
	prerequisite = {focus = SMB_escort_fleet }
	relative_position_id = SMB_escort_fleet
	x = -1
	y = 1

	cost = 10

	available = {

	}

	bypass = {
		
	}

	ai_will_do = {
			factor = 20
		}

	completion_reward = {
		if = {
			limit = {
				has_dlc = "Man the Guns"
			}
			if = {
				limit = {
					has_tech = degaussing
				}
				navy_experience = 20
				else = {
					set_technology = {
						   degaussing = 1
					}
				}
				}
			}
			
		if = {
			limit = {
					NOT = {
						has_dlc = "Man the Guns"
					}
				}
			add_ideas = CAN_degauss_ship_hulls
		}
	}	
}

shared_focus = {
	id = SMB_naval_invasion
	icon = GFX_goal_generic_amphibious_assault
	prerequisite = {focus = SMB_escort_fleet }
	relative_position_id = SMB_escort_fleet
	x = 1
	y = 1

	cost = 5

	available = {

	}

	bypass = {
		
	}

	ai_will_do = {
			factor = 20
		}

	completion_reward = {
		JUNO_pick_navy_modifier_tt = yes
		add_to_variable = { 
			JUNO_navy_naval_invasion_capacity = 10 
			tooltip = naval_invasion_capacity_tt
		}
	}
}

shared_focus = {
	id = SMB_cruiser_subs
	icon = GFX_focus_generic_cruiser_submarines
	prerequisite = {focus = SMB_raiding_fleet }
	relative_position_id = SMB_raiding_fleet
	mutually_exclusive = { focus = SMB_midget_subs }
	x = -1
	y = 1

	cost = 10

	ai_will_do = {
			factor = 20
		}

	available = {

	}

	bypass = {
		
	}

	completion_reward = {
		add_tech_bonus = {
			name = ITA_cruiser_submarines
			bonus = 1.0
			uses = 1
			category = ss_tech
		}

		add_breakthrough_progress = {
			specialization = specialization_naval
			value = 0.25
		}

		IF = {
			limit = {
				has_dlc = "Man the Guns"
			}
			add_ideas = cruiser_submarine_specialization_mtg
		}
		ELSE = {
			add_ideas = cruiser_submarine_specialization
		}
	}
}

shared_focus = {
	id = SMB_midget_subs
	icon = GFX_focus_generic_midget_submarines
	prerequisite = {focus = SMB_raiding_fleet }
	relative_position_id = SMB_raiding_fleet
	mutually_exclusive = { focus = SMB_cruiser_subs }
	x = 1
	y = 1

	cost = 5

	available = {

	}

	bypass = {
		
	}

	ai_will_do = {
			factor = 10
		}

	completion_reward = {

		add_tech_bonus = {
			name = SMB_midget_subs
			bonus = 1.0
			uses = 1
			category = ss_tech
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		add_breakthrough_progress = {
			specialization = specialization_naval
			value = 0.25
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		IF = {
			limit = {
				has_dlc = "Man the Guns"
			}
			add_ideas = midget_submarine_specialization_mtg
		}
		ELSE = {
			add_ideas = midget_submarine_specialization
		}

	}
}

shared_focus = {
	id = SMB_expand_repair_yards
	icon = GFX_focus_POL_develop_polish_shipbuilding
	prerequisite = { focus = SMB_construct_naval_bases }
	relative_position_id = SMB_construct_naval_bases
	x = 3
	y = 1

	cost = 5

	available = {

	}

	bypass = {
		
	}

	ai_will_do = {
			factor = 20
		}

	completion_reward = {
		JUNO_pick_navy_modifier_tt = yes
		add_to_variable = {
			ROOT.JUNO_navy_refit_speed = 0.1
			tooltip = refit_speed_tt
		}
		add_to_variable = {
			ROOT.JUNO_navy_repair_speed_factor = 0.25
			tooltip = repair_speed_factor_tt
		}
	}
}

shared_focus = {
	id = SMB_carrier_conversion
	icon = GFX_focus_BRA_converted_carriers
	allow_branch = { 
		original_tag = BRA
	}
	prerequisite = {focus = SMB_expand_repair_yards  }
	relative_position_id = SMB_expand_repair_yards
	x = 0
	y = 1

	cost = 10

	available = {
		has_tech = early_ship_hull_carrier
	}

	ai_will_do = {
		factor = 20
	}

	completion_reward = {
		add_breakthrough_progress = {
			specialization = specialization_naval
			value = 0.5
		}
		custom_effect_tooltip = generic_skip_one_line_tt
		IF = {
			limit = {
				has_dlc = "Man the Guns"
			}
			create_equipment_variant = {
				name = "Minas Gerais Class"
				type = ship_hull_carrier_conversion_ca
				name_group = BRA_CV_HISTORICAL
				parent_version = 0
				allow_without_tech = yes
				modules = {
					fixed_ship_deck_slot_1 = ship_deck_space
					fixed_ship_deck_slot_2 = ship_deck_space
					fixed_ship_anti_air_slot = ship_anti_air_1
					fixed_ship_radar_slot = empty
					fixed_ship_engine_slot = cruiser_ship_engine_1
					fixed_ship_secondaries_slot = ship_secondaries_1
				}
			}
			add_equipment_production = {
				equipment = {
					type = ship_hull_carrier_conversion_ca
					creator = "BRA"
					version_name = "Minas Gerais Class"
				}
				name = "NRB Belo Horizonte"
				requested_factories = 2
				progress = 0.5
				amount = 1
			}
			add_equipment_production = {
				equipment = {
					type = ship_hull_carrier_conversion_ca
					creator = "BRA"
					version_name = "Minas Gerais Class"
				}
				name = "NRB Congonhas"
				requested_factories = 2
				progress = 0.5
				amount = 1
			}
		}
		ELSE = {
			create_equipment_variant = {
				name = "Minas Gerais Class"
				type = carrier_1
				allow_without_tech = yes 
				upgrades = {
					ship_deckspace_upgrade = 1
					carrier_armor_upgrade = 1
					ship_engine_upgrade = 1
					ship_reliability_upgrade = 1
				}
			}
			add_equipment_production = {
				equipment = {
					type = carrier_1
					creator = "BRA"
					version_name = "Minas Gerais Class"
				}
				requested_factories = 2
				progress = 0.5
				amount = 1
			}
			add_equipment_production = {
				equipment = {
					type = carrier_1
					creator = "BRA"
					version_name = "Minas Gerais Class"
				}
				requested_factories = 2
				progress = 0.5
				amount = 1
			}
		}
	}
}

shared_focus = {
	id = SMB_enlarge_naval_facilities
	icon = GFX_focus_generic_refit_civilian_ships
	prerequisite = { focus = SMB_expand_repair_yards }
	prerequisite = { focus = SMB_reescalate_the_naval_arms_race }
	relative_position_id = SMB_expand_repair_yards
	mutually_exclusive = { focus = SMB_merchant_marine }
	x = -1
	y = 2

	cost = 10

	available = {

	}

	bypass = {
		
	}

	ai_will_do = {
			factor = 20
		}

	completion_reward = {
		random_owned_controlled_state = {
			limit = { 
				is_coastal = yes 
				free_building_slots = {
					building = dockyard
					size > 1
					include_locked = yes
				}
				#has_state_flag = SMB_expanded_naval_bases
			}
			IF = {
				limit = { naval_base < 8 }
				add_building_construction = {
					type = naval_base
					level = 1
					instant_build = yes
						province = {
							all_provinces = yes
							limit_to_coastal = yes
					    }
				}
			}
			IF = {
				limit = { 
					dockyard < 8
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = dockyard
					level = 2
					instant_build = yes
				}
				
			}
		}
	}
}

shared_focus = {
	id = SMB_merchant_marine
	icon = GFX_focus_generic_merchant_fleet
	prerequisite = { focus = SMB_expand_repair_yards }
	relative_position_id = SMB_expand_repair_yards
	mutually_exclusive = { focus = SMB_enlarge_naval_facilities }
	x = 1
	y = 2

	cost = 5

	available = {

	}

	bypass = {
		
	}

	ai_will_do = {
			factor = 10
		}

	completion_reward = {
		add_ideas = POR_convoy_build_efficiency
	}
}

shared_focus = {
	id = SMB_fortification_effort
	icon = GFX_focus_FIN_coastal_defense
	prerequisite = { focus = SMB_air_force }
	prerequisite = { focus = SMB_navy }
	relative_position_id = SMB_air_force
	x = 4
	y = 1

	cost = 5

	available = {

	}

	bypass = {
		
	}

	ai_will_do = {
			factor = 20
		}

	completion_reward = {
		JUNO_pick_navy_modifier_tt = yes
		add_to_variable = {
			JUNO_modifier_production_speed_coastal_bunker_factor = 0.2
			tooltip = production_speed_coastal_bunker_factor_tt
		}
		IF = {
			limit = {
				original_tag = BRA
				any_owned_state = {
					is_coastal = yes
				}
			}
			500 = {
				add_building_construction = {
					type = coastal_bunker
					level = 1
					instant_build = yes 
					province = 5172
				}
				add_building_construction = {
					type = coastal_bunker
					level = 1
					instant_build = yes 
					province = 10980
				}
				add_building_construction = {
					type = coastal_bunker
					level = 1
					instant_build = yes 
					province = 8190
				}
				add_building_construction = {
					type = coastal_bunker
					level = 1
					instant_build = yes 
					province = 12996
				}
			}
			498 = {
				add_building_construction = {
					type = coastal_bunker
					level = 1
					instant_build = yes 
					province = 10933
				}
				add_building_construction = {
					type = coastal_bunker
					level = 1
					instant_build = yes 
					province = 2175
				}
				add_building_construction = {
					type = coastal_bunker
					level = 1
					instant_build = yes 
					province = 13273
				}
			}
		}
	}
}

shared_focus = {  
	id = SMB_jungle_warfare_training
	icon = GFX_focus_ETH_peacekeeping_forces
	relative_position_id = SMB_regular_infantry 
	prerequisite = { focus = SMB_regular_infantry }  
	x = 2
	y = 2

	cost = 10

	allow_branch = { 
		original_tag = BRA
	}

	available = {
		495 = {
			is_owned_and_controlled_by = ROOT
		}
	}

	ai_will_do = {
		factor = 10
	}

	completion_reward = {
		random_army_leader = {	
			limit = {
				NOT = {
					has_trait = jungle_rat
				}
			}	
			add_trait = { trait = jungle_rat }
		}
		random_army_leader = {	
			limit = {
				NOT = {
					has_trait = jungle_rat
				}
			}	
			add_trait = { trait = jungle_rat }
		}
		random_army_leader = {	
			limit = {
				NOT = {
					has_trait = jungle_rat
				}
			}	
			add_trait = { trait = jungle_rat }
		}
		
		custom_effect_tooltip = BRA_modify_brazilian_army_ns_intro
		add_to_variable = { JUNO_army_modifier_experience_gain_army_factor = 0.02 tooltip = experience_gain_army_factor_tt }
		add_to_variable = { JUNO_army_modifier_army_org_factor = 0.03 tooltip = army_org_factor_tt }
	}
}

shared_focus = {  
	id = SMB_jungle_pioneers
	icon = GFX_goal_generic_construction2
	relative_position_id = SMB_jungle_warfare_training 
	prerequisite = { focus = SMB_jungle_warfare_training }  
	x = 1
	y = 1

	cost = 10

	allow_branch = { tag = BRA }

	available = {
		
	}

	bypass = {
		
	}

	ai_will_do = {
			factor = 20
		}

	completion_reward = {
		add_tech_bonus = {
			name = JUNO_support_company_initiative
			bonus = 0.25
			uses = 1
			category = support_tech
		}
		hidden_effect = {
			set_technology = { 
				TOA_jungle_pioneers_support_tech = 1 
				popup = no
			}
		}
		custom_effect_tooltip = SMB_jungle_pioneers_tt
	}
}

shared_focus = {  
	id = SMB_brown_water_navy
	icon = GFX_focus_generic_merchant_fleet
	relative_position_id = SMB_jungle_warfare_training 
	prerequisite = { focus = SMB_jungle_warfare_training }  
	x = -1
	y = 1

	cost = 10

	allow_branch = { tag = BRA }

	available = {
		
	}

	bypass = {
		
	}

	ai_will_do = {
			factor = 20
		}

	completion_reward = {
		#custom_effect_tooltip = BRA_modify_brazilian_army_ns_intro
		#add_to_variable = { JUNO_army_heat_attrition_factor = -0.1 tooltip = heat_attrition_factor_tt }
		#add_to_variable = { JUNO_supply_combat_penalties_on_core_factor = -0.05 tooltip = supply_combat_penalties_on_core_factor_tt }
		hidden_effect = { 
			set_technology = { 
				ToA_river_boats_tech = 1	
				popup = no
			} 
		}
		#show_ideas_tooltip = BRA_brown_water_navy_idea
		add_ideas = BRA_brown_water_navy_idea
	}
}