### search_filters = { FOCUS_FILTER_POLITICAL }
### search_filters = { FOCUS_FILTER_RESEARCH }
### search_filters = { FOCUS_FILTER_INDUSTRY }
### search_filters = { FOCUS_FILTER_STABILITY }
### search_filters = { FOCUS_FILTER_WAR_SUPPORT }
### search_filters = { FOCUS_FILTER_MANPOWER }
### search_filters = { FOCUS_FILTER_ANNEXATION }
### search_filters = { FOCUS_FILTER_ARMY_XP }
### search_filters = { FOCUS_FILTER_NAVY_XP }
### search_filters = { FOCUS_FILTER_AIR_XP }
### search_filters = { FOCUS_FILTER_POLITICAL_CHARACTER }
### search_filters = { FOCUS_FILTER_MILITARY_CHARACTER }
### search_filters = { FOCUS_FILTER_INTERNATIONAL_TRADE }
### search_filters = { FOCUS_FILTER_HISTORICAL }

focus_tree = {
	id = philippines_focus
	
	country = {
		factor = 0
		
		modifier = {
			add = 10
			tag = PHI
			has_dlc = "No Compromise, No Surrender"
		}
	}

	default = no

	continuous_focus_position = { x = 50 y = 2200 }

initial_show_position = { 
	focus = PHI_commonwealth_of_the_philippines
}





#############################
#############################
###### BASIC POLITICAL ######
#############################
#############################


	focus = {
		id = PHI_commonwealth_of_the_philippines
		icon = GFX_focus_PHI_commonwealth_of_the_philippines
				
			
		x = 21
		y = 0
	
		cost = 10

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			custom_effect_tooltip = PHI_modify_economy_dynamic_modifier_tt
			add_to_variable = {
				PHI_the_great_depression_political_power_gain = 0.05
				tooltip = political_power_gain_tt
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			add_timed_idea = {
				idea = PHI_the_great_depression_temp_construction_speed
				days = 365
			}
		}
		search_filters = { FOCUS_FILTER_HISTORICAL FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = PHI_align_with_the_usa
		icon = GFX_focus_generic_befriend_usa

		prerequisite = { focus = PHI_commonwealth_of_the_philippines }								

		relative_position_id = PHI_commonwealth_of_the_philippines		
		mutually_exclusive = { focus = PHI_align_with_japan }					
			
		x = -2
		y = 1
	
		cost = 10

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			custom_effect_tooltip = PHI_modify_economy_dynamic_modifier_tt
			add_to_variable = {
				PHI_the_great_depression_political_power_gain = 0.2
				tooltip = political_power_gain_tt
			}
			add_to_variable = {
				PHI_the_great_depression_consumer_goods_factor = -0.1
				tooltip = consumer_goods_factor_tt
			}

			custom_effect_tooltip = generic_skip_one_line_tt
			reduce_focus_completion_cost = {
				focus = PHI_national_defense_act
				cost = 70
			}

			custom_effect_tooltip = generic_skip_one_line_tt
			if = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}
				custom_effect_tooltip = PHI_usa_equipment
				else = {
					custom_effect_tooltip = PHI_usa_equipment_non_aat
				}
			}
		}
		search_filters = { FOCUS_FILTER_HISTORICAL FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = PHI_align_with_japan
		icon = GFX_focus_chi_collaboration_with_the_japanese

		prerequisite = { focus = PHI_commonwealth_of_the_philippines }								

		relative_position_id = PHI_commonwealth_of_the_philippines	
		mutually_exclusive = { focus = PHI_align_with_the_usa }										
			
		x = 2
		y = 1
	
		cost = 10

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			custom_effect_tooltip = PHI_modify_economy_dynamic_modifier_tt
			add_to_variable = {
				PHI_the_great_depression_political_power_gain = 0.20
				tooltip = political_power_gain_tt
			}
			add_to_variable = {
				PHI_the_great_depression_resource_gain = 0.10
				tooltip = local_resources_factor_tt
			}
			add_to_variable = {
				PHI_the_great_depression_join_faction_tension = -0.20
				tooltip = join_faction_tension_tt
			}

			custom_effect_tooltip = generic_skip_one_line_tt
			reduce_focus_completion_cost = {
				focus = PHI_national_defense_act
				cost = 70
			}

			custom_effect_tooltip = generic_skip_one_line_tt
			if = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}
				custom_effect_tooltip = PHI_jap_equipment
				else = {
					custom_effect_tooltip = PHI_jap_equipment_non_aat
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			custom_effect_tooltip = available_political_advisor
			show_ideas_tooltip = PHI_benigno_ramos
		}
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_POLITICAL_CHARACTER }
	}
	

	focus = {
		id = PHI_peg_the_peso_to_the_dollar
		icon = GFX_focus_PHI_uncouple_the_peso_and_dollar
		overlay = GFX_focus_fast_overlay_america 

		prerequisite = { focus = PHI_align_with_the_usa focus = PHI_align_with_japan }								

		relative_position_id = PHI_align_with_the_usa		
		mutually_exclusive = { focus = PHI_leverage_the_peso }								
			
		x = -4
		y = 1
	
		cost = 10

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			custom_effect_tooltip = PHI_modify_economy_dynamic_modifier_tt
			add_to_variable = {
				PHI_the_great_depression_political_power_gain = -0.1
				tooltip = political_power_gain_tt
			}
			add_to_variable = {
				PHI_the_great_depression_consumer_goods_factor = -0.1
				tooltip = consumer_goods_factor_tt
			}

			custom_effect_tooltip = generic_skip_one_line_tt
			reduce_focus_completion_cost = {
				focus = PHI_national_defense_act
				cost = 70
			}

			hidden_effect = {
				PHI_usa_focus_done = yes
			}
		}
		search_filters = { FOCUS_FILTER_HISTORICAL FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = PHI_leverage_the_peso
		icon = GFX_focus_PHI_leverage_the_peso
		overlay = GFX_focus_fast_overlay_japan  

		prerequisite = { focus = PHI_align_with_japan focus = PHI_align_with_the_usa }								

		relative_position_id = PHI_align_with_japan		
		mutually_exclusive = { focus = PHI_peg_the_peso_to_the_dollar }									
			
		x = 4
		y = 1
	
		cost = 10

		available = {
			327 = { #Manila
				is_owned_and_controlled_by = ROOT
			}
			627 = { #Davao
				is_owned_and_controlled_by = ROOT
			}
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			set_temp_variable = { PHI_jap_alignment_value_change = 0.05 }	#lowered starting value to compensate, simplifies tooltip code

			PHI_check_japanese_ideology_and_adapt = yes 

			custom_effect_tooltip = generic_skip_one_line_tt
			IF = {
				limit = {
					327 = { ## Manila
						free_building_slots = {
							building = industrial_complex
							size > 2
							include_locked = yes
						}	
					}
				}
				327 = { ## Manila
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = industrial_complex
						level = 2
						instant_build = yes
					}	
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}	
				}
			}
			IF = {
				limit = {
					627 = { ## Davao
						free_building_slots = {
							building = industrial_complex
							size > 1
							include_locked = yes
						}	
					}
				}
				627 = { ## Davao
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = industrial_complex
						level = 1
						instant_build = yes
					}	
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}	
				}
			}
			random_owned_controlled_state = {
				limit = {
					is_core_of = PHI
					is_fully_controlled_by = PHI
					free_building_slots = {
						building = dockyard
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = dockyard
					level = 1
					instant_build = yes
				}	
			}

			custom_effect_tooltip = generic_skip_one_line_tt
			
			USA = {
				add_opinion_modifier = {
					target = PHI
					modifier = PHI_decoupled_peso_from_dollar
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt
			reduce_focus_completion_cost = {
			  focus = { PHI_national_fiscal_policy PHI_reduce_unneccessary_expenditure PHI_subsidies PHI_basic_welfare  }
			  cost = 35
			}

			custom_effect_tooltip = generic_skip_one_line_tt
			reduce_focus_completion_cost = {
			  focus = PHI_national_defense_act
			  cost = 70
			}

			custom_effect_tooltip = generic_skip_one_line_tt
			custom_effect_tooltip = PHI_clock_tt
		}
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_POLITICAL }
	}

	focus = {
		id = PHI_quezon_city
		icon = GFX_focus_SWE_hygienic_housing

		prerequisite = { focus = PHI_peg_the_peso_to_the_dollar focus = PHI_leverage_the_peso }						

		relative_position_id = PHI_peg_the_peso_to_the_dollar		
		
		x = 2
		y = 1
	
		cost = 10

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			327 = { #Manila
				
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 2
					instant_build = yes
				}
				increase_state_category = yes
			}
			hidden_effect = {
				PHI_central_focuses_done_T1 = yes
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = PHI_unicameral_legislature
		icon = GFX_focus_generic_improve_the_administration

		prerequisite = { focus = PHI_peg_the_peso_to_the_dollar focus = PHI_leverage_the_peso }						

		relative_position_id = PHI_peg_the_peso_to_the_dollar		
		
		x = 4
		y = 1
	
		cost = 10

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			custom_effect_tooltip = PHI_modify_economy_dynamic_modifier_tt
			add_to_variable = {
				PHI_ruling_ideology_ideology_drift = 0.05
				tooltip = PHI_ruling_ideology_ideology_drift_tt_2
			}
			PHI_refresh_ruling_ideology_drift = yes

			custom_effect_tooltip = generic_skip_one_line_tt
			add_political_power = 150
			add_stability = 0.05
			add_war_support = 0.05
			hidden_effect = {
				PHI_central_focuses_done_T1 = yes
			}
		}
		search_filters = { FOCUS_FILTER_STABILITY FOCUS_FILTER_POLITICAL FOCUS_FILTER_WAR_SUPPORT }
	}

	focus = {
		id = PHI_national_fiscal_policy
		icon = GFX_focus_generic_currency_reforms
		overlay = GFX_focus_fast_overlay_japan_clock

		prerequisite = { focus = PHI_peg_the_peso_to_the_dollar focus = PHI_leverage_the_peso }						

		relative_position_id = PHI_peg_the_peso_to_the_dollar		
		
		x = 6
		y = 1
	
		cost = 10

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			custom_effect_tooltip = PHI_modify_economy_dynamic_modifier_tt
			add_to_variable = {
				PHI_the_great_depression_political_power_gain = 0.15
				tooltip = political_power_gain_tt
			}
			add_to_variable = {
				PHI_the_great_depression_production_speed_buildings_factor = 0.10
				tooltip = production_speed_buildings_factor_tt
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			add_tech_bonus = {
				bonus = 0.35
				uses = 3
				category = industry
				name = PHI_national_fiscal_policy
			}

			custom_effect_tooltip = generic_skip_one_line_tt
			custom_effect_tooltip = PHI_focus_time_reduced_T1_tt

			hidden_effect = {
				PHI_central_focuses_done_T1 = yes
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = PHI_agricultural_migrants_to_hawaii
		icon = GFX_focus_PHI_agricultural_migrants_to_hawaii

		prerequisite = { focus = PHI_peg_the_peso_to_the_dollar focus = PHI_leverage_the_peso }						

		relative_position_id = PHI_peg_the_peso_to_the_dollar		
		
		x = 8
		y = 1
	
		cost = 10

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			custom_effect_tooltip = PHI_modify_economy_dynamic_modifier_tt
			add_to_variable = {
				PHI_the_great_depression_consumer_goods_factor = -0.1
				tooltip = consumer_goods_factor_tt
			}
			add_political_power = 75
			hidden_effect = {
				PHI_central_focuses_done_T1 = yes
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = PHI_encourage_foreign_investment
		icon = GFX_focus_RAJ_issue_bonds_on_the_stock_market

		prerequisite = { focus = PHI_leverage_the_peso }

		relative_position_id = PHI_peg_the_peso_to_the_dollar		
		
		x = 10
		y = 1
	
		cost = 10

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			custom_effect_tooltip = PHI_modify_economy_dynamic_modifier_tt
			add_to_variable = {
				PHI_the_great_depression_resource_gain = 0.1
				tooltip = local_resources_factor_tt
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			add_opinion_modifier = { 
				target = JAP
				modifier = small_increase
			}
			JAP = {
				add_opinion_modifier = {
					target = PHI
					modifier = medium_increase
				}
			}
			hidden_effect = {
				PHI_central_focuses_done_T1 = yes
			}	
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}


	focus = {
		id = PHI_encourage_japanese_investment
		icon = GFX_focus_PHI_encourage_japanese_investment

		prerequisite = { focus = PHI_leverage_the_peso }

		relative_position_id = PHI_leverage_the_peso		
		
		x = 2
		y = 1
	
		cost = 5

		available = {
			623 = {
				is_owned_and_controlled_by = ROOT
			}
			JAP = {
				exists = yes
				NOT = {
					has_war_with = ROOT
				}
			}
			if = {	#keep it a bit more of an easter egg
				limit = {
					has_country_flag = PHI_military_emergency_flag
				}
				NOT = {
					has_country_flag = PHI_military_emergency_flag
				}
			}
		}

		bypass = {
		}

		available_if_capitulated = no


		completion_reward = {
			IF = {
				limit = {
					623 = { ## Luzon
						free_building_slots = {
							building = industrial_complex
							size > 1
							include_locked = yes
						}	
					}
				}
				623 = { ## Luzon
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = industrial_complex
						level = 2
						instant_build = yes
					}	

				}
			}
			random_owned_controlled_state = {
				limit = {
					is_core_of = PHI
					is_fully_controlled_by = PHI
					free_building_slots = {
						building = dockyard
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = dockyard
					level = 1
					instant_build = yes
				}	
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			custom_effect_tooltip = available_industrial_concern
			custom_effect_tooltip = PHI_south_seas_development_company_tt
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = PHI_develop_japanese_trade_connections
		icon = GFX_focus_PHI_develop_japanese_trade_connections

		prerequisite = { focus = PHI_encourage_japanese_investment }

		relative_position_id = PHI_encourage_japanese_investment		
		
		x = 0
		y = 1
	
		cost = 5

		available = {
			JAP = {
				exists = yes
				NOT = {
					has_war_with = ROOT
				}
			}
			if = {	#keep it a bit more of an easter egg
				limit = {
					has_country_flag = PHI_military_emergency_flag
				}
				NOT = {
					has_country_flag = PHI_military_emergency_flag
				}
			}
		}

		# bypass = {	#no follow-ups or bypass effects, could be reactivated if that is changed
		# 	JAP = {
		# 		exists = no
		# 	}
		# }

		available_if_capitulated = no
	
		completion_reward = {

			## Send event to Japan
			JAP = {
				country_event = {
					id = SEA_PHI_political_events.1
					hours = 3 
					random_hours = 6
				}
			}
			custom_effect_tooltip = if_they_accept_tt
			effect_tooltip = {
				add_timed_idea = {
					idea = PHI_japanese_trade_connections
					days = 365
				}
			}
		}
		search_filters = { FOCUS_FILTER_INTERNATIONAL_TRADE }
	}

	focus = {
		id = PHI_quezon_city_campus
		icon = GFX_focus_research

		prerequisite = { focus = PHI_quezon_city }						

		relative_position_id = PHI_quezon_city		
		
		x = 0
		y = 1
	
		cost = 10

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			add_research_slot = 1
			hidden_effect = {
				PHI_central_focuses_done_T1 = yes
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = PHI_reduce_unneccessary_expenditure
		icon = GFX_focus_generic_reduce_unneccessary_expenditure
		overlay = GFX_focus_fast_overlay_japan_clock

		prerequisite = { focus = PHI_national_fiscal_policy }

		relative_position_id = PHI_national_fiscal_policy		
		
		x = -2
		y = 1
	
		cost = 10

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			custom_effect_tooltip = PHI_modify_economy_dynamic_modifier_tt
			add_to_variable = {
				PHI_the_great_depression_political_power_gain = 0.15
				tooltip = political_power_gain_tt
			}
			add_to_variable = {
				PHI_the_great_depression_consumer_goods_factor = -0.10
				tooltip = consumer_goods_factor_tt
			}

			custom_effect_tooltip = generic_skip_one_line_tt
			custom_effect_tooltip = PHI_focus_time_reduced_T1_tt

			hidden_effect = {
				PHI_central_focuses_done_T1 = yes
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = PHI_subsidies
		icon = GFX_focus_mex_privatisation
		overlay = GFX_focus_fast_overlay_japan_clock	

		prerequisite = { focus = PHI_national_fiscal_policy }

		relative_position_id = PHI_national_fiscal_policy		
		
		x = 0
		y = 1
	
		cost = 10

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			add_timed_idea = {
				idea = PHI_subsidies_timed_idea
				days = 365
			}

			custom_effect_tooltip = generic_skip_one_line_tt
			custom_effect_tooltip = PHI_focus_time_reduced_T1_tt

			hidden_effect = {
				PHI_central_focuses_done_T1 = yes
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = PHI_basic_welfare
		icon = GFX_focus_generic_welfare
		overlay = GFX_focus_fast_overlay_japan_clock	

		prerequisite = { focus = PHI_national_fiscal_policy }

		relative_position_id = PHI_national_fiscal_policy		
		
		x = 2
		y = 1
	
		cost = 10

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
		
		completion_reward = {
			custom_effect_tooltip = PHI_modify_economy_dynamic_modifier_tt
			add_to_variable = {
				PHI_the_great_depression_conscription_factor = 0.10
				tooltip = conscription_factor_tt
			}
			add_to_variable = {
				PHI_the_great_depression_monthly_population = 0.10
				tooltip = monthly_population_tt
			}
			add_stability = 0.05

			custom_effect_tooltip = generic_skip_one_line_tt
			custom_effect_tooltip = PHI_focus_time_reduced_T1_tt

			hidden_effect = {
				PHI_central_focuses_done_T1 = yes
			}
		}
		search_filters = { FOCUS_FILTER_STABILITY FOCUS_FILTER_MANPOWER }
	}

	focus = {
		id = PHI_encourage_asian_trade
		icon = GFX_goal_generic_positive_trade_relations

		prerequisite = { focus = PHI_encourage_foreign_investment }

		relative_position_id = PHI_encourage_foreign_investment		
		
		x = 0
		y = 1
	
		cost = 10

		available = {
			OR = {
				SIA = {
					exists = yes
				}
				INS = {
					exists = yes
				}
				MAL = {
						exists = yes
				}
			}
		}

		bypass = {
			AND = {
				SIA = {
					exists = no
				}
				INS = {
					exists = no
				}
				MAL = {
					exists = no
				}
			}
		}

		available_if_capitulated = no
	
		completion_reward = {
			if = {
				limit = {
					SIA = {
						exists = yes
					}
				}
				SIA = {
					country_event = {
						id = SEA_PHI_political_events.3
						hours = 3 
						random_hours = 6
					}
				}	
				custom_effect_tooltip = if_they_accept_tt
				effect_tooltip = {
					add_ideas = PHI_asian_trade_connections_siam
				}
				custom_effect_tooltip = generic_skip_one_line_tt		
			}
			if = {
				limit = {
					INS = {
						exists = yes
					}
				}
				INS = {
					country_event = {
						id = SEA_PHI_political_events.3
						hours = 3 
						random_hours = 6
					}
				}
				custom_effect_tooltip = if_they_accept_tt
				effect_tooltip = {
					add_ideas = PHI_asian_trade_connections_dutch_east_india
				}
				custom_effect_tooltip = generic_skip_one_line_tt
			}
			if = {
				limit = {
					MAL = {
						exists = yes
					}
				}
				MAL = {
					country_event = {
						id = SEA_PHI_political_events.3
						hours = 3 
						random_hours = 6
					}
				}
				custom_effect_tooltip = if_they_accept_tt
				effect_tooltip = {
					add_ideas = PHI_asian_trade_connections_malaya
				}
			}
			hidden_effect = {
				PHI_central_focuses_done_T1 = yes
			}
		}
		search_filters = { FOCUS_FILTER_INTERNATIONAL_TRADE }
	}

	focus = {
		id = PHI_pro_hacendados
		icon = GFX_focus_PHI_pro_hacendados
#		focus_generic_land_owner
		overlay = GFX_focus_fast_overlay_america 

		prerequisite = { focus = PHI_quezon_city_campus focus = PHI_reduce_unneccessary_expenditure focus = PHI_subsidies focus = PHI_basic_welfare focus = PHI_encourage_asian_trade }

		relative_position_id = PHI_peg_the_peso_to_the_dollar	
		mutually_exclusive = { focus = PHI_anti_hacendados }		
		
		x = 0
		y = 3
	
		cost = 10

		available = {
			PHI_central_focuses_done_T1_4 = yes
		}

		ai_will_do = {
			base = 1

			modifier = {
				factor = 0.1
				has_government  = fascism
			}

			modifier = {
				factor = 3
				has_government  = democratic
			}
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			add_political_power = 50
			random_owned_controlled_state = {
				limit = {
					is_core_of = PHI
					is_fully_controlled_by = PHI
					free_building_slots = {
						building = industrial_complex
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 2
					instant_build = yes
				}	
			}
			hidden_effect = {
				PHI_usa_focus_done = yes
			}
			set_variable = { PHI_american_intervention_value_to_add = -10 } ## Value has to be tied to the custom tooltip, 10 = small increase. See in decision loc
			PHI_american_intervention_change_value = yes

			if = {
				limit = { 
					has_completed_focus = PHI_partido_komunista_ng_pilipinas_coup
					NOT = { 
						has_country_flag = PHI_american_intervention_is_over
					}
				}
				custom_effect_tooltip = generic_skip_one_line_tt
				custom_effect_tooltip = PHI_american_intervention_change_value_small_decrease_tt ## Only show the tooltip if have the decision, but add the variable regardless
			}
			custom_effect_tooltip = generic_skip_one_line_tt

			custom_effect_tooltip = PHI_replace_depression_dynamic_modifier_no_modifiers_tt
			hidden_effect = {
				remove_dynamic_modifier = { modifier = PHI_the_great_depression_dynamic_modifier }
				add_dynamic_modifier = { modifier = PHI_shaken_economy_dynamic_modifier }
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			reduce_focus_completion_cost = {
				focus = PHI_national_defense_act
				cost = 35
			}

		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = PHI_anti_hacendados
		icon = GFX_focus_PHI_anti_hacendados
		overlay = GFX_focus_fast_overlay_japan 

		prerequisite = { focus = PHI_quezon_city_campus focus = PHI_reduce_unneccessary_expenditure focus = PHI_subsidies focus = PHI_basic_welfare focus = PHI_encourage_asian_trade }

		relative_position_id = PHI_leverage_the_peso
		mutually_exclusive = { focus = PHI_pro_hacendados }

		x = 0
		y = 3
	
		cost = 10

		available = {
			PHI_central_focuses_done_T1_4 = yes
		}

		ai_will_do = {
			base = 1

			modifier = {
				factor = 3
				has_government  = fascism
			}

			modifier = {
				factor = 0.1
				has_government  = democratic
			}
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {

			set_temp_variable = { PHI_jap_alignment_value_change = 0.05 }

			PHI_check_japanese_ideology_and_adapt = yes

			set_variable = { PHI_american_intervention_value_to_add = 10 } ## Value has to be tied to the custom tooltip, 10 = small increase. See in decision loc
			PHI_american_intervention_change_value = yes

			if = {
				limit = { 
					has_completed_focus = PHI_partido_komunista_ng_pilipinas_coup
					NOT = { 
						has_country_flag = PHI_american_intervention_is_over
					}
				}
				custom_effect_tooltip = generic_skip_one_line_tt
				custom_effect_tooltip = PHI_american_intervention_change_value_medium_increase_tt ## Only show the tooltip if have the decision, but add the variable regardless
			}

			custom_effect_tooltip = generic_skip_one_line_tt
			custom_effect_tooltip = PHI_replace_depression_dynamic_modifier_tt
			hidden_effect = {
				remove_dynamic_modifier = { modifier = PHI_the_great_depression_dynamic_modifier }
				add_dynamic_modifier = { modifier = PHI_shaken_economy_dynamic_modifier }
			}
			add_to_variable = {
				PHI_the_great_depression_production_speed_buildings_factor = 0.1
				tooltip = production_speed_buildings_factor_tt
			}

			custom_effect_tooltip = generic_skip_one_line_tt
			if = {
				limit = {
					has_character = PHI_manuel_roxas	#sanity check since PHI has civil wars
				}
				custom_effect_tooltip = {
					localization_key = remove_character_as_tt
					CHARACTER = PHI_manuel_roxas
					ROLE = political_advisor
				}
				custom_effect_tooltip = generic_skip_one_line_tt
			}

			reduce_focus_completion_cost = {
				focus = PHI_luzon_transport focus = PHI_mindanao_transport focus = PHI_land_reform focus = PHI_bill_of_rights
				cost = 35
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			reduce_focus_completion_cost = {
				focus = PHI_national_defense_act
				cost = 35
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			custom_effect_tooltip = PHI_clock_tt
		}
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_POLITICAL }
	}

	focus = {
		id = PHI_sugar_barons
		icon = GFX_focus_BRA_support_sugar_barons

		prerequisite = { focus = PHI_pro_hacendados focus = PHI_anti_hacendados }

		relative_position_id = PHI_pro_hacendados	
		
		x = 2
		y = 1
	
		cost = 10

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			custom_effect_tooltip = PHI_sugar_barons_unlock_tt

			custom_effect_tooltip = generic_skip_one_line_tt
			if = {
				limit = {
					OR = {
						has_completed_focus = PHI_open_borders
						has_completed_focus = PHI_nationality_act
					}
				}
				custom_effect_tooltip = PHI_modify_economy_dynamic_modifier_tt
			}
			else = {
				custom_effect_tooltip = PHI_modify_shaken_economy_dynamic_modifier_tt
			}
			add_to_variable = {
				PHI_the_great_depression_fuel_gain_factor = 0.15
				tooltip = fuel_gain_factor_tt
			}

			random_owned_controlled_state = {
				limit = {
					is_core_of = PHI
					is_fully_controlled_by = PHI
					free_building_slots = {
						building = industrial_complex
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}	
			}
			random_owned_controlled_state = {
				limit = {
					is_core_of = PHI
					is_fully_controlled_by = PHI
					free_building_slots = {
						building = dockyard
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = dockyard
					level = 1
					instant_build = yes
				}	
			}
			set_variable = { PHI_american_intervention_value_to_add = -10 } ## Value has to be tied to the custom tooltip, 10 = small increase. See in decision loc
			PHI_american_intervention_change_value = yes

			if = {
				limit = { 
					has_completed_focus = PHI_partido_komunista_ng_pilipinas_coup
					NOT = { 
						has_country_flag = PHI_american_intervention_is_over
					}
				}
				custom_effect_tooltip = generic_skip_one_line_tt
				custom_effect_tooltip = PHI_american_intervention_change_value_small_decrease_tt ## Only show the tooltip if have the decision, but add the variable regardless
			}
			hidden_effect = {
				PHI_central_focuses_done_T2 = yes
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = PHI_luzon_transport
		icon = GFX_focus_PHI_luzon_transport
		overlay = GFX_focus_fast_overlay_japan_clock

		prerequisite = { focus = PHI_pro_hacendados focus = PHI_anti_hacendados }

		relative_position_id = PHI_pro_hacendados	
		
		x = 4
		y = 1
	
		cost = 10

		available = {
			PHI = { controls_state = 623 }
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			623 = { ## Luzon
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}	
				add_extra_state_shared_building_slots = 1
			}
			1027 = { ## Bataan
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}	
				add_extra_state_shared_building_slots = 1
			}
			327 = { ## Manila
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}	
				add_extra_state_shared_building_slots = 1
			}

			custom_effect_tooltip = generic_skip_one_line_tt
			custom_effect_tooltip = PHI_focus_time_reduced_T2_tt

			hidden_effect = {
				PHI_central_focuses_done_T2 = yes
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = PHI_expand_gold_mining
		icon = GFX_focus_generic_expand_gold_mining

		prerequisite = { focus = PHI_pro_hacendados focus = PHI_anti_hacendados }

		relative_position_id = PHI_pro_hacendados	
		
		x = 6
		y = 1
	
		cost = 10

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			if = {
				limit = {
					OR = {
						has_completed_focus = PHI_open_borders
						has_completed_focus = PHI_nationality_act
					}
				}
				custom_effect_tooltip = PHI_modify_economy_dynamic_modifier_tt
			}
			else = {
				custom_effect_tooltip = PHI_modify_shaken_economy_dynamic_modifier_tt
			}
			add_to_variable = {
				PHI_the_great_depression_consumer_goods_factor = -0.05
				tooltip = consumer_goods_factor_tt
			}
			add_to_variable = {
				PHI_the_great_depression_political_power_gain = 0.05
				tooltip = political_power_gain_tt
			}
			hidden_effect = {
				PHI_central_focuses_done_T2 = yes
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = PHI_mindanao_transport
		icon = GFX_focus_PHI_mindanao_transport
		overlay = GFX_focus_fast_overlay_japan_clock

		prerequisite = { focus = PHI_pro_hacendados focus = PHI_anti_hacendados }

		relative_position_id = PHI_pro_hacendados	
		
		x = 8
		y = 1
	
		cost = 10

		available = {
			PHI = { controls_state = 1026 }
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			1026 = { ## Northern Mindanao
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}	
				add_extra_state_shared_building_slots = 1
			}
			627 = { ## Davao
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}	
				add_extra_state_shared_building_slots = 1
			}
			1025 = { ## Zamboanga
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}	
				add_extra_state_shared_building_slots = 1
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			custom_effect_tooltip = PHI_mindanao_transport_decision_unlock_tt

			custom_effect_tooltip = generic_skip_one_line_tt
			custom_effect_tooltip = PHI_focus_time_reduced_T2_tt

			hidden_effect = {
				PHI_central_focuses_done_T2 = yes
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = PHI_land_reform
		icon = GFX_focus_generic_farmland
		overlay = GFX_focus_fast_overlay_japan_clock	

		prerequisite = { focus = PHI_pro_hacendados focus = PHI_anti_hacendados }

		relative_position_id = PHI_pro_hacendados	
		
		x = 10
		y = 1
	
		cost = 10

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			if = {
				limit = {
					OR = {
						has_completed_focus = PHI_open_borders
						has_completed_focus = PHI_nationality_act
					}
				}
				custom_effect_tooltip = PHI_modify_economy_dynamic_modifier_tt
			}
			else = {
				custom_effect_tooltip = PHI_modify_shaken_economy_dynamic_modifier_tt
			}
			add_to_variable = {
				PHI_the_great_depression_consumer_goods_factor = -0.05
				tooltip = consumer_goods_factor_tt
			}

			set_variable = { PHI_american_intervention_value_to_add = 10 } ## Value has to be tied to the custom tooltip, 10 = small increase. See in decision loc
			PHI_american_intervention_change_value = yes

			if = {
				limit = { 
					has_completed_focus = PHI_partido_komunista_ng_pilipinas_coup
					NOT = { 
						has_country_flag = PHI_american_intervention_is_over
					}
				}
				custom_effect_tooltip = generic_skip_one_line_tt
				custom_effect_tooltip = PHI_american_intervention_change_value_medium_increase_tt ## Only show the tooltip if have the decision, but add the variable regardless
			}

			custom_effect_tooltip = generic_skip_one_line_tt
			custom_effect_tooltip = PHI_focus_time_reduced_T2_tt

			hidden_effect = {
				PHI_central_focuses_done_T2 = yes
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = PHI_japanese_advisors
		icon = GFX_focus_PHI_japanese_advisors

		prerequisite = { focus = PHI_anti_hacendados }

		relative_position_id = PHI_anti_hacendados
		
		x = 2
		y = 1
	
		cost = 5

		available = {
			NOT = {
				has_war_with = JAP
			}
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			if = {
				limit = {
					NOT = {
						has_completed_focus = PHI_japanese_observers
					}
				}
				custom_effect_tooltip = PHI_one_observer_advisor_focus_tt
				show_unit_leaders_tooltip = PHI_yuitsu_tsuchihashi
				show_unit_leaders_tooltip = PHI_iwaichi_fujiwara
				show_unit_leaders_tooltip = PHI_okawachi_denshichi
	
				custom_effect_tooltip = generic_skip_one_line_tt
	
				custom_effect_tooltip = PHI_both_observer_advisor_focus_tt
				add_timed_idea = {
					idea = PHI_japanese_investment
					days = 180
				}
				custom_effect_tooltip = generic_skip_one_line_tt
				effect_tooltip = {
					if = {
						limit = {
							has_dlc = "Arms Against Tyranny"
							has_completed_focus = PHI_align_with_japan
							NOT = {
								has_completed_focus = PHI_declare_military_emergency
							}
						}
						every_military_industrial_organization = {
							limit = {
								OR = {
									is_military_industrial_organization = JAP_mitsubishi_heavy_industries_organization
									is_military_industrial_organization = JAP_mitsubishi_kobe_shipyard_organization
									is_military_industrial_organization = JAP_yokosuka_naval_arsenal_organization
									is_military_industrial_organization = JAP_mitsubishi_organization
									is_military_industrial_organization = JAP_kokura_arsenal_organization
									is_military_industrial_organization = JAP_nissan_organization
									is_military_industrial_organization = JAP_tokyo_automobile_industries_organization
								}
							}
							add_mio_size = 1
						}
					}
				}
			}
			else = {
				add_timed_idea = {
					idea = PHI_japanese_investment
					days = 180
				}
				custom_effect_tooltip = generic_skip_one_line_tt
				if = {
					limit = {
						has_dlc = "Arms Against Tyranny"
						has_completed_focus = PHI_align_with_japan
						NOT = {
							has_completed_focus = PHI_declare_military_emergency
						}
					}
					every_military_industrial_organization = {
						limit = {
							OR = {
								is_military_industrial_organization = JAP_mitsubishi_heavy_industries_organization
								is_military_industrial_organization = JAP_mitsubishi_kobe_shipyard_organization
								is_military_industrial_organization = JAP_yokosuka_naval_arsenal_organization
								is_military_industrial_organization = JAP_mitsubishi_organization
								is_military_industrial_organization = JAP_kokura_arsenal_organization
								is_military_industrial_organization = JAP_nissan_organization
								is_military_industrial_organization = JAP_tokyo_automobile_industries_organization
							}
						}
						add_mio_size = 1
					}
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_MILITARY_CHARACTER }
	}

	focus = {
		id = PHI_san_miguel
		icon = GFX_focus_PHI_san_miguel

		prerequisite = { focus = PHI_sugar_barons }

		relative_position_id = PHI_sugar_barons	
		
		x = 0
		y = 1
	
		cost = 10

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {

			if = {
				limit = {
					has_idea = PHI_san_miguel_company_idea
				}
				custom_effect_tooltip = PHI_san_miguel_improved_tt
				swap_ideas = {
					remove_idea = PHI_san_miguel_company_idea
					add_idea = PHI_san_miguel_company_improved_idea
				}
			}
			else = {
				effect_tooltip = {
					swap_ideas = {
						remove_idea = PHI_san_miguel_company_idea
						add_idea = PHI_san_miguel_company_improved_idea
					}
				}
			}
			hidden_effect = {
				PHI_central_focuses_done_T2 = yes
			}
		}
		search_filters = { FOCUS_FILTER_WAR_SUPPORT }
	}

	focus = {
		id = PHI_textile_mills
		icon = GFX_focus_CHL_enlarge_the_textile_industries

		prerequisite = { focus = PHI_luzon_transport }

		relative_position_id = PHI_luzon_transport	
		
		x = 0
		y = 1
	
		cost = 10

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			random_owned_controlled_state = {
				limit = {
					is_core_of = PHI
					is_fully_controlled_by = PHI
					free_building_slots = {
						building = industrial_complex
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 2
					instant_build = yes
				}	
			}
			hidden_effect = {
				PHI_central_focuses_done_T2 = yes
			}	
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = PHI_encourage_gold_exports
		icon = GFX_focus_usa_reestablish_the_gold_standard

		prerequisite = { focus = PHI_expand_gold_mining }

		relative_position_id = PHI_expand_gold_mining	
		
		x = 0
		y = 1
	
		cost = 10

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			if = {
				limit = {
					has_idea = PHI_marsman_and_company_idea
				}
				custom_effect_tooltip = PHI_marsman_and_company_improved_tt
				swap_ideas = {
					remove_idea = PHI_marsman_and_company_idea
					add_idea = PHI_marsman_and_company_improved_idea
				}
			}
			else = {
				effect_tooltip = {
					swap_ideas = {
						remove_idea = PHI_marsman_and_company_idea
						add_idea = PHI_marsman_and_company_improved_idea
					}
				}
			}

			if = {
				limit = {
					OR = {
						has_completed_focus = PHI_open_borders
						has_completed_focus = PHI_nationality_act
					}
				}
				custom_effect_tooltip = PHI_modify_economy_dynamic_modifier_tt
			}
			else = {
				custom_effect_tooltip = PHI_modify_shaken_economy_dynamic_modifier_tt
			}
			add_to_variable = {
				PHI_the_great_depression_consumer_goods_factor = -0.05
				tooltip = consumer_goods_factor_tt
			}

			hidden_effect = {
				PHI_central_focuses_done_T2 = yes
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = PHI_mineral_prospecting
		icon = GFX_focus_generic_mineral_prospecting

		prerequisite = { focus = PHI_mindanao_transport }

		relative_position_id = PHI_mindanao_transport	
		
		x = 0
		y = 1
	
		cost = 10

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			if = {
				limit = {
					has_idea = PHI_benguet_corporation_idea
				}
				custom_effect_tooltip = PHI_benguet_corporation_improved_tt
				swap_ideas = {
					remove_idea = PHI_benguet_corporation_idea
					add_idea = PHI_benguet_corporation_improved_idea
				}
			}
			else = {
				effect_tooltip = {
					swap_ideas = {
						remove_idea = PHI_benguet_corporation_idea
						add_idea = PHI_benguet_corporation_improved_idea
					}
				}
			}

			custom_effect_tooltip = PHI_prospecting_decision_cat_unlock_tt
			hidden_effect = {
				PHI_central_focuses_done_T2 = yes
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = PHI_bill_of_rights
		icon = GFX_focus_generic_treaty
		overlay = GFX_focus_fast_overlay_japan_clock		

		prerequisite = { focus = PHI_land_reform }

		relative_position_id = PHI_land_reform	
		
		x = 0
		y = 1
	
		cost = 10

		available = {
		}

		ai_will_do = {
			base = 1

			modifier = {
				factor = 10
				has_government = democratic
			}

			modifier = {
				factor = 0.1
				has_government = fascism
			}
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			add_political_power = 75
			add_war_support = 0.1
			add_stability = 0.05

			custom_effect_tooltip = generic_skip_one_line_tt
			custom_effect_tooltip = PHI_focus_time_reduced_T2_tt

			hidden_effect = {
				PHI_central_focuses_done_T2 = yes
			}
		}
		search_filters = { FOCUS_FILTER_STABILITY FOCUS_FILTER_WAR_SUPPORT }
	}

	focus = {
		id = PHI_nationality_act
		icon = GFX_focus_usa_recruit_the_free_corps
		overlay = GFX_focus_fast_overlay_america 		

		prerequisite = { focus = PHI_san_miguel focus = PHI_textile_mills focus = PHI_encourage_gold_exports focus = PHI_mineral_prospecting focus = PHI_bill_of_rights }

		relative_position_id = PHI_pro_hacendados	
		mutually_exclusive = { focus = PHI_open_borders }
		
		x = 0
		y = 3
	
		cost = 10

		available = {
			PHI_central_focuses_done_T2_4 = yes
		}

		ai_will_do = {
			base = 1

			modifier = {
				factor = 0.1
				has_government  = fascism
			}

			modifier = {
				factor = 2
				has_government  = democratic
			}
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			custom_effect_tooltip = PHI_replace_shaken_dynamic_modifier_tt
			hidden_effect = {
				remove_dynamic_modifier = { modifier = PHI_shaken_economy_dynamic_modifier }
				add_dynamic_modifier = { modifier = PHI_recovering_economy_dynamic_modifier }
			}
			add_to_variable = {
				PHI_the_great_depression_political_power_gain = 0.10
				tooltip = political_power_gain_tt
			}
			add_to_variable = {
				PHI_the_great_depression_drift_defence_factor = 0.10
				tooltip = drift_defence_factor_tt
			}

			custom_effect_tooltip = generic_skip_one_line_tt
			reduce_focus_completion_cost = {
				focus = PHI_national_defense_act
				cost = 35
			}
			hidden_effect = {
				PHI_usa_focus_done = yes
			}
		}
	}

	focus = {
		id = PHI_open_borders
		icon = GFX_focus_PHI_open_borders
		overlay = GFX_focus_fast_overlay_japan	

		prerequisite = { focus = PHI_san_miguel focus = PHI_textile_mills focus = PHI_encourage_gold_exports focus = PHI_mineral_prospecting focus = PHI_bill_of_rights }

		relative_position_id = PHI_anti_hacendados	
		mutually_exclusive = { focus = PHI_nationality_act }
		
		x = 0
		y = 3
	
		cost = 10

		available = {
			PHI_central_focuses_done_T2_4 = yes
		}

		ai_will_do = {
			base = 1

			modifier = {
				factor = 2
				has_government  = fascism
			}

			modifier = {
				factor = 0.1
				has_government  = democratic
			}
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			# Tooltip to describe ideology improvement 

			set_temp_variable = { PHI_jap_alignment_value_change = 0.05 }

			PHI_check_japanese_ideology_and_adapt = yes

			custom_effect_tooltip = generic_skip_one_line_tt

			custom_effect_tooltip = PHI_replace_shaken_dynamic_modifier_tt
			hidden_effect = {
				remove_dynamic_modifier = { modifier = PHI_shaken_economy_dynamic_modifier }
				add_dynamic_modifier = { modifier = PHI_recovering_economy_dynamic_modifier }
			}
			add_to_variable = {
				PHI_the_great_depression_compliance_growth = 0.10
				tooltip = compliance_growth_tt
			}
			add_to_variable = {
				PHI_the_great_depression_drift_defence_factor = -0.05
				tooltip = drift_defence_factor_tt
			}

			custom_effect_tooltip = generic_skip_one_line_tt
			reduce_focus_completion_cost = {
			  focus = PHI_increase_sugar_exports focus = PHI_encourage_chinese_immigration
			  cost = 35
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			reduce_focus_completion_cost = {
			  focus = PHI_national_defense_act
			  cost = 35
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			custom_effect_tooltip = PHI_clock_tt
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}

	focus = {
		id = PHI_philippine_american_educational_foundation
		icon = GFX_focus_research

		prerequisite = { focus = PHI_nationality_act }

		relative_position_id = PHI_nationality_act	
		
		x = 0
		y = 2
	
		cost = 10

		available = {
			has_completed_focus = PHI_align_with_the_usa
			has_completed_focus = PHI_peg_the_peso_to_the_dollar
			has_completed_focus = PHI_pro_hacendados
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			add_research_slot = 1
			hidden_effect = {
				PHI_central_focuses_done_T3 = yes
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = PHI_government_filipinization
		icon = GFX_focus_PER_limit_foreign_influence

		prerequisite = { focus = PHI_nationality_act focus = PHI_open_borders }

		relative_position_id = PHI_nationality_act	
		
		x = 1
		y = 1
	
		cost = 10

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {

			every_character = {
				limit = {
					OR = {
						is_character = PHI_juan_samulong
						is_character = PHI_jose_laurel
						is_character = PHI_manuel_roxas
					}
				}
				custom_effect_tooltip = PHI_improve_trait_tt
			}

			hidden_effect = {
				#Samulong
				remove_trait = {
					character = PHI_juan_samulong
					slot = political_advisor
					trait = PHI_mercantalist
				}
				add_trait = {
					character = PHI_juan_samulong
					slot = political_advisor
					trait = PHI_mercantalist_improved
				}

				#Laurel
				remove_trait = {
					character = PHI_jose_laurel
					slot = political_advisor
					trait = PHI_social_reformer
				}
				add_trait = {
					character = PHI_jose_laurel
					slot = political_advisor
					trait = PHI_social_reformer_improved
				}

				#Roxas
				remove_trait = {
					character = PHI_manuel_roxas
					slot = political_advisor
					trait = PHI_hacendado
				}
				add_trait = {
					character = PHI_manuel_roxas
					slot = political_advisor
					trait = PHI_hacendado_improved
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt
			if = {
				limit = {
					has_completed_focus = PHI_treaty_of_manila
				}
				custom_effect_tooltip = PHI_modify_economy_dynamic_modifier_tt
			}
			else = {
				custom_effect_tooltip = PHI_modify_recovering_economy_dynamic_modifier_tt
			}
			add_to_variable = {
				PHI_the_great_depression_drift_defence_factor = 0.10
				tooltip = drift_defence_factor_tt
			}
			add_to_variable = {
				PHI_the_great_depression_intelligence_agency_defense = 0.20
				tooltip = intelligence_agency_defense_tt
			}
			hidden_effect = {
				PHI_central_focuses_done_T3 = yes
			}
		}
		search_filters = { FOCUS_FILTER_POLITICAL_CHARACTER FOCUS_FILTER_INTERNATIONAL_TRADE }
	}

	focus = {
		id = PHI_bicameral_legislature
		icon = GFX_focus_generic_improve_the_administration_2

		prerequisite = { focus = PHI_nationality_act focus = PHI_open_borders }

		relative_position_id = PHI_nationality_act	
		
		x = 3
		y = 1
	
		cost = 10

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			add_timed_idea = {
				idea = PHI_government_reform
				days = 360
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			if = {
				limit = {
					has_completed_focus = PHI_treaty_of_manila
				}
				custom_effect_tooltip = PHI_modify_economy_dynamic_modifier_tt
			}
			else = {
				custom_effect_tooltip = PHI_modify_recovering_economy_dynamic_modifier_tt
			}
			add_to_variable = {
				PHI_the_great_depression_political_power_gain = 0.15
				tooltip = political_power_gain_tt
			}
			add_to_variable = {
				PHI_the_great_depression_production_speed_buildings_factor = 0.05
				tooltip = production_speed_buildings_factor_tt
			}

			hidden_effect = {
				PHI_central_focuses_done_T3 = yes
			}
		}
	}

	focus = {
		id = PHI_uncouple_the_peso_and_dollar
		icon = GFX_focus_PHI_uncouple_the_peso_and_dollar

		prerequisite = { focus = PHI_nationality_act focus = PHI_open_borders }

		relative_position_id = PHI_nationality_act	
		
		x = 5
		y = 1
	
		cost = 10

		available = {
			has_completed_focus = PHI_peg_the_peso_to_the_dollar
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = { ## Same completion reward as leverage the peso
			IF = {
				limit = {
					327 = { ## Manila
						free_building_slots = {
							building = industrial_complex
							size > 2
							include_locked = yes
						}	
					}
				}
				327 = { ## Manila
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = industrial_complex
						level = 2
						instant_build = yes
					}	
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}	
				}
			}
			IF = {
				limit = {
					627 = { ## Davao
						free_building_slots = {
							building = industrial_complex
							size > 1
							include_locked = yes
						}	
					}
				}
				627 = { ## Davao
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = industrial_complex
						level = 1
						instant_build = yes
					}	
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}	
				}
			}
			hidden_effect = {
				PHI_central_focuses_done_T3 = yes
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = PHI_increase_sugar_exports
		icon = GFX_focus_AFG_sugar_factory
		overlay = GFX_focus_fast_overlay_japan_clock		

		prerequisite = { focus = PHI_nationality_act focus = PHI_open_borders }

		relative_position_id = PHI_nationality_act	
		
		x = 7
		y = 1
	
		cost = 10

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			if = {
				limit = {
					has_completed_focus = PHI_treaty_of_manila
				}
				custom_effect_tooltip = PHI_modify_economy_dynamic_modifier_tt
			}
			else = {
				custom_effect_tooltip = PHI_modify_recovering_economy_dynamic_modifier_tt
			}
			add_to_variable = {
				PHI_the_great_depression_consumer_goods_factor = -0.10
				tooltip = consumer_goods_factor_tt
			}

			custom_effect_tooltip = generic_skip_one_line_tt
			custom_effect_tooltip = PHI_focus_time_reduced_T3_tt

			hidden_effect = {
				PHI_central_focuses_done_T3 = yes
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = PHI_break_chinese_monopoly
		icon = GFX_focus_BEL_government_resigns

		prerequisite = { focus = PHI_nationality_act focus = PHI_open_borders }

		relative_position_id = PHI_nationality_act	
		mutually_exclusive = { focus = PHI_encourage_chinese_immigration }
		
		x = 9
		y = 1
	
		cost = 10

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			if = {
				limit = {
					has_completed_focus = PHI_treaty_of_manila
				}
				custom_effect_tooltip = PHI_modify_economy_dynamic_modifier_tt
			}
			else = {
				custom_effect_tooltip = PHI_modify_recovering_economy_dynamic_modifier_tt
			}
			add_to_variable = {
				PHI_the_great_depression_consumer_goods_factor = -0.05
				tooltip = consumer_goods_factor_tt
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			random_owned_controlled_state = {
				limit = {
					is_core_of = PHI
					is_fully_controlled_by = PHI
					free_building_slots = {
						building = industrial_complex
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 2
					instant_build = yes
				}	
			}

			custom_effect_tooltip = generic_skip_one_line_tt
			add_stability = -0.05
			custom_effect_tooltip = generic_skip_one_line_tt

			CHI = {
				add_opinion_modifier = { 
					target = PHI
					modifier = PHI_seized_migrant_property
				}
			}
			hidden_effect = {
				PHI_central_focuses_done_T3 = yes
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = PHI_encourage_chinese_immigration
		icon = GFX_focus_PHI_encourage_chinese_immigration
		overlay = GFX_focus_fast_overlay_japan_clock		

		prerequisite = { focus = PHI_nationality_act focus = PHI_open_borders }

		relative_position_id = PHI_nationality_act	
		mutually_exclusive = { focus = PHI_break_chinese_monopoly }
		
		x = 11
		y = 1
	
		cost = 10

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			if = {
				limit = {
					has_completed_focus = PHI_treaty_of_manila
				}
				custom_effect_tooltip = PHI_modify_economy_dynamic_modifier_tt
			}
			else = {
				custom_effect_tooltip = PHI_modify_recovering_economy_dynamic_modifier_tt
			}
			add_to_variable = {
				PHI_the_great_depression_drift_defence_factor = -0.05
				tooltip = drift_defence_factor_tt
			}
			add_to_variable = {
				PHI_the_great_depression_production_speed_industrial_complex_factor = 0.10
				tooltip = production_speed_industrial_complex_factor_tt
			}
			add_to_variable = {
				PHI_the_great_depression_production_speed_infrastructure_factor = 0.10
				tooltip = production_speed_infrastructure_factor_tt
			}

			custom_effect_tooltip = generic_skip_one_line_tt
			CHI = { 
				add_opinion_modifier = { 
					target = PHI
					modifier = PHI_welcomed_chinese_migrants
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt
			custom_effect_tooltip = PHI_focus_time_reduced_T3_tt

			hidden_effect = {
				PHI_central_focuses_done_T3 = yes
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = PHI_japanese_observers
		icon = GFX_focus_PHI_japanese_observers

		prerequisite = { focus = PHI_open_borders }

		relative_position_id = PHI_open_borders	
		
		
		x = 2
		y = 1
	
		cost = 5

		available = {
			NOT = {
				has_war_with = JAP
			}
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			if = {
				limit = {
					NOT = {
						has_completed_focus = PHI_japanese_advisors
					}
				}
				custom_effect_tooltip = PHI_one_observer_advisor_focus_tt
				show_unit_leaders_tooltip = PHI_yuitsu_tsuchihashi
				show_unit_leaders_tooltip = PHI_iwaichi_fujiwara
				show_unit_leaders_tooltip = PHI_okawachi_denshichi
	
				custom_effect_tooltip = generic_skip_one_line_tt
	
				custom_effect_tooltip = PHI_both_observer_advisor_focus_tt
				effect_tooltip = {
					add_timed_idea = {
						idea = PHI_japanese_investment
						days = 180
					}
					custom_effect_tooltip = generic_skip_one_line_tt
					if = {
						limit = {
							has_dlc = "Arms Against Tyranny"
							has_completed_focus = PHI_align_with_japan
							NOT = {
								has_completed_focus = PHI_declare_military_emergency
							}
						}
						every_military_industrial_organization = {
							limit = {
								OR = {
									is_military_industrial_organization = JAP_mitsubishi_heavy_industries_organization
									is_military_industrial_organization = JAP_mitsubishi_kobe_shipyard_organization
									is_military_industrial_organization = JAP_yokosuka_naval_arsenal_organization
									is_military_industrial_organization = JAP_mitsubishi_organization
									is_military_industrial_organization = JAP_kokura_arsenal_organization
									is_military_industrial_organization = JAP_nissan_organization
									is_military_industrial_organization = JAP_tokyo_automobile_industries_organization
								}
							}
							add_mio_size = 1
						}
					}
				}
			}
			else = {
				add_timed_idea = {
					idea = PHI_japanese_investment
					days = 180
				}
				custom_effect_tooltip = generic_skip_one_line_tt
				if = {
					limit = {
						has_dlc = "Arms Against Tyranny"
						has_completed_focus = PHI_align_with_japan
						NOT = {
							has_completed_focus = PHI_declare_military_emergency
						}
					}
					every_military_industrial_organization = {
						limit = {
							OR = {
								is_military_industrial_organization = JAP_mitsubishi_heavy_industries_organization
								is_military_industrial_organization = JAP_mitsubishi_kobe_shipyard_organization
								is_military_industrial_organization = JAP_yokosuka_naval_arsenal_organization
								is_military_industrial_organization = JAP_mitsubishi_organization
								is_military_industrial_organization = JAP_kokura_arsenal_organization
								is_military_industrial_organization = JAP_nissan_organization
								is_military_industrial_organization = JAP_tokyo_automobile_industries_organization
							}
						}
						add_mio_size = 1
					}
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_MILITARY_CHARACTER }
	}

##########################
##########################
###### INDEPENDENCE ######
##########################
##########################

	focus = {
		id = PHI_treaty_of_manila
		icon = GFX_focus_PHI_treaty_of_manila

		prerequisite = { focus = PHI_government_filipinization focus = PHI_bicameral_legislature focus = PHI_uncouple_the_peso_and_dollar focus = PHI_increase_sugar_exports focus = PHI_break_chinese_monopoly focus = PHI_encourage_chinese_immigration }

		relative_position_id = PHI_uncouple_the_peso_and_dollar	
		
		x = 1
		y = 2
	
		cost = 10

		available = {
			PHI_central_focuses_done_T3_4 = yes

			OR = {
				is_subject = no
				AND = {
					is_subject_of = USA
					compare_autonomy_state > autonomy_integrated_puppet
				}
			}
		}

		ai_will_do = {
			base = 10
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			if = {
				limit = {
					is_subject = yes
				}
				country_event = SEA_PHI_political_events.55
			}
			random_other_country = {
				limit = {
					has_subject = PHI
				}
				set_autonomy = {
					target = PHI
					autonomy_state = autonomy_free
					freedom_level = 1
					end_wars  = no
					end_civil_wars = no
				}
				country_event = SEA_PHI_political_events.55
			}

			if = {
				limit = {
					NOT = {
						has_cosmetic_tag = PHI_maphilindo_tag
						has_cosmetic_tag = PHI_asean_tag
						has_cosmetic_tag = PHI_reino_de_filipinas_tag
						has_cosmetic_tag = PHI_hispanic_empire_tag
						has_cosmetic_tag = PHI_hispanic_empire_tag_war
						has_cosmetic_tag = PHI_reino_de_filipinas_tag_war
					}
				}
				custom_effect_tooltip = PHI_manila_tag_tt
	
				hidden_effect = {
					set_cosmetic_tag = PHI_manila_tag
					PHI_update_war_flag = yes
				}
			}

			set_country_flag = leave_faction_happily_flag
			mark_focus_tree_layout_dirty = yes

			custom_effect_tooltip = generic_skip_one_line_tt

			custom_effect_tooltip = PHI_replace_economic_dynamic_modifier_tt

			hidden_effect = {
				remove_dynamic_modifier = { modifier = PHI_recovering_economy_dynamic_modifier }
				add_dynamic_modifier = { modifier = PHI_economic_growth_dynamic_modifier }
			}
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}

	focus = {
		id = PHI_universal_sufferage
		icon = GFX_focus_generic_universal_suffrage

		prerequisite = { focus = PHI_treaty_of_manila }

		relative_position_id = PHI_treaty_of_manila	
		
		x = -1
		y = 1
	
		cost = 5

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			add_popularity = {
				ideology = ROOT
				popularity = 0.10
			}
			
			custom_effect_tooltip = generic_skip_one_line_tt

			add_ideas = PHI_female_suffrage
		}
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = PHI_modernization
		icon = GFX_focus_generic_modernize_industry

		prerequisite = { focus = PHI_treaty_of_manila }

		relative_position_id = PHI_treaty_of_manila	
		
		x = 1
		y = 1
	
		cost = 5

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			add_tech_bonus = {
				bonus = 0.5
				uses = 2
				category = electronics
				name = PHI_modernization
			}
			add_tech_bonus = {
				bonus = 0.25
				uses = 2
				category = cat_production
				name = PHI_modernization
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			custom_effect_tooltip = PHI_modify_economic_recovery_dynamic_modifier_tt
			add_to_variable = {
				PHI_the_great_depression_production_speed_buildings_factor = 0.15
				tooltip = production_speed_buildings_factor_tt
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = PHI_bill_of_rights_for_veterans
		icon = GFX_focus_PHI_bill_of_rights_for_veterans

		prerequisite = { focus = PHI_universal_sufferage }

		relative_position_id = PHI_universal_sufferage	
		
		x = -3
		y = 1
	
		cost = 5

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			add_war_support = 0.1

			custom_effect_tooltip = generic_skip_one_line_tt

			custom_effect_tooltip = PHI_modify_economic_recovery_dynamic_modifier_tt
			add_to_variable = {
				PHI_the_great_depression_conscription_factor = 0.10
				tooltip = conscription_factor_tt
			}
			add_to_variable = {
				PHI_the_great_depression_weekly_casualties_war_support = 0.0025
				tooltip = weekly_casualties_war_support_tt
			}
		}
		search_filters = { FOCUS_FILTER_MANPOWER FOCUS_FILTER_WAR_SUPPORT }
	}

	focus = {
		id = PHI_revision_of_taxation_laws
		icon = GFX_focus_generic_economic_recovery

		prerequisite = { focus = PHI_universal_sufferage }

		relative_position_id = PHI_universal_sufferage	
		
		x = -1
		y = 1
	
		cost = 5

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			custom_effect_tooltip = PHI_modify_economic_recovery_dynamic_modifier_tt
			add_to_variable = {
				PHI_the_great_depression_consumer_goods_factor = -0.1
				tooltip = consumer_goods_factor_tt
			}
			add_to_variable = {
				PHI_the_great_depression_political_power_gain = 0.15
				tooltip = political_power_gain_tt
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = PHI_rehabilitation_finance_corporation
		icon = GFX_focus_RAJ_special_economic_zones

		prerequisite = { focus = PHI_modernization }

		relative_position_id = PHI_modernization	
		
		x = 1
		y = 1
	
		cost = 5

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			add_ideas = PHI_rehabilitation_finance_corporation_idea
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = PHI_department_of_foreign_affairs
		icon = GFX_focus_generic_diplomatic_treaty

		prerequisite = { focus = PHI_modernization }

		relative_position_id = PHI_modernization	
		
		x = 3
		y = 1
	
		cost = 5

		available = {
			is_subject = no		#decision category otherwise hidden
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			unlock_decision_category_tooltip = PHI_department_of_foreign_affairs_category

			
			if = {
				limit = {
					OR = {
						NOT = {
							has_completed_focus = PHI_open_borders
							has_completed_focus = PHI_nationality_act
						}
						has_dynamic_modifier = {
							modifier = PHI_japan_aligned_ideology
						}
					}
				}
				custom_effect_tooltip = generic_skip_one_line_tt
				unlock_decision_tooltip = PHI_decrease_japanese_ideological_influence
			}
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}

	focus = {
		id = PHI_economic_nationalism
		icon = GFX_focus_PHI_economic_nationalism

		prerequisite = { focus = PHI_revision_of_taxation_laws }
		prerequisite = { focus = PHI_bill_of_rights_for_veterans }
		prerequisite = { focus = PHI_rehabilitation_finance_corporation }
		prerequisite = { focus = PHI_department_of_foreign_affairs }
		relative_position_id = PHI_revision_of_taxation_laws	
		
		x = 1
		y = 1
	
		cost = 5

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			random_owned_controlled_state = {
				limit = {
					is_core_of = PHI
					is_fully_controlled_by = PHI
					free_building_slots = {
						building = industrial_complex
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 2
					instant_build = yes
				}	
			}
			random_owned_controlled_state = {
				limit = {
					is_core_of = PHI
					is_fully_controlled_by = PHI
					free_building_slots = {
						building = industrial_complex
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 2
					instant_build = yes
				}	
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			custom_effect_tooltip = PHI_modify_economic_recovery_dynamic_modifier_tt
			add_to_variable = {
				PHI_the_great_depression_resource_trade_cost_bonus_per_factory = -1
				tooltip = resource_trade_cost_bonus_per_factory_tt
			}
			add_to_variable = {
				PHI_the_great_depression_resource_gain = 0.1
				tooltip = local_resources_factor_tt
			}
			add_to_variable = {
				PHI_the_great_depression_consumer_goods_factor = -0.05
				tooltip = consumer_goods_factor_tt
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_INTERNATIONAL_TRADE }
	}

	focus = {
		id = PHI_bell_trade_act
		icon = GFX_focus_PHI_bell_trade_act

		prerequisite = { focus = PHI_revision_of_taxation_laws }
		prerequisite = { focus = PHI_bill_of_rights_for_veterans }
		prerequisite = { focus = PHI_rehabilitation_finance_corporation }
		prerequisite = { focus = PHI_department_of_foreign_affairs }
		relative_position_id = PHI_revision_of_taxation_laws	
		
		x = 3
		y = 1
	
		cost = 5

		available = {
			USA = {
				has_opinion = {
					target = ROOT
					value > 29
				}
			}
		}

		bypass = {
			USA = {
				OR = {
					exists = no
					has_war_with = ROOT
				}
			}
		}

		available_if_capitulated = no
	
		completion_reward = {
			add_tech_bonus = {
				name = PHI_bell_trade_act
				bonus = 0.5
				uses = 2
				category = industry
			}
			add_tech_bonus = {
				name = PHI_bell_trade_act
				bonus = 0.5
				uses = 2
				category = excavation_tech
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			random_owned_controlled_state = {
				limit = {
					is_core_of = PHI
					is_fully_controlled_by = PHI
					free_building_slots = {
						building = industrial_complex
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 2
					instant_build = yes
				}	
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			add_ideas = PHI_bell_trade_act_idea
		}
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESEARCH FOCUS_FILTER_INTERNATIONAL_TRADE }
	}

	focus = {
		id = PHI_pearl_of_the_orient_seas
		icon = GFX_focus_PHI_pearl_of_the_orient_seas

		prerequisite = { focus = PHI_economic_nationalism }
		prerequisite = { focus = PHI_bell_trade_act }

		relative_position_id = PHI_economic_nationalism	
		
		x = 1
		y = 1
	
		cost = 5

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			hidden_effect = {
				remove_dynamic_modifier = { modifier = PHI_economic_growth_dynamic_modifier }
				add_dynamic_modifier = { modifier = PHI_pearl_of_the_orient_dynamic_modifier }
			}
			custom_effect_tooltip = PHI_remove_economic_recovery_dynamic_modifier_tt
			# add_to_variable = {
			# 	PHI_the_great_depression_resource_trade_cost_bonus_per_factory = 1
			# 	tooltip = resource_trade_cost_bonus_per_factory_tt
			# }
			add_to_variable = {
				PHI_the_great_depression_industrial_capacity_factory = 0.1
				tooltip = industrial_capacity_factory_tt
			}
			add_to_variable = {
				PHI_the_great_depression_industrial_capacity_dockyard = 0.1
				tooltip = industrial_capacity_dockyard_tt
			}
			add_to_variable = {
				PHI_the_great_depression_navy_org_factor = 0.1
				tooltip = navy_org_factor_tt
			}

			custom_effect_tooltip = generic_skip_one_line_tt
			swap_ideas = {
				remove_idea = PHI_rehabilitation_finance_corporation_idea
				add_idea = PHI_development_bank
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

#	focus = {
#		id = PHI_join_co_pro
#		icon = GFX_focus_JAP_greater_east_asian_co_properity_sphere
#
#		prerequisite = { focus = PHI_treaty_of_manila }
#
#		relative_position_id = PHI_treaty_of_manila	
#		
#		
#		x = 3
#		y = 1
#	
#		cost = 5
#
#		available = {
#		}
#
#		bypass = {
#		}
#
#		available_if_capitulated = no
#	
#		search_filters = {  }
#	
#		completion_reward = {
#		}
#	}
#
#	focus = {
#		id = PHI_join_allies
#		icon = GFX_goal_support_democracy
#
#		prerequisite = { focus = PHI_treaty_of_manila }
#
#		relative_position_id = PHI_treaty_of_manila	
#		
#		
#		x = -3
#		y = 1
#	
#		cost = 5
#
#		available = {
#		}
#
#		bypass = {
#		}
#
#		available_if_capitulated = no
#	
#		search_filters = {  }
#	
#		completion_reward = {
#		}
#	}	

########################
########################
###### HISTORICAL ######
########################
########################

	focus = {
		id = PHI_united_states_army_forces_in_the_far_east
		icon = GFX_focus_PHI_united_states_army_forces_in_the_far_east
		
		x = 8
		y = 1
	
		cost = 5

		available = {
			is_ally_with = USA
		}

		bypass = {
		}

		available_if_capitulated = no

	
		completion_reward = {
			custom_effect_tooltip = PHI_american_interference_dynamic_modifier_tt
			add_to_variable = { PHI_american_interference_command_power_gain = 0.05 tooltip = command_power_gain_tt }
			add_to_variable = { PHI_american_interference_license_subject_master_purchase_cost = -0.4 tooltip = license_subject_master_purchase_cost_tt }
			add_to_variable = { PHI_american_interference_license_production_speed = 0.2 tooltip = license_production_speed_tt }
		}
	}

	focus = {
		id = PHI_appoint_macarthur
		icon = GFX_focus_PHI_appoint_macarthur

		prerequisite = { focus = PHI_united_states_army_forces_in_the_far_east }

		relative_position_id = PHI_united_states_army_forces_in_the_far_east	
		
		x = 0
		y = 1
	
		cost = 5

		available = {
			is_ally_with = USA
		}

		bypass = {
			USA = {									#sanity check ig, nothing forces you to do this path early
				has_country_leader = {
					name = "Douglas MacArthur"		#election uses pre-character form, so don't reference his character here
					ruling_only = yes
				}
			}
		}

		available_if_capitulated = no
	
		completion_reward = {
			set_variable = { USA.USA_recall_macarthur_cost = 25 }
			USA = {
				country_event = { 
					id = SEA_PHI_political_events.20 
					hours = 3
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			add_war_support = 0.05
			custom_effect_tooltip = generic_skip_one_line_tt
			custom_effect_tooltip = available_chief_of_army
			show_ideas_tooltip = PHI_richard_sutherland
		}
		search_filters = { FOCUS_FILTER_HISTORICAL FOCUS_FILTER_MILITARY_CHARACTER FOCUS_FILTER_WAR_SUPPORT }
	}

	focus = {
		id = PHI_bring_in_eisenhower
		icon = GFX_focus_PHI_bring_in_eisenhower

		prerequisite = { focus = PHI_appoint_macarthur }

		relative_position_id = PHI_appoint_macarthur	
		
		x = -5
		y = 1
	
		cost = 5

		available = {
			is_ally_with = USA
		}

		ai_will_do = {
			base = 1

			modifier = {
				factor = 10
				has_government  = democratic
				date > 1937.1.1
			}
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			add_doctrine_cost_reduction = {
				cost_reduction = 1.00
				uses = 1
				category = land_doctrine 
				name = PHI_bring_in_eisenhower
			}

			custom_effect_tooltip = generic_skip_one_line_tt
			effect_tooltip = {
				army_experience = 25
			}
			hidden_effect = {	#since army modifier actually removes 80% of that 35 by default, divide by 1-modifier to actually add the listed amount
				set_temp_variable = { PHI_xp_factor = 1 }
				add_to_temp_variable = { PHI_xp_factor = PHI_philippine_army_experience_gain_army_factor }
				set_temp_variable = { PHI_xp_to_add = 25 }
				divide_temp_variable = { PHI_xp_to_add = PHI_xp_factor }
				army_experience = PHI_xp_to_add
			}
			navy_experience = 25
			air_experience = 25

			custom_effect_tooltip = generic_skip_one_line_tt
			USA = {
				country_event = { 
					id = SEA_PHI_political_events.30
					hours = 3
				}
			}

			hidden_effect = {
				country_event = {
					id = SEA_PHI_political_events.52
					days = 730
				}
			}
		}
		search_filters = { FOCUS_FILTER_HISTORICAL FOCUS_FILTER_MILITARY_CHARACTER }
	}

	focus = {
		id = PHI_subordinate_philippine_department
		icon = GFX_focus_PHI_subordinate_philippine_department

		prerequisite = { focus = PHI_bring_in_eisenhower }

		relative_position_id = PHI_bring_in_eisenhower	
		
		x = -1
		y = 1

		cost = 5

		available = {
			is_ally_with = USA
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			show_unit_leaders_tooltip = USA_jonathan_wainwright

			USA_jonathan_wainwright = {
				add_skill_level = 1
			}
		}
		search_filters = { FOCUS_FILTER_MILITARY_CHARACTER }
	}

	focus = {
		id = PHI_usaffe_headquarters
		icon = GFX_focus_PHI_usaffe_headquarters

		prerequisite = { focus = PHI_subordinate_philippine_department }

		relative_position_id = PHI_subordinate_philippine_department	
		
		x = 0
		y = 1
	
		cost = 5

		available = {
			is_ally_with = USA
		}

		ai_will_do = {
			base = 1

			modifier = {
				factor = 10
				has_government  = democratic
				date > 1937.1.1
			}
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			show_unit_leaders_tooltip = PHI_edward_king
			
			if = {
				limit = {
					has_dlc = "La Resistance"
				}
				custom_effect_tooltip = generic_skip_one_line_tt
				custom_effect_tooltip = available_political_advisor
				show_ideas_tooltip = PHI_courtney_whitney
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			custom_effect_tooltip = available_military_high_command
			show_ideas_tooltip = PHI_richard_marshall

			custom_effect_tooltip = generic_skip_one_line_tt

			add_war_support = 0.05

			custom_effect_tooltip = generic_skip_one_line_tt

			set_country_flag = PHI_permanent_usa_land_bases
			custom_effect_tooltip = {
				localization_key = DIPLO_FORBID_REVOKE_ACCESS
				TYPE = DIPLOMACY_MILACC
				TARGET = "[USA.GetAdjective]"
			}
			hidden_effect = {
				give_military_access = USA
			}
		}
		search_filters = { FOCUS_FILTER_MILITARY_CHARACTER FOCUS_FILTER_WAR_SUPPORT }
	}

	focus = {
		id = PHI_utang_na_loob
		icon = GFX_focus_PHI_utang_na_loob

		prerequisite = { focus = PHI_usaffe_headquarters }

		relative_position_id = PHI_usaffe_headquarters	
		
		x = 0
		y = 1
	
		cost = 10

		available = {
			is_ally_with = USA
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			custom_effect_tooltip = PHI_utang_na_loob_last_stand_tt
			
			custom_effect_tooltip = generic_skip_one_line_tt

			unlock_decision_tooltip = PHI_request_indefinite_stay_for_macarthur
		}
	}

	focus = {
		id = PHI_police_chief_eisenhower
		icon = GFX_focus_PHI_police_chief_eisenhower

		prerequisite = { focus = PHI_bring_in_eisenhower }
		prerequisite = { focus = PHI_utang_na_loob }

		relative_position_id = PHI_utang_na_loob	
		
		x = 1
		y = 1
	
		cost = 10

		available = {
			has_character = USA_dwight_d_eisenhower
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			custom_effect_tooltip = PHI_eisenhower_stays_tt
			IF = {
				limit = { 
					PHI = {
						has_character = USA_dwight_d_eisenhower
					}
				}
				USA_dwight_d_eisenhower = {
					set_portraits = {
						army = { 
							large ="GFX_portrait_PHI_police_chief_eisenhower"
							small ="GFX_portrait_PHI_police_chief_eisenhower_small"
						}
						civilian = { large ="GFX_portrait_PHI_police_chief_eisenhower" }
					}
				}
			}
			set_country_flag = PHI_police_chief_eisenhower_flag
			hidden_effect = {
				USA = {
					remove_decision = PHI_recall_eisenhower
				}
			}
		}
		search_filters = { FOCUS_FILTER_MILITARY_CHARACTER }
	}

	focus = {
		id = PHI_military_requisitions
		icon = GFX_focus_PHI_military_requisitions

		prerequisite = { focus = PHI_appoint_macarthur }

		relative_position_id = PHI_appoint_macarthur	
		
		x = 0
		y = 1
	
		cost = 3

		available = {
			is_ally_with = USA
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			if = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}
				add_equipment_subsidy = {
					cic = 5000
					equipment_type = infantry_equipment
					seller_tags = { USA } 
				}
			}
			else = {
				add_equipment_to_stockpile = {
					type = infantry_equipment
					amount = 5000
					producer = USA
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			custom_effect_tooltip = available_political_advisor
			show_ideas_tooltip = PHI_wendell_fertig
		}
		search_filters = { FOCUS_FILTER_POLITICAL_CHARACTER }
	}

	focus = {
		id = PHI_small_arms_and_artillery_requisition
		icon = GFX_focus_PHI_small_arms_and_artillery_requisition

		prerequisite = { focus = PHI_military_requisitions }

		relative_position_id = PHI_military_requisitions	
		
		x = -2
		y = 1
	
		cost = 3

		available = {
			is_ally_with = USA
			PHI_usa_focus_done_T1 = yes
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			if = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}
				add_equipment_subsidy = {
					cic = 2500
					equipment_type = infantry_equipment
					seller_tags = { USA } 
				}
				add_equipment_subsidy = {
					cic = 2500
					equipment_type = artillery_equipment
					seller_tags = { USA } 
				}
			}
			else = {
				add_equipment_to_stockpile = {
					type = infantry_equipment
					amount = 2500
					producer = USA
				}
				add_equipment_to_stockpile = {
					type = artillery_equipment
					amount = 500
					producer = USA
				}
			}

			#Moved out of the non-DLC block since the subsidy can be useless if you get unlucky
			custom_effect_tooltip = generic_skip_one_line_tt
			set_country_flag = FRA_arms_purchases_permitted
			
			unlock_decision_category_tooltip = FRA_weapons_purchases_category
		}
	}

	focus = {
		id = PHI_trucks_and_transport_requisition
		icon = GFX_focus_PHI_trucks_and_transport_requisition

		prerequisite = { focus = PHI_small_arms_and_artillery_requisition }

		relative_position_id = PHI_small_arms_and_artillery_requisition	
		
		x = 0
		y = 2
	
		cost = 3

		available = {
			is_ally_with = USA
			PHI_usa_focus_done_T2 = yes
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			if = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}
				add_equipment_subsidy = {
					cic = 2500
					equipment_type = motorized_equipment
					seller_tags = { USA } 
				}
				add_equipment_subsidy = {
					cic = 500
					equipment_type = train_equipment
					seller_tags = { USA } 
				}
			}
			else = {
				add_equipment_to_stockpile = {
					type = motorized_equipment
					amount = 100
					producer = USA
				}
				add_equipment_to_stockpile = {
					type = train_equipment
					amount = 10
					producer = USA
				}

				custom_effect_tooltip = generic_skip_one_line_tt

				if = {
					limit = {
						NOT = {
							has_tech = basic_train
						}
					}
					USA = {
						create_production_license = {
							target = ROOT
							equipment = {
								type = train_equipment_1
							}
							cost_factor = 0
						}
					}
				}
				if = {
					limit = {
						NOT = {
							has_tech = motorised_infantry
						}
					}
					USA = {
						create_production_license = {
							target = ROOT
							equipment = {
								type = motorized_equipment_1
							}
							cost_factor = 0
						}
					}
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt
			custom_effect_tooltip = available_theorist
			show_ideas_tooltip = PHI_russell_volckmann_theorist

			custom_effect_tooltip = generic_skip_one_line_tt
			custom_effect_tooltip = available_military_high_command
			show_ideas_tooltip = PHI_richard_marshall
			show_ideas_tooltip = PHI_russell_volckmann
		}
		search_filters = { FOCUS_FILTER_MILITARY_CHARACTER }
	}

	focus = {
		id = PHI_far_east_air_force
		icon = GFX_focus_PHI_far_east_air_force

		prerequisite = { focus = PHI_military_requisitions }

		relative_position_id = PHI_military_requisitions	
		
		x = 2
		y = 1
	
		cost = 3

		available = {
			is_ally_with = USA
			PHI_usa_focus_done_T1 = yes
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			if = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}
				add_equipment_subsidy = {
					cic = 1000
					equipment_type = small_plane_airframe
					seller_tags = { USA } 
				}
			}
			else = {
				if = {
					limit = {
						NOT = { has_dlc = "By Blood Alone" }
					}
					add_equipment_to_stockpile = {
						type = fighter_equipment_1
						amount = 100
						producer = USA
					}
				}
				else = {
					add_equipment_to_stockpile = {
						type = small_plane_airframe_1
						amount = 100
						producer = USA
						variant_name = "P-36A"
					}	
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt

			custom_effect_tooltip = PHI_american_interference_dynamic_modifier_tt
			add_to_variable = { PHI_philippine_army_air_corps_air_doctrine_cost_factor = -0.1 tooltip = air_doctrine_cost_factor_tt }
		}
	}

	focus = {
		id = PHI_aircraft_requisition
		icon = GFX_focus_PHI_aircraft_requisition

		prerequisite = { focus = PHI_far_east_air_force }

		relative_position_id = PHI_far_east_air_force	
		
		x = 0
		y = 2
			
		cost = 3

		available = {
			is_ally_with = USA
			PHI_usa_focus_done_T2 = yes
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			if = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}
				add_equipment_subsidy = {
					cic = 2500
					equipment_type = small_plane_airframe
					seller_tags = { USA } 
				}
			}
			else = {
				if = {
					limit = {
						NOT = { has_dlc = "By Blood Alone" }
					}
					add_equipment_to_stockpile = {
						type = fighter_equipment_1
						amount = 100
						producer = USA
					}
				}
				else = {
					add_equipment_to_stockpile = {
						type = small_plane_airframe_1
						amount = 100
						producer = USA
						variant_name = "P-36A"
					}	
				}
			}

			#Moved out of the non-DLC block since the subsidy can be useless if you get unlucky
			custom_effect_tooltip = generic_skip_one_line_tt

			unlock_decision_tooltip = FRA_order_fighters_in_USA
			unlock_decision_tooltip = FRA_order_bombers_in_USA
		}
	}

	focus = {
		id = PHI_mariveles_naval_base
		icon = GFX_goal_generic_construct_naval_dockyard

		prerequisite = { focus = PHI_military_requisitions }

		relative_position_id = PHI_military_requisitions	
		
		x = 0
		y = 3
	
		cost = 5

		available = {
			PHI_usa_focus_done_T2 = yes
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			random_owned_controlled_state = {
				limit = {
					is_core_of = PHI
					is_fully_controlled_by = PHI
					is_coastal = yes
					free_building_slots = {
						building = dockyard
						size > 1
						include_locked = yes
					}
				}
				prioritize = { 1027 } #Bataan 
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = dockyard
					level = 2
					instant_build = yes
				}	
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = PHI_expand_us_bases
		icon = GFX_focus_generic_air_bases

		prerequisite = { focus = PHI_trucks_and_transport_requisition focus = PHI_aircraft_requisition }
		prerequisite = { focus = PHI_mariveles_naval_base }

		relative_position_id = PHI_mariveles_naval_base	
		
		x = 0
		y = 1
			
		cost = 5

		available = {
			is_ally_with = USA
			PHI_usa_focus_done_T2 = yes
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			custom_effect_tooltip = PHI_american_interference_dynamic_modifier_tt
			add_to_variable = { PHI_american_interference_production_speed_air_base_factor = 0.20 tooltip = production_speed_air_base_factor_tt }

			custom_effect_tooltip = generic_skip_one_line_tt

			random_owned_controlled_state = {
				limit = { 
					is_core_of = ROOT 
					free_building_slots = {
						building = air_base
						size > 0
					}
				}
				prioritize = { 1027 327 623 } 
				
				add_building_construction = {
					type = air_base
					level = 2
					instant_build = yes
				}
			}

			random_owned_controlled_state = {
				limit = { 
					is_core_of = ROOT
					free_building_slots = {
						building = air_base
						size > 0
					}
				}
				prioritize = { 627 1026 1025 } 
				
				add_building_construction = {
					type = air_base
					level = 2
					instant_build = yes
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			add_tech_bonus = {
				name = PHI_expand_us_bases
				bonus = 0.75
				uses = 1 # was 3
				category = radar_tech
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			set_country_flag = PHI_permanent_usa_air_bases
			custom_effect_tooltip = {
				localization_key = DIPLO_FORBID_REVOKE_ACCESS
				TYPE = DIPLOMACY_AIR_BASE_ACCESS
				TARGET = "[USA.GetAdjective]"
			}
			hidden_effect = {
				USA = {
					diplomatic_relation = {
						country = ROOT
						relation = air_base_access
						active = yes
					}
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = PHI_united_states_asiatic_fleet
		icon = GFX_focus_PHI_united_states_asiatic_fleet

		prerequisite = { focus = PHI_expand_us_bases }

		relative_position_id = PHI_expand_us_bases	
		
		x = 0
		y = 2
	
		cost = 10

		available = {
			is_ally_with = USA
			PHI_usa_focus_done_T3 = yes
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			show_unit_leaders_tooltip = PHI_thomas_hart
			show_unit_leaders_tooltip = PHI_john_wilkes

			custom_effect_tooltip = generic_skip_one_line_tt
			USA = {
				if = {
					limit = {
						has_navy_size = {
							size > 24
						}
					}
					country_event = SEA_PHI_political_events.56
				}
				custom_effect_tooltip = if_they_accept_newline_tt
				custom_effect_tooltip = PHI_send_a_share_of_THIS_navy_to_ROOT_tt
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			set_country_flag = PHI_permanent_usa_naval_bases
			custom_effect_tooltip = {
				localization_key = DIPLO_FORBID_REVOKE_ACCESS
				TYPE = DIPLOMACY_DOCKING_RIGHTS
				TARGET = "[USA.GetAdjective]"
			}
			hidden_effect = {
				USA = {
					diplomatic_relation = {
						country = ROOT
						relation = docking_rights
						active = yes
					}
				}
			}
		}
		search_filters = { FOCUS_FILTER_MILITARY_CHARACTER }
	}

	focus = {
		id = PHI_gunboat_diplomacy
		icon = GFX_focus_PHI_gunboat_diplomacy

		prerequisite = { focus = PHI_united_states_asiatic_fleet }
		mutually_exclusive = { focus = PHI_war_plan_rainbow_five }

		relative_position_id = PHI_united_states_asiatic_fleet	
		
		x = -1
		y = 1
	
		cost = 10

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			add_ideas = PHI_gunboat_diplomacy_idea
		}
	}

	focus = {
		id = PHI_war_plan_rainbow_five
		icon = GFX_focus_ARG_join_the_allies

		prerequisite = { focus = PHI_united_states_asiatic_fleet }
		mutually_exclusive = { focus = PHI_gunboat_diplomacy }

		relative_position_id = PHI_united_states_asiatic_fleet	
		
		x = 1
		y = 1
			
		cost = 10

		available = {
			is_in_faction_with = USA
			OR = {
				is_in_faction_with = FRA
				is_in_faction_with = ENG
			}
			has_navy_size = {
				size > 0
			}
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			add_ideas = PHI_unified_naval_command
			every_allied_country = {
				limit = {
					has_navy_size = {
						size > 0
					}
				}
				add_ideas = PHI_unified_naval_command
			}
		}
	}

	################################
	##### Align USA sub branch #####
	################################

	focus = {
		id = PHI_american_capital_injection
		icon = GFX_focus_generic_american_investments

		prerequisite = { focus = PHI_peg_the_peso_to_the_dollar }

		relative_position_id = PHI_peg_the_peso_to_the_dollar	
		
		x = -2
		y = 1
	
		cost = 5

		available = {
			NOT = {
				has_active_mission = PHI_investment_plan_1
				has_active_mission = PHI_investment_plan_2
				has_active_mission = PHI_investment_plan_3
			}
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			PHI_set_pre_investment_variables = yes
			if = {
				limit = {
					NOT = {
						has_country_flag = PHI_completed_investment_plan_1
					}
				}
				activate_mission = PHI_investment_plan_1
				custom_effect_tooltip = PHI_investment_plan_1_tt
			}
			else_if = {
				limit = {
					NOT = {
						has_country_flag = PHI_completed_investment_plan_2
					}
				}
				activate_mission = PHI_investment_plan_2
				custom_effect_tooltip = PHI_investment_plan_2_tt
			}
			else = {
				activate_mission = PHI_investment_plan_3
				custom_effect_tooltip = PHI_investment_plan_3_tt

				custom_effect_tooltip = generic_skip_one_line_tt
				unlock_decision_tooltip = PHI_establish_reserve_transport_fleet
				unlock_decision_tooltip = PHI_establish_new_train_connections
				unlock_decision_tooltip = PHI_inspect_road_network
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = PHI_filipino_repatriation_act
		icon = GFX_focus_generic_full_employment

		prerequisite = { focus = PHI_american_capital_injection }

		relative_position_id = PHI_american_capital_injection	
		
		x = 0
		y = 1
	
		cost = 5

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			custom_effect_tooltip = PHI_modify_economy_dynamic_modifier_tt
			add_to_variable = {
				PHI_the_great_depression_conscription_factor = 0.10
				tooltip = conscription_factor_tt
			}
			add_to_variable = {
				PHI_the_great_depression_monthly_population = 0.10
				tooltip = monthly_population_tt
			}
		}
		search_filters = { FOCUS_FILTER_MANPOWER }
	}

	focus = {
		id = PHI_investment_fund
		icon = GFX_focus_PHI_investment_fund

		prerequisite = { focus = PHI_pro_hacendados }

		relative_position_id = PHI_pro_hacendados	
		
		x = -2
		y = 1
	
		cost = 5

		available = {
			NOT = {
				has_active_mission = PHI_investment_plan_1
				has_active_mission = PHI_investment_plan_2
				has_active_mission = PHI_investment_plan_3
			}
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			PHI_set_pre_investment_variables = yes
			if = {
				limit = {
					NOT = {
						has_country_flag = PHI_completed_investment_plan_1
					}
				}
				activate_mission = PHI_investment_plan_1
				custom_effect_tooltip = PHI_investment_plan_1_tt
			}
			else_if = {
				limit = {
					NOT = {
						has_country_flag = PHI_completed_investment_plan_2
					}
				}
				activate_mission = PHI_investment_plan_2
				custom_effect_tooltip = PHI_investment_plan_2_tt
			}
			else = {
				activate_mission = PHI_investment_plan_3
				custom_effect_tooltip = PHI_investment_plan_3_tt

				custom_effect_tooltip = generic_skip_one_line_tt
				unlock_decision_tooltip = PHI_establish_reserve_transport_fleet
				unlock_decision_tooltip = PHI_establish_new_train_connections
				unlock_decision_tooltip = PHI_inspect_road_network
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = PHI_luce_celler_act
		icon = GFX_goal_generic_national_unity

		prerequisite = { focus = PHI_nationality_act }

		relative_position_id = PHI_nationality_act	
		
		x = -2
		y = 1
			
		cost = 5

		available = {
			NOT = {
				has_active_mission = PHI_investment_plan_1
				has_active_mission = PHI_investment_plan_2
				has_active_mission = PHI_investment_plan_3
			}
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			PHI_set_pre_investment_variables = yes
			if = {
				limit = {
					NOT = {
						has_country_flag = PHI_completed_investment_plan_1
					}
				}
				activate_mission = PHI_investment_plan_1
				custom_effect_tooltip = PHI_investment_plan_1_tt
			}
			else_if = {
				limit = {
					NOT = {
						has_country_flag = PHI_completed_investment_plan_2
					}
				}
				activate_mission = PHI_investment_plan_2
				custom_effect_tooltip = PHI_investment_plan_2_tt
			}
			else = {
				activate_mission = PHI_investment_plan_3
				custom_effect_tooltip = PHI_investment_plan_3_tt

				custom_effect_tooltip = generic_skip_one_line_tt
				unlock_decision_tooltip = PHI_establish_reserve_transport_fleet
				unlock_decision_tooltip = PHI_establish_new_train_connections
				unlock_decision_tooltip = PHI_inspect_road_network
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

#######################################
##### Emergency Powers sub branch #####
#######################################

	focus = {
		id = PHI_declare_military_emergency
		icon = GFX_focus_PHI_declare_military_emergency

		x = 3
		y = 9
	
		cost = 10

		available = {
			always = no
		}

		allow_branch = {
			has_country_flag = PHI_military_emergency_flag
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {

			add_timed_idea = {
				idea = PHI_restore_order_timed_idea
				days = 180
			}

			custom_effect_tooltip = generic_skip_one_line_tt
			custom_effect_tooltip = PHI_usa_catchup_tt
			hidden_effect = {
				PHI_usa_focus_done = yes
				USA_douglas_macarthur = {
					set_portraits = {
						army = { 
							large ="GFX_portrait_PHI_douglas_macarthur"
							small ="GFX_portrait_PHI_douglas_macarthur_small"
						}
						civilian = { large ="GFX_portrait_PHI_douglas_macarthur" }
					}
				}
			}
		}
		search_filters = { FOCUS_FILTER_STABILITY FOCUS_FILTER_WAR_SUPPORT }
	}

	focus = {
		id = PHI_weapons_of_war
		icon = GFX_goal_generic_secret_weapon

		prerequisite = { focus = PHI_declare_military_emergency }

		relative_position_id = PHI_declare_military_emergency	
		
		x = 0
		y = 1
	
		cost = 10

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {

			if = {
				limit = {
					NOT = { has_tech = atomic_research }
				}
				add_tech_bonus = {
					name = PHI_sea_of_cobalt
					bonus = 1.0
					ahead_reduction = 2
					technology = atomic_research
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt
			IF = {
				limit = { 
					327 = {
						is_fully_controlled_by = ROOT
						air_facility < 1
						land_facility < 1
						naval_facility < 1
						air_facility < 1
					}
				}

				327 = {
					add_building_construction = {
						type = nuclear_facility
						level = 1
						instant_build = yes
						province = 10265 # Manila
					}
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt
			generate_scientist_character = {
				skills = {
					specialization_nuclear = 2		
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt
			add_breakthrough_progress = {
				specialization = specialization_nuclear
				value = 0.25
			}


		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = PHI_preemptive_strikes
		icon = GFX_focus_PHI_preemptive_strikes

		prerequisite = { focus = PHI_weapons_of_war }

		relative_position_id = PHI_weapons_of_war	
		
		x = 0
		y = 1
	
		cost = 5

		available = {
		}

		bypass = {
		}

		ai_will_do = {
			base = 1

			modifier = {
				factor = 2
				date > 1937.1.1
			}

			modifier = {
				factor = 2
				date > 1939.1.1
			}
		}

		available_if_capitulated = no
	
		completion_reward = {
			add_dynamic_modifier = { modifier = PHI_preemptive_strikes_dynamic_modifier }
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = PHI_sunset_empires
		icon = GFX_goal_generic_attack_allies

		prerequisite = { focus = PHI_preemptive_strikes }

		relative_position_id = PHI_preemptive_strikes	
		
		x = 0
		y = 1
	
		cost = 5

		available = {
		}

		bypass = {
		}

		ai_will_do = {
			base = 0.5

			modifier = {
				add = 0.5
				has_completed_focus = PHI_national_defense_act
			}

			modifier = {
				factor = 2
				date > 1938.1.1
			}

			modifier = {
				factor = 2
				date > 1939.1.1
			}
		}

		available_if_capitulated = no
	
		completion_reward = {
			random_owned_controlled_state = {
				limit = {
					is_core_of = PHI
					is_fully_controlled_by = PHI
					free_building_slots = {
						building = arms_factory
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = arms_factory
					level = 2
					instant_build = yes
				}	
			}
			random_owned_controlled_state = {
				limit = {
					is_core_of = PHI
					is_fully_controlled_by = PHI
					free_building_slots = {
						building = arms_factory
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = arms_factory
					level = 2
					instant_build = yes
				}	
			}
			random_owned_controlled_state = {
				limit = {
					is_core_of = PHI
					is_fully_controlled_by = PHI
					is_coastal = yes
					free_building_slots = {
						building = dockyard
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = dockyard
					level = 2
					instant_build = yes
				}	
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}


	focus = {
		id = PHI_land_of_the_setting_sun
		icon = GFX_focus_attack_japan

		prerequisite = { focus = PHI_sunset_empires }

		relative_position_id = PHI_sunset_empires	
		
		x = -2
		y = 1
	
		cost = 5

		available = {
			NOT = {
				is_in_faction_with = JAP
			}
		}

		bypass = {
			has_war_with = JAP
		}

		ai_will_do = {
			base = 0.5

			modifier = {
				add = 0.5
				has_completed_focus = PHI_national_defense_act
			}

			modifier = {
				factor = 1.5
				date > 1942.1.1
			}

			modifier = {
				factor = 3
				date > 1943.1.1
			}
		}

		enable_automatic_bypass = no

		available_if_capitulated = no
	
		completion_reward = {
			IF = {
				limit = {
					JAP = {
						exists = yes
					}
				}
				declare_war_on = {
					target = JAP
					type = topple_government
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt
			custom_effect_tooltip = PHI_preemptive_strikes_dynamic_modifier_tt
			add_to_variable = { PHI_preemptive_strikes_production_factory_max_efficiency_factor = 0.05 tooltip = production_factory_max_efficiency_factor_tt }
			add_to_variable = { PHI_preemptive_strikes_navy_org_factor = 0.10 tooltip = navy_org_factor_tt }
			add_to_variable = { PHI_preemptive_strikes_navy_max_range_factor = 0.15 tooltip = navy_max_range_factor_tt }
			add_to_variable = { PHI_preemptive_strikes_industrial_capacity_dockyard = 0.10 tooltip = industrial_capacity_dockyard_tt }
		}
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_ANNEXATION }
	}

	focus = {
		id = PHI_sea_of_cobalt
		icon = GFX_focus_wonderweapons

		prerequisite = { focus = PHI_sunset_empires }

		relative_position_id = PHI_sunset_empires	
		
		x = 0
		y = 1
	
		cost = 10

		available = {
			has_tech = atomic_research
		}

		bypass = {
		}

		ai_will_do = {
			base = 1

			modifier = {
				factor = 2
				date > 1940.1.1
			}

			modifier = {
				factor = 2
				date > 1941.1.1
			}
		}

		available_if_capitulated = no
	
		completion_reward = {
			custom_effect_tooltip = GER_the_mannheim_project_tt
			if = {
				limit = {
					NOT = { has_tech = atomic_research }
				}
				add_tech_bonus = {
					name = PHI_sea_of_cobalt
					bonus = 1.0
					ahead_reduction = 2
					technology = atomic_research
				}
			}
			else_if = {
				limit = {
					NOT = { is_special_project_completed = sp:sp_nuclear_reactor }
				}
				add_breakthrough_progress = {
					specialization = specialization_nuclear
					value = 0.75
				}
			}
			else_if = {
				limit = {
					has_tech = nuclear_reactor
				}
				random_owned_controlled_state = {
					limit = {
						nuclear_reactor < 1
					}

					add_building_construction = {
						type = nuclear_reactor
						level = 1
						instant_build = yes
					}
				}
				add_breakthrough_progress = {
					specialization = specialization_nuclear
					value = 0.5
				}
			}
			else = {
				random_owned_controlled_state = {
					limit = {
						nuclear_reactor_heavy_water < 1
					}

					add_building_construction = {
						type = nuclear_reactor_heavy_water
						level = 1
						instant_build = yes
					}
				}
				add_breakthrough_progress = {
					specialization = specialization_nuclear
					value = 0.5
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			add_ideas =  PHI_sea_of_cobalt_idea  			
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = PHI_the_sun_has_set
		icon = GFX_focus_attack_britain

		prerequisite = { focus = PHI_sunset_empires }

		relative_position_id = PHI_sunset_empires	
		
		x = 2
		y = 1
	
		cost = 5

		available = {
			NOT = {
				is_in_faction_with = ENG
			}
		}

		bypass = {
			has_war_with = ENG
		}

		ai_will_do = {
			base = 0.5

			modifier = {
				add = 0.5
				has_completed_focus = PHI_national_defense_act
			}

			modifier = {
				factor = 1.1
				date > 1942.1.1
			}

			modifier = {
				factor = 2
				date > 1943.1.1
			}
		}

		enable_automatic_bypass = no

		available_if_capitulated = no
	
		completion_reward = {
			IF = {
				limit = {
					ENG = {
						exists = yes
					}
				}
				declare_war_on = {
					target = ENG
					type = topple_government
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt
			custom_effect_tooltip = PHI_preemptive_strikes_dynamic_modifier_tt
			add_to_variable = { PHI_preemptive_strikes_production_factory_max_efficiency_factor = 0.05 tooltip = production_factory_max_efficiency_factor_tt }
			add_to_variable = { PHI_preemptive_strikes_air_range_factor = 0.10 tooltip = air_range_factor_tt }
			add_to_variable = { PHI_preemptive_strikes_air_mission_efficiency = 0.10 tooltip = air_mission_efficiency_tt }
		}
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_ANNEXATION }
	}


	focus = {
		id = PHI_traitors_back_home
		icon = GFX_focus_generic_attack_usa

		prerequisite = { focus = PHI_land_of_the_setting_sun }

		relative_position_id = PHI_land_of_the_setting_sun	
		
		x = 0
		y = 1
	
		cost = 5

		available = {
			NOT = {
				is_in_faction_with = USA
			}
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			IF = {
				limit = {
					USA = {
						exists = yes
					}
				}
				declare_war_on = {
					target = USA
					type = puppet_wargoal_focus
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt
			custom_effect_tooltip = PHI_preemptive_strikes_dynamic_modifier_tt
			add_to_variable = { PHI_preemptive_strikes_production_factory_max_efficiency_factor = 0.05 tooltip = production_factory_max_efficiency_factor_tt }
			add_to_variable = { PHI_preemptive_strikes_industrial_capacity_factory = 0.15 tooltip = industrial_capacity_factory_tt }
			add_to_variable = { PHI_preemptive_strikes_industrial_capacity_dockyard = 0.05 tooltip = industrial_capacity_dockyard_tt }
		}
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_ANNEXATION }
	}

	focus = {
		id = PHI_end_colonialism
		icon = GFX_goal_tfv_saf_anti_colonialist_crusade

		prerequisite = { focus = PHI_the_sun_has_set }

		relative_position_id = PHI_the_sun_has_set	
		
		x = 0
		y = 1
	
		cost = 5

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			custom_effect_tooltip = PHI_preemptive_strikes_dynamic_modifier_tt
			add_to_variable = { PHI_preemptive_strikes_compliance_growth = 0.10 tooltip = compliance_growth_tt }
			add_to_variable = { PHI_preemptive_strikes_resistance_growth = -0.10 tooltip = resistance_growth_tt }
			add_to_variable = { PHI_preemptive_strikes_non_core_manpower = 0.10 tooltip = non_core_manpower_tt }
		}
		search_filters = { FOCUS_FILTER_MANPOWER }
	}

	focus = {
		id = PHI_cobalt_supremacy
		icon = GFX_focus_PHI_cobalt_supremacy

		prerequisite = { focus = PHI_land_of_the_setting_sun focus = PHI_the_sun_has_set }
		prerequisite = { focus = PHI_sea_of_cobalt }

		relative_position_id = PHI_sea_of_cobalt	
		
		x = 0
		y = 2
	
		cost = 10

		available = {
		}

		bypass = {
		}

		ai_will_do = {
			base = 1

			modifier = {
				factor = 1.5
				date > 1942.1.1
			}

			modifier = {
				factor = 5
				date > 1944.1.1
			}
		}

		available_if_capitulated = no
	
		completion_reward = {
			swap_ideas = {
				remove_idea = PHI_sea_of_cobalt_idea
				add_idea = PHI_cobalt_supremacy_idea
			}
		}
	}



###################################
##### Capitulation sub branch #####
###################################

	focus = {
		id = PHI_subject_surrender
		icon = GFX_focus_generic_surrender

		
		x = 11
		y = 11
	
		cost = 10

		available = {
			custom_trigger_tooltip = {
				tooltip = PHI_subject_surrender_tt
				always = no
			}
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			add_dynamic_modifier = {
    			modifier = PHI_philippine_resistance_movement_dynamic_modifier
			}
			
			if = {
				limit = {
					has_character = USA_douglas_macarthur
				}
				custom_effect_tooltip = generic_skip_one_line_tt
				set_nationality = {
					target_country = USA
					character = USA_douglas_macarthur
				}
			}
		}
		search_filters = { FOCUS_FILTER_MANPOWER }
	}


	focus = {
		id = PHI_i_shall_return
		icon = GFX_focus_PHI_i_shall_return

		prerequisite = { focus = PHI_subject_surrender }

		relative_position_id = PHI_subject_surrender	

		x = -3
		y = 1
	
		cost = 5

		available = {
			OR = {
				is_subject = yes
				AND = {
					is_in_faction = no
					is_faction_leader = no
				}
			}
		}

		bypass = {
		}

		available_if_capitulated = yes
	
		completion_reward = {
			if = {
				limit = {
					is_subject = yes
				}
				overlord = {
					save_event_target_as = temp_host
					ROOT = {
						become_exiled_in = { target = PREV legitimacy = 35 }
					}
				}
				custom_effect_tooltip = generic_skip_one_line_tt
			}
			else_if = {
				limit = {
					is_in_faction = yes
					is_faction_leader = no
				}
				faction_leader = {
					save_event_target_as = temp_host
					ROOT = {
						become_exiled_in = { target = PREV legitimacy = 20 }
					}
				}
				custom_effect_tooltip = generic_skip_one_line_tt
			}

			custom_effect_tooltip = PHI_philippine_resistance_movement_dynamic_modifier_tt
			add_to_variable = { PHI_resistance_legitimacy_gain_factor = 0.5 tooltip = legitimacy_gain_factor_tt }
			add_to_variable = { PHI_resistance_exile_manpower_factor = 0.1 tooltip = exile_manpower_factor_tt }

			custom_effect_tooltip = generic_skip_one_line_tt

			custom_effect_tooltip = PHI_request_equipment_tt
			custom_effect_tooltip = PHI_share_military_experience_tt
			hidden_effect = {
				unlock_decision_tooltip = PHI_request_equipment
				unlock_decision_tooltip = PHI_share_military_experience
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			add_manpower = 10000
		}
		search_filters = { FOCUS_FILTER_MANPOWER }
	}

	focus = {
		id = PHI_soldiers_in_hiding
		icon = GFX_focus_generic_manpower

		prerequisite = { focus = PHI_subject_surrender }

		relative_position_id = PHI_subject_surrender	

		x = -1
		y = 1
	
		cost = 10

		available = {
		}

		bypass = {
		}

		available_if_capitulated = yes
	
		completion_reward = {

			custom_effect_tooltip = PHI_philippine_resistance_movement_dynamic_modifier_tt
			add_to_variable = { PHI_resistance_cas_damage_reduction = 0.20 tooltip = cas_damage_reduction_tt }
			add_to_variable = { PHI_resistance_weekly_manpower = 100 tooltip = weekly_manpower_tt }

			custom_effect_tooltip = generic_skip_one_line_tt

			add_offsite_building = { type = arms_factory level = 1 }
		}
		search_filters = { FOCUS_FILTER_MANPOWER FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = PHI_hukbalahap
		icon = GFX_focus_GER_the_peoples_victory

		prerequisite = { focus = PHI_subject_surrender }

		relative_position_id = PHI_subject_surrender	

		x = 1
		y = 1
	
		cost = 10

		available = {
		}

		bypass = {
		}

		available_if_capitulated = yes
	
		completion_reward = {
			if = {
				limit = {
					NOT = {
						has_completed_focus = PHI_legalize_the_communist_party
					}
				}
				show_unit_leaders_tooltip = PHI_luis_taruc
			}
			else = {
				PHI_luis_taruc = {
					gain_xp = 250
					if = {
						limit = {
							NOT = {
								has_trait = camouflage_expert
							}
						}
						custom_effect_tooltip = generic_skip_one_line_tt
						add_trait = { trait = camouflage_expert }
					}
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt
			custom_effect_tooltip = PHI_philippine_resistance_movement_dynamic_modifier_tt
			add_to_variable = { PHI_resistance_resistance_target_on_our_occupied_states = 0.10 tooltip = resistance_target_on_our_occupied_states_tt }
			add_to_variable = { PHI_resistance_resistance_damage_to_garrison_on_our_occupied_states = 0.05 tooltip = resistance_damage_to_garrison_on_our_occupied_states_tt }
			add_to_variable = { PHI_resistance_communism_drift = 0.02 tooltip = communism_drift_tt }
			
			custom_effect_tooltip = generic_skip_one_line_tt

			if = {
				limit = {
					has_completed_focus = PHI_partido_komunista_ng_pilipinas_coup
				}
				add_country_leader_trait = PHI_resistance_connections
			}
			else = {
				custom_effect_tooltip = PHI_if_communist_tt
				effect_tooltip = {
					add_country_leader_trait = PHI_resistance_connections
				}
			}
		}
		search_filters = { FOCUS_FILTER_MILITARY_CHARACTER FOCUS_FILTER_POLITICAL }
	}

	focus = {
		id = PHI_local_resistance
		icon = GFX_focus_GER_support_the_proletarian_uprising

		prerequisite = { focus = PHI_subject_surrender }

		relative_position_id = PHI_subject_surrender	

		x = 3
		y = 1
	
		cost = 10

		available = {
		}

		bypass = {
		}

		available_if_capitulated = yes
	
		completion_reward = {
			if = {
				limit = {
					has_completed_focus = PHI_encourage_chinese_immigration
				}
				custom_effect_tooltip = PHI_philippine_resistance_movement_dynamic_modifier_tt
				add_to_variable = { PHI_resistance_resistance_target_on_our_occupied_states = 0.10 tooltip = resistance_target_on_our_occupied_states_tt }
			}
			else = {
				custom_effect_tooltip = PHI_if_chinese_immigration_tt
				effect_tooltip = {
					custom_effect_tooltip = PHI_philippine_resistance_movement_dynamic_modifier_tt
					add_to_variable = { PHI_resistance_resistance_target_on_our_occupied_states = 0.10 tooltip = resistance_target_on_our_occupied_states_tt }
				}
				custom_effect_tooltip = generic_skip_one_line_tt
				custom_effect_tooltip = generic_current_effects
				custom_effect_tooltip = PHI_philippine_resistance_movement_dynamic_modifier_tt
				add_to_variable = { PHI_resistance_resistance_target_on_our_occupied_states = 0.05 tooltip = resistance_target_on_our_occupied_states_tt }
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			custom_effect_tooltip = available_political_advisor
			show_ideas_tooltip = PHI_nieves_fernandez
		}
		search_filters = { FOCUS_FILTER_POLITICAL_CHARACTER }
	}

	focus = {
		id = PHI_submarine_supplies
		icon = GFX_focus_generic_reinforcing_the_supply_network

		prerequisite = { focus = PHI_i_shall_return }

		relative_position_id = PHI_i_shall_return	

		x = 0
		y = 1
	
		cost = 10

		available = {
			is_in_faction_with = USA
		}

		bypass = {
		}

		available_if_capitulated = yes
	
		completion_reward = {
			add_ideas = PHI_submarine_supply

			custom_effect_tooltip = generic_skip_one_line_tt

			if = { 
				limit = {
					NOT = {
						has_tech = early_ship_hull_submarine
					} 
				}
				set_technology = {
				    early_ship_hull_submarine = 1
				}
			}
			create_equipment_variant = {	
				name = "S Class" 		
				type = ship_hull_submarine_1
				name_group = "PHI_SS_HISTORICAL" #Note: Doesn't matter if ROOT is not PHI, the effect will grab the appropriate country-specific name list anyways
				parent_version = 0
				modules = {
					fixed_ship_torpedo_slot = ship_torpedo_sub_1
					fixed_ship_engine_slot = sub_ship_engine_1
					rear_1_custom_slot = empty
				}
				obsolete = no
			}
			create_ship = {
				type = ship_hull_submarine_1
				equipment_variant = "S Class"
				creator = USA
			}
			create_ship = {
				type = ship_hull_submarine_1
				equipment_variant = "S Class"
				creator = USA
			}
			create_ship = {
				type = ship_hull_submarine_1
				equipment_variant = "S Class"
				creator = USA
			}
			create_ship = {
				type = ship_hull_submarine_1
				equipment_variant = "S Class"
				creator = USA
			}
		}

	}

	focus = {
		id = PHI_the_hunters
		icon = GFX_focus_FIN_the_cold_front

		prerequisite = { focus = PHI_soldiers_in_hiding }

		relative_position_id = PHI_soldiers_in_hiding	

		x = 0
		y = 1
	
		cost = 10

		available = {
		}

		bypass = {
		}

		available_if_capitulated = yes
	
		completion_reward = {
			custom_effect_tooltip = PHI_philippine_resistance_movement_dynamic_modifier_tt
			add_to_variable = { PHI_resistance_special_forces_cap = 0.20 tooltip = special_forces_cap_tt }
			add_to_variable = { PHI_resistance_terrain_trait_xp_gain_factor = 0.20 tooltip = terrain_trait_xp_gain_factor_tt }
			add_to_variable = { PHI_resistance_resistance_target_on_our_occupied_states = 0.05 tooltip = resistance_target_on_our_occupied_states_tt }
			add_to_variable = { PHI_resistance_resistance_damage_to_garrison_on_our_occupied_states = 0.05 tooltip = resistance_damage_to_garrison_on_our_occupied_states_tt }

			custom_effect_tooltip = generic_skip_one_line_tt

			custom_effect_tooltip = PHI_will_gain_hunters
		}
	}

	focus = {
		id = PHI_the_cry
		icon = GFX_focus_generic_spur_communist_revolutions

		prerequisite = { focus = PHI_hukbalahap }

		relative_position_id = PHI_hukbalahap	

		x = 0
		y = 1
	
		cost = 10

		available = {
		}

		bypass = {
		}

		available_if_capitulated = yes
	
		completion_reward = {
			custom_effect_tooltip = PHI_philippine_resistance_movement_dynamic_modifier_tt
			add_to_variable = { PHI_resistance_conscription = 0.02 tooltip = conscription_tt }
			add_to_variable = { PHI_resistance_army_org_factor = 0.05 tooltip = army_org_factor_tt }

			custom_effect_tooltip = generic_skip_one_line_tt
			custom_effect_tooltip = PHI_will_gain_hukbalahap
		}
		search_filters = { FOCUS_FILTER_MANPOWER }
	}

	focus = {
		id = PHI_juramentado
		icon = GFX_focus_PHI_juramentado

		prerequisite = { focus = PHI_local_resistance }

		relative_position_id = PHI_local_resistance	

		x = 0
		y = 1
	
		cost = 10

		available = {
		}

		bypass = {
		}

		available_if_capitulated = yes
	
		completion_reward = {
			set_rule = {
				can_use_kamikaze_pilots = yes
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			custom_effect_tooltip = PHI_philippine_resistance_movement_dynamic_modifier_tt
			add_to_variable = { PHI_resistance_army_org_regain = 0.20 tooltip = army_org_regain_tt }

			custom_effect_tooltip = generic_skip_one_line_tt
			custom_effect_tooltip = PHI_will_gain_juramentado
		}
	}

	focus = {
		id = PHI_exile_support
		icon = GFX_focus_generic_government_in_exile

		prerequisite = { focus = PHI_submarine_supplies focus = PHI_the_hunters }

		relative_position_id = PHI_submarine_supplies	

		x = 1
		y = 1
	
		cost = 10

		available = {
		}

		bypass = {
		}

		available_if_capitulated = yes
	
		completion_reward = {
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = 300
			}
			add_equipment_to_stockpile = {
				type = support_equipment
				amount = 150
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			add_offsite_building = { type = industrial_complex level = 2 }
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = PHI_grassroot_guerillas
		icon = GFX_focus_SWE_lottakoren

		prerequisite = { focus = PHI_the_cry focus = PHI_juramentado focus = PHI_the_hunters }

		relative_position_id = PHI_the_cry	

		x = 1
		y = 1
	
		cost = 10

		available = {
		}

		bypass = {
		}

		available_if_capitulated = yes
	
		completion_reward = {
			if = {
				limit = {
					NOT = {
						any_core_state = {
							is_owned_by = ROOT
							controller = {
								has_war_with = PREV
							}
						}
					}
				}
				custom_effect_tooltip = PHI_if_any_state_occupied_tt
				effect_tooltip = {
					random_core_state = {
						limit = {
							is_owned_by = ROOT
						}
						add_dynamic_modifier = { modifier = PHI_strong_guerrilla_presence }
					}
				}
			}

			every_core_state = {
				limit = {
					is_owned_by = ROOT
					controller = {
						has_war_with = PREV
					}
				}
				add_dynamic_modifier = { modifier = PHI_strong_guerrilla_presence }
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			custom_effect_tooltip = PHI_grassroot_guerillas_tt

			hidden_effect = {
				if = {
					limit = {
						any_core_state = {
							is_controlled_by = ROOT
						}
					}
					random_core_state = {
						prioritize = { 1025 625 628 }
						limit = {
							is_controlled_by = ROOT
						}
						ROOT = {
							if = {
								limit = {
									has_completed_focus = PHI_the_cry
								}
								division_template = {
									name = "Hukbalahap Brigade"
									regiments = {
										irregular_infantry = { x = 0 y = 0 }
										irregular_infantry = { x = 0 y = 1 }
										irregular_infantry = { x = 0 y = 2 }
									}
									support = {
										recon = { x = 0 y = 0 }
									}
								}
								PREV = {
									create_unit = {
										division = "name = \"Hukbalahap Brigade\" division_template = \"Hukbalahap Brigade\" start_experience_factor = 0.3"
										owner = ROOT
										count = 3
										allow_spawning_on_enemy_provs = no
									}
								}
							}
							if = {
								limit = {
									has_completed_focus = PHI_juramentado
								}
								division_template = {
									name = "Juramentado Brigade"
									regiments = {
										ranger_battalion = { x = 0 y = 0 }
										ranger_battalion = { x = 0 y = 1 }
										ranger_battalion = { x = 0 y = 2 }
									}
									support = {
										recon = { x = 0 y = 0 }
									}
								}
								PREV = {
									create_unit = {
										division = "name = \"Juramentado Brigade\" division_template = \"Juramentado Brigade\" start_experience_factor = 0.5"
										owner = ROOT
										count = 3
										allow_spawning_on_enemy_provs = no
									}
								}
							}
							if = {
								limit = {
									has_completed_focus = PHI_the_hunters
								}
								division_template = {
									name = "Hunters Brigade"
									regiments = {
										infantry = { x = 0 y = 0 }
										infantry = { x = 0 y = 1 }
										infantry = { x = 0 y = 2 }
									}
									support = {
										engineer = { x = 0 y = 0 }
									}
								}
								PREV = {
									create_unit = {
										division = "name = \"Hunters Brigade\" division_template = \"Hunters Brigade\" start_experience_factor = 0.2"
										owner = ROOT
										count = 3
										allow_spawning_on_enemy_provs = no
									}
								}
							}
						}
					}
				}
				else_if = {
					limit = {
						any_core_state = {
							is_owned_by = ROOT
							ROOT = {
								all_enemy_country = {
									divisions_in_state = {
										size < 1
										state = PREV.PREV
									}
								}
							}
						}
					}
					random_core_state = {
						prioritize = { 1025 625 628 }
						limit = {
							is_owned_by = ROOT
							ROOT = {
								all_enemy_country = {
									divisions_in_state = {
										size < 1
										state = PREV.PREV
									}
								}
							}
						}
						ROOT = {
							if = {
								limit = {
									has_completed_focus = PHI_the_cry
								}
								division_template = {
									name = "Hukbalahap Brigade"
									regiments = {
										irregular_infantry = { x = 0 y = 0 }
										irregular_infantry = { x = 0 y = 1 }
										irregular_infantry = { x = 0 y = 2 }
									}
									support = {
										recon = { x = 0 y = 0 }
									}
								}
								PREV = {
									create_unit = {
										division = "name = \"Hukbalahap Brigade\" division_template = \"Hukbalahap Brigade\" start_experience_factor = 0.3"
										owner = ROOT
										count = 3
										allow_spawning_on_enemy_provs = yes
									}
								}
							}
							if = {
								limit = {
									has_completed_focus = PHI_juramentado
								}
								division_template = {
									name = "Juramentado Brigade"
									regiments = {
										ranger_battalion = { x = 0 y = 0 }
										ranger_battalion = { x = 0 y = 1 }
										ranger_battalion = { x = 0 y = 2 }
									}
									support = {
										recon = { x = 0 y = 0 }
									}
								}
								PREV = {
									create_unit = {
										division = "name = \"Juramentado Brigade\" division_template = \"Juramentado Brigade\" start_experience_factor = 0.5"
										owner = ROOT
										count = 3
										allow_spawning_on_enemy_provs = yes
									}
								}
							}
							if = {
								limit = {
									has_completed_focus = PHI_the_hunters
								}
								division_template = {
									name = "Hunters Brigade"
									regiments = {
										infantry = { x = 0 y = 0 }
										infantry = { x = 0 y = 1 }
										infantry = { x = 0 y = 2 }
									}
									support = {
										engineer = { x = 0 y = 0 }
									}
								}
								PREV = {
									create_unit = {
										division = "name = \"Hunters Brigade\" division_template = \"Hunters Brigade\" start_experience_factor = 0.2"
										owner = ROOT
										count = 3
										allow_spawning_on_enemy_provs = yes
									}
								}
							}
						}
					}
				}
				else = {
					random_core_state = {
						prioritize = { 1025 625 628 }
						teleport_armies = {
							limit = {
								has_war_with = ROOT
							}
							#use default target
						}
						ROOT = {
							if = {
								limit = {
									has_completed_focus = PHI_the_cry
								}
								division_template = {
									name = "Hukbalahap Brigade"
									regiments = {
										irregular_infantry = { x = 0 y = 0 }
										irregular_infantry = { x = 0 y = 1 }
										irregular_infantry = { x = 0 y = 2 }
									}
									support = {
										recon = { x = 0 y = 0 }
									}
								}
								PREV = {
									create_unit = {
										division = "name = \"Hukbalahap Brigade\" division_template = \"Hukbalahap Brigade\" start_experience_factor = 0.3"
										owner = ROOT
										count = 3
										allow_spawning_on_enemy_provs = yes
									}
								}
							}
							if = {
								limit = {
									has_completed_focus = PHI_juramentado
								}
								division_template = {
									name = "Juramentado Brigade"
									regiments = {
										ranger_battalion = { x = 0 y = 0 }
										ranger_battalion = { x = 0 y = 1 }
										ranger_battalion = { x = 0 y = 2 }
									}
									support = {
										recon = { x = 0 y = 0 }
									}
								}
								PREV = {
									create_unit = {
										division = "name = \"Juramentado Brigade\" division_template = \"Juramentado Brigade\" start_experience_factor = 0.5"
										owner = ROOT
										count = 3
										allow_spawning_on_enemy_provs = yes
									}
								}
							}
							if = {
								limit = {
									has_completed_focus = PHI_the_hunters
								}
								division_template = {
									name = "Hunters Brigade"
									regiments = {
										infantry = { x = 0 y = 0 }
										infantry = { x = 0 y = 1 }
										infantry = { x = 0 y = 2 }
									}
									support = {
										engineer = { x = 0 y = 0 }
									}
								}
								PREV = {
									create_unit = {
										division = "name = \"Hunters Brigade\" division_template = \"Hunters Brigade\" start_experience_factor = 0.2"
										owner = ROOT
										count = 3
										allow_spawning_on_enemy_provs = yes
									}
								}
							}
						}
					}
				}
			}
		}
	}

	focus = {
		id = PHI_reconquista
		icon = GFX_focus_PHI_reconquista

		prerequisite = { focus = PHI_exile_support focus = PHI_grassroot_guerillas }

		relative_position_id = PHI_exile_support	

		x = 2
		y = 1
	
		cost = 10

		available = {
		}

		bypass = {
		}

		available_if_capitulated = yes
	
		completion_reward = {
			custom_effect_tooltip = PHI_philippine_resistance_movement_dynamic_modifier_tt
			add_to_variable = { PHI_resistance_army_core_attack_factor = 0.10 tooltip = army_core_attack_factor_tt }
			add_to_variable = { PHI_resistance_weekly_casualties_war_support = 0.005 tooltip = weekly_casualties_war_support_tt }
		}
		search_filters = { FOCUS_FILTER_WAR_SUPPORT }
	}

#######################################
#######################################
###### FASCIST AND REPUBLICAN #########
#######################################
#######################################


	focus = {
		id = PHI_rebuild_sakdalistas
		icon = GFX_focus_PHI_rebuild_sakdalistas

		prerequisite = { focus = PHI_leverage_the_peso }

		relative_position_id = PHI_leverage_the_peso	

		x = 9
		y = 1
	
		cost = 5

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			add_timed_idea = {
				idea = PHI_sakdalistas_timed_idea
				days = 365
			}
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}


	focus = {
		id = PHI_slippery_slope
		icon = GFX_goal_support_fascism

		prerequisite = { focus = PHI_rebuild_sakdalistas }
		mutually_exclusive = { focus = PHI_the_red_sun_over_manila focus = PHI_election_overturned }
		relative_position_id = PHI_rebuild_sakdalistas	

		x = -3
		y = 1
	
		cost = 10

		available = {
			fascism > 0.2
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			add_timed_idea = {
				idea = PHI_slippery_slope_timed_idea
				days = 365
			}
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}



	focus = {
		id = PHI_assassination_of_quezon
		icon = GFX_focus_PHI_assassination_of_quezon

		prerequisite = { focus = PHI_slippery_slope }

		relative_position_id = PHI_slippery_slope	

		x = 0
		y = 1
	
		cost = 10

		available = {
			fascism > 0.3
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			custom_effect_tooltip = PHI_assassination_of_quezon_tt
			hidden_effect = {
				country_event = {
					id = SEA_PHI_political_events.40
					days = 35
					random_days = 70
				}
			}
		}
	}

	focus = {
		id = PHI_aguinaldos_coup
		icon = GFX_focus_generic_conspiracy

		prerequisite = { focus = PHI_makapili }
		prerequisite = { focus = PHI_form_the_executive_commision }

		relative_position_id = PHI_assassination_of_quezon	

		x = 0
		y = 2
	
		cost = 10

		available = {
			NOT = { 
				has_country_leader = {
					character  = PHI_manuel_luis_quezon
					ruling_only = yes
				}
			}
			if = {
				limit = {
					has_country_flag = PHI_eisenhower_steps_in_flag
				}
				NOT = {
					has_country_flag = PHI_eisenhower_steps_in_flag
				}
			}
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			custom_effect_tooltip = PHI_resolve_interregnum_tt
			country_event = {
				id = SEA_PHI_political_events.42
			}

			custom_effect_tooltip = generic_skip_one_line_tt
			add_stability = 0.05
		}
		search_filters = { FOCUS_FILTER_STABILITY }
	}

	focus = {
		id = PHI_makapili
		icon = GFX_focus_PHI_makapili

		prerequisite = { focus = PHI_assassination_of_quezon }

		relative_position_id = PHI_assassination_of_quezon	

		x = -1
		y = 1
	
		cost = 5

		available = {
			has_country_flag = PHI_sakdalista_exiles_returned_flag
			if = {
				limit = {
					has_country_flag = PHI_eisenhower_steps_in_flag
				}
				NOT = {
					has_country_flag = PHI_eisenhower_steps_in_flag
				}
			}
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			add_manpower = 25000
			add_war_support = 0.075
		}
		search_filters = { FOCUS_FILTER_MANPOWER FOCUS_FILTER_WAR_SUPPORT }
	}

		focus = {
		id = PHI_form_the_executive_commision
		icon = GFX_focus_generic_commission

		prerequisite = { focus = PHI_assassination_of_quezon }

		relative_position_id = PHI_assassination_of_quezon	

		x = 1
		y = 1
	
		cost = 5

		available = {
			has_country_flag = PHI_sakdalista_exiles_returned_flag
			if = {
				limit = {
					has_country_flag = PHI_eisenhower_steps_in_flag
				}
				NOT = {
					has_country_flag = PHI_eisenhower_steps_in_flag
				}
			}
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			add_stability = 0.05
			add_war_support = 0.075
			add_political_power = 75
		}
		search_filters = { FOCUS_FILTER_STABILITY FOCUS_FILTER_WAR_SUPPORT }
	}


	focus = {
		id = PHI_secure_japanese_guarantees
		icon = GFX_focus_chi_collaboration_with_the_japanese

		prerequisite = { focus = PHI_aguinaldos_coup }

		relative_position_id = PHI_aguinaldos_coup	

		x = 0
		y = 1
	
		cost = 5

		available = {
			OR = {
				is_subject_of = USA
				AND = {
					is_subject = no
					JAP = {
						is_faction_leader = yes
					}
				}
			}
		}

		bypass = {
			OR = {
				JAP = {
					OR = {
						exists = no
						is_subject = yes
						has_war_with = ROOT
						is_in_faction_with = ROOT
					}
				}
				AND = {
					is_subject_of = USA
					JAP = {
						is_in_faction_with = USA
					}
				}
				AND = {
					is_subject = no
					JAP = {
						is_faction_leader = no
					}
				}
			}
		}

		available_if_capitulated = no
	
		completion_reward = {
			if = {
				limit = {
					is_subject_of = USA
				}
				JAP = {
					country_event = {
						id = SEA_PHI_political_events.45
					}
				}
			}
			else_if = {
				limit = {
					JAP = {
						is_faction_leader = yes
					}
				}
				JAP = {
					country_event = {
						id = generic.2
					}
				}
			}

			add_war_support = 0.10
		}
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_WAR_SUPPORT }
	}

	focus = {
		id = PHI_war_of_independence
		icon = GFX_goal_generic_major_war

		prerequisite = { focus = PHI_secure_japanese_guarantees focus = PHI_hispanic_overtures }

		relative_position_id = PHI_secure_japanese_guarantees	

		x = 3
		y = 1
	
		cost = 5

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0
				has_completed_focus = PHI_hispanic_overtures
				NOT = {
					any_other_country = {
						has_country_flag = PHI_agreed_to_ally
					}
				}
			}
			modifier = {	#AI is quite eager to do these decisions
				factor = 5
				has_completed_focus = PHI_hispanic_overtures
				any_other_country = {
					has_country_flag = PHI_agreed_to_ally
				}
			}
		}

		available = {
			is_subject_of = USA
		}

		bypass = {
			NOT = {
				is_subject_of = USA
			}
		}

		available_if_capitulated = no
	
		completion_reward = {
			USA = {
				set_autonomy = {
					target = ROOT
					autonomous_state = autonomy_free
					end_wars = yes
					end_civil_wars = no
				}
				leave_faction = yes
				country_event = {
					id = SEA_PHI_political_events.48
				}
			}
			if = {
				limit = {
					has_country_flag = PHI_japan_independence_help
					JAP = {
						exists = yes
						is_subject = no
						NOT = {
							is_in_faction_with = USA
						}
					}
				}
				JAP = {
					give_guarantee = ROOT
					if = {
						limit = {
							is_faction_leader = yes
						}
						add_to_faction = ROOT
					}
				}
			}
			else_if = {
				limit = {
					has_completed_focus = PHI_hispanic_overtures
				}
				create_faction = PHI_hispanic_coalition
				every_other_country = {
					limit = {
						has_country_flag = PHI_agreed_to_ally
						NOT = {
							has_war_with = ROOT
						}
						is_subject = no
						is_in_faction = no
					}
					ROOT = {
						add_to_faction = PREV
					}
				}
			}

			custom_effect_tooltip = if_they_refuse_tt
			effect_tooltip = {
				USA = {
					create_wargoal = {
						target = ROOT
						type = puppet_wargoal_focus
					}
					custom_effect_tooltip = generic_skip_one_line_tt
					unlock_decision_tooltip = PHI_peace_with_philippines
					if = {
						limit = {
							is_ai = yes
						}
						custom_effect_tooltip = generic_skip_one_line_tt
						custom_effect_tooltip = PHI_will_take_peace_decision
					}
				}
			}
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}

	focus = {
		id = PHI_election_overturned
		icon = GFX_focus_AUS_lawmaking_leniency

		prerequisite = { focus = PHI_rebuild_sakdalistas }
		mutually_exclusive = { focus = PHI_the_red_sun_over_manila focus = PHI_slippery_slope }

		relative_position_id = PHI_rebuild_sakdalistas	

		x = 3
		y = 1
	
		cost = 10

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			country_event = SEA_PHI_political_events.60
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}

	focus = {
		id = PHI_hispanidad_filipina
		icon = GFX_focus_PHI_hispanidad_filipina

		prerequisite = { focus = PHI_election_overturned }

		relative_position_id = PHI_election_overturned	

		x = 0
		y = 1
	
		cost = 5

		ai_will_do = {
			base = 4
		}

		available = {
			has_global_flag = spanish_civil_war
			if = {
				limit = {
					has_global_flag = spanish_civil_war
					has_dlc = "La Resistance"				#then SPB and SPC could still be fighting
				}
				OR = {
					country_exists = SPA
					country_exists = SPD
				}
			}
			NOT = {
				has_global_flag = scw_over
			}
			has_government = neutrality
		}

		bypass = {
			if = {
				limit = {
					has_global_flag = spanish_civil_war
				}
				OR = {
					AND = {
						NOT = { country_exists = SPA }
						NOT = { country_exists = SPD }
					}
					has_global_flag = scw_over
				}
			}
			else = {
				has_global_flag = scw_over
			}
			has_government = neutrality
		}

		available_if_capitulated = no
	
		completion_reward = {
			country_event = SEA_PHI_political_events.62
		}
	}

	focus = {
		id = PHI_spanish_refugees

		prerequisite = { focus = PHI_hispanidad_filipina }

		relative_position_id = PHI_hispanidad_filipina	

		icon = GFX_focus_generic_immigration

		x = -1
		y = 1
	
		cost = 10

		ai_will_do = {
			base = 4
		}

		available = {
			has_global_flag = scw_over
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			random_core_state = {
				limit = {
					is_owned_and_controlled_by = ROOT
					NOT = {		#no explosions in low-pop states
						state = 626
						state = 1025
					}
				}
				add_manpower = 18000
				add_extra_state_shared_building_slots = 1
				ROOT = {
					random_core_state = {
						limit = {
							is_owned_and_controlled_by = ROOT
							NOT = {		#no explosions in low-pop states
								state = 626
								state = 1025
								state = PREV.PREV
							}
						}
						add_manpower = 42000
						add_extra_state_shared_building_slots = 1
					}
				}
			}


			custom_effect_tooltip = generic_skip_one_line_tt

			add_manpower = 15000

			custom_effect_tooltip = generic_skip_one_line_tt

			if = {
				limit = {
					has_country_flag = PHI_support_scw_faction_lost
				}
				effect_tooltip = {
					army_experience = 35
				}
				hidden_effect = {	#since army modifier actually removes 80% of that 35 by default, divide by 1-modifier to actually add the listed amount
					set_temp_variable = { PHI_xp_factor = 1 }
					add_to_temp_variable = { PHI_xp_factor = PHI_philippine_army_experience_gain_army_factor }
					set_temp_variable = { PHI_xp_to_add = 35 }
					divide_temp_variable = { PHI_xp_to_add = PHI_xp_factor }
					army_experience = PHI_xp_to_add
				}

				custom_effect_tooltip = generic_skip_one_line_tt

				division_template = {
					name = "Spanish Veterans"
					priority = 2
					regiments = {
						infantry = { x = 0 y = 0 }
						infantry = { x = 0 y = 1 }
						infantry = { x = 0 y = 2 }
						infantry = { x = 0 y = 3 }

						infantry = { x = 1 y = 0 }
						infantry = { x = 1 y = 1 }
						infantry = { x = 1 y = 2 }
						infantry = { x = 1 y = 3 }
					}
					support = {
						artillery = { x = 0 y = 0 }  # Spanish Arty Rgt/Bge had 2 Bn 105mm arty
						engineer = { x = 0 y = 1 }   # Eng Bn
					}
				}

				capital_scope = {
					create_unit = {
						division = "name = \"Spanish Veterans\" division_template = \"Spanish Veterans\" start_experience_factor = 0.7"
						count = 2
						owner = ROOT
					}
				}
			}
			else = {
				custom_effect_tooltip = PHI_if_supported_scw_side_lost_tt
				effect_tooltip = {
					army_experience = 35

					custom_effect_tooltip = generic_skip_one_line_tt

					division_template = {
						name = "Spanish Veterans"
						priority = 2
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
							infantry = { x = 0 y = 3 }

							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
							infantry = { x = 1 y = 3 }
						}
						support = {
							artillery = { x = 0 y = 0 }  # Spanish Arty Rgt/Bge had 2 Bn 105mm arty
							engineer = { x = 0 y = 1 }   # Eng Bn
						}
					}

					capital_scope = {
						create_unit = {
							division = "name = \"Spanish Veterans\" division_template = \"Spanish Veterans\" start_experience_factor = 0.7"
							count = 2
							owner = ROOT
						}
					}
				}
				custom_effect_tooltip = generic_skip_one_line_tt
				custom_effect_tooltip = PHI_if_supported_scw_side_wins_tt
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_MANPOWER FOCUS_FILTER_ARMY_XP }
	}

	focus = {
		id = PHI_reconciliation_with_spain

		prerequisite = { focus = PHI_spanish_refugees }

		relative_position_id = PHI_spanish_refugees	

		#When editing this, try to keep this somewhat in line with how the if/else block below works
		icon = {
			trigger = {
				OR = {
					country_exists = SPA
					country_exists = SPC
				}
			}
			value = GFX_focus_generic_befriend_nationalist_spain_focus
		}
		icon = {
			trigger = {
				country_exists = SPD
				SPD = {
					has_government = communism
				}
			}
			value = GFX_focus_generic_befriend_communist_spain_focus
		}
		icon = {
			value = GFX_focus_generic_befriend_republican_spain_focus
		}
		dynamic = yes

		x = 0
		y = 1
	
		cost = 5

		ai_will_do = {
			base = 4
		}

		available = {
			any_country_with_original_tag = {
				original_tag_to_check = SPR
				exists = yes
				NOT = {
					has_war_with = ROOT
				}
			}
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			if = {
				limit = {
					country_exists = SPA
				}
				if = {
					limit = {
						has_country_flag = PHI_support_scw_faction_won
					}
					add_ideas = PHI_ties_with_nationalist_spain_2
				}
				else = {
					add_ideas = PHI_ties_with_nationalist_spain
				}
			}
			else_if = {
				limit = {
					country_exists = SPD
				}
				if = {
					limit = {
						has_country_flag = PHI_support_scw_faction_won
					}
					add_ideas = PHI_ties_with_republican_spain_2
				}
				else = {
					add_ideas = PHI_ties_with_republican_spain
				}
			}
			else_if = {
				limit = {
					country_exists = SPB
				}
				add_ideas = PHI_ties_with_carlist_spain
			}
			else_if = {
				limit = {
					country_exists = SPC
				}
				add_ideas = PHI_ties_with_anarchist_spain
			}
			else = {	#should never be executed, only meant for tooltip purposes
				add_ideas = PHI_ties_with_republican_spain
			}

			if = {
				limit = {
					has_completed_focus = PHI_hispanic_overtures
				}
				custom_effect_tooltip = generic_skip_one_line_tt
				custom_effect_tooltip = PHI_unlock_mutual_assistance_with_spain_tt
			}
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}

	focus = {
		id = PHI_hispanic_overtures
		icon = GFX_focus_CHL_promote_pan_hispanic_rhetoric

		prerequisite = { focus = PHI_reconciliation_with_spain focus = PHI_royal_exiles }

		relative_position_id = PHI_reconciliation_with_spain	

		x = 1
		y = 1
	
		cost = 10

		ai_will_do = {
			base = 4
		}

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			unlock_decision_category_tooltip = PHI_relations_with_spanish_america

			if = {
				limit = {
					has_completed_focus = PHI_treaty_of_manila
					is_in_faction = no
					is_subject = no
				}
				create_faction = PHI_hispanic_coalition
				every_other_country = {
					limit = {
						has_country_flag = PHI_agreed_to_ally
						NOT = {
							has_war_with = ROOT
						}
						is_subject = no
						is_in_faction = no
					}
					ROOT = {
						add_to_faction = PREV
					}
				}
			}
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}

	focus = {
		id = PHI_revolutionary_regrets
		icon = GFX_focus_spr_crush_the_revolution

		prerequisite = { focus = PHI_hispanidad_filipina }

		relative_position_id = PHI_hispanidad_filipina	

		x = 1
		y = 1
	
		cost = 10

		ai_will_do = {
			base = 3
		}

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			add_ideas = PHI_reignited_independence_struggle
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}

	focus = {
		id = PHI_royal_exiles
		icon = GFX_focus_generic_monarchy_2

		prerequisite = { focus = PHI_revolutionary_regrets }

		relative_position_id = PHI_revolutionary_regrets	

		x = 0
		y = 1
	
		cost = 10

		ai_will_do = {
			base = 3
		}

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			every_unit_leader = {
				random_select_amount = 2
				gain_xp = 500
			}

			if = {
				limit = {
					has_dlc = "By Blood Alone"
				}
				custom_effect_tooltip = generic_skip_one_line_tt
	
				every_country_division = {
					add_divisional_commander_xp = 80
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			show_unit_leaders_tooltip = PHI_infante_juan_iii

			custom_effect_tooltip = generic_skip_one_line_tt

			swap_ideas = {
				add_idea = PHI_reignited_independence_struggle_2
				remove_idea = PHI_reignited_independence_struggle
			}
		}
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_MILITARY_CHARACTER FOCUS_FILTER_STABILITY }
	}

	focus = {
		id = PHI_reino_de_filipinas
		icon = GFX_focus_PHI_reino_de_filipinas

		prerequisite = { focus = PHI_royal_exiles }
		prerequisite = { focus = PHI_war_of_independence }

		mutually_exclusive = { focus = PHI_second_philippine_republic }

		relative_position_id = PHI_hispanic_overtures	

		x = 1
		y = 3
	
		cost = 10

		ai_will_do = {
			base = 5
		}

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			PHI_infante_juan_iii = {
				add_attack = 1
				add_coordination = 1
				custom_effect_tooltip = generic_skip_one_line_tt
				add_country_leader_role = {
					promote_leader = yes
					country_leader = {
						ideology = despotism
						expire = "1965.1.1.1"
						traits = { ICE_the_navy_king }
					}
				}
			}

			set_politics = {
				ruling_party = neutrality
				long_name = PHI_bourbon_party_long
				name = PHI_bourbon_party
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			set_cosmetic_tag = PHI_reino_de_filipinas_tag

			custom_effect_tooltip = generic_skip_one_line_tt

			swap_ideas = {
				add_idea = PHI_reignited_independence_struggle_3
				remove_idea = PHI_reignited_independence_struggle_2
			}

			#custom_effect_tooltip = generic_skip_one_line_tt

			custom_effect_tooltip = PHI_unlock_unification_decision_tt
			custom_effect_tooltip = PHI_unlock_conquer_decision_tt
		}
		search_filters = { FOCUS_FILTER_MILITARY_CHARACTER FOCUS_FILTER_POLITICAL }
	}

	focus = {
		id = PHI_second_philippine_republic
		icon = GFX_focus_PHI_second_philippine_republic

#		prerequisite = { focus = PHI_aguinaldos_coup }
		prerequisite = { focus = PHI_war_of_independence }
		mutually_exclusive = { focus = PHI_reino_de_filipinas }

		relative_position_id = PHI_aguinaldos_coup	

		x = -1
		y = 4
	
		cost = 10

		available = {
			327 = { #Manila
				is_fully_controlled_by = PHI
			}
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {

			custom_effect_tooltip = PHI_second_republic_tag_tt

			custom_effect_tooltip = generic_skip_one_line_tt
			custom_effect_tooltip = PHI_modify_economy_dynamic_modifier_tt
			add_to_variable = {
				PHI_ruling_ideology_ideology_drift = 0.05
				tooltip = PHI_ruling_ideology_ideology_drift_tt_2
			}
			PHI_refresh_ruling_ideology_drift = yes

			custom_effect_tooltip = generic_skip_one_line_tt
			add_stability = 0.10

			hidden_effect = {
				set_cosmetic_tag = PHI_second_republic_tag
				PHI_update_war_flag = yes
				mark_focus_tree_layout_dirty = yes
			}
		}
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY }
	}

	focus = {
		id = PHI_war_for_the_oceans
		icon = GFX_focus_PHI_war_for_the_oceans

		prerequisite = { focus = PHI_second_philippine_republic focus = PHI_treaty_of_manila focus = PHI_pan_pacific_trade_union_secretariat focus = PHI_comitern focus = PHI_reino_de_filipinas }

		relative_position_id = PHI_second_philippine_republic	

		x = 4
		y = 1
	
		cost = 10

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			custom_effect_tooltip = PHI_island_nation_dynamic_modifier_tt
			add_to_variable = { PHI_island_nation_industrial_capacity_dockyard = 0.10 tooltip = industrial_capacity_dockyard_tt }
			add_to_variable = { PHI_island_nation_navy_max_range_factor = 0.15 tooltip = navy_max_range_factor_tt }

			custom_effect_tooltip = generic_skip_one_line_tt
			random_owned_controlled_state = {
				limit = {
					is_core_of = PHI
					is_fully_controlled_by = PHI
					is_coastal = yes
					free_building_slots = {
						building = dockyard
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = dockyard
					level = 2
					instant_build = yes
				}	
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = PHI_assume_the_naval_burden
		icon = GFX_goal_generic_occupy_states_coastal

		prerequisite = { focus = PHI_war_for_the_oceans }
		mutually_exclusive = { focus = PHI_develop_naval_infrastructure }	
		relative_position_id = PHI_war_for_the_oceans	

		x = -1
		y = 1
	
		cost = 10

		ai_will_do = {
			base = 0
		}

		available = {
			is_ally_with = JAP
			JAP = {
				has_navy_size = {
					size > 24
				}
			}
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			JAP = {
				country_event = SEA_PHI_political_events.56
				custom_effect_tooltip = if_they_accept_newline_tt
				show_unit_leaders_tooltip = JAP_kiyoshi_hasegawa
				custom_effect_tooltip = PHI_send_a_share_of_THIS_navy_to_ROOT_tt
			}

		}
	}

	focus = {
		id = PHI_develop_naval_infrastructure
		icon = GFX_goal_generic_construct_naval_dockyard

		prerequisite = { focus = PHI_war_for_the_oceans }
		mutually_exclusive = { focus = PHI_assume_the_naval_burden }	
		relative_position_id = PHI_war_for_the_oceans	

		x = 1
		y = 1
	
		cost = 10

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			custom_effect_tooltip = PHI_island_nation_dynamic_modifier_tt
			add_to_variable = { PHI_island_nation_industrial_capacity_dockyard = 0.10 tooltip = industrial_capacity_dockyard_tt }

			custom_effect_tooltip = generic_skip_one_line_tt
			random_owned_controlled_state = {
				limit = {
					is_core_of = PHI
					is_fully_controlled_by = PHI
					is_coastal = yes
					free_building_slots = {
						building = dockyard
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = dockyard
					level = 2
					instant_build = yes
				}	
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}	

	focus = {
		id = PHI_reunite_madagascar
		icon = GFX_focus_PHI_reunite_madagascar

		prerequisite = { focus = PHI_assume_the_naval_burden focus = PHI_develop_naval_infrastructure }
		relative_position_id = PHI_assume_the_naval_burden	

		x = -3
		y = 1
	
		cost = 10

		ai_will_do = {
			base = 0
		}

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			add_state_claim = 543
			add_state_claim = 708
			add_state_claim = 706
			add_state_claim = 707

			custom_effect_tooltip = generic_skip_one_line_tt

			custom_effect_tooltip = PHI_claim_to_core_tt
		}
		search_filters = { FOCUS_FILTER_ANNEXATION FOCUS_FILTER_MANPOWER }
	}

	focus = {
		id = PHI_take_pacific_islands
		icon = GFX_focus_PHI_take_pacific_islands

		prerequisite = { focus = PHI_assume_the_naval_burden focus = PHI_develop_naval_infrastructure }
		relative_position_id = PHI_assume_the_naval_burden	

		x = -1
		y = 1
	
		cost = 10

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0
				OR = {
					is_ally_with = USA
					country_exists = PLU	#AI is never gonna get that naval invasion
				}
			}
		}

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {

			add_state_claim = 629 #Hawaii
			add_state_claim = 630 #Johnston Atoll
			add_state_claim = 631 #Midway
			add_state_claim = 632 #Wake
			add_state_claim = 633 #Marshall Islands
			add_state_claim = 638 #Guam
			add_state_claim = 639 #Gilbert Islands
			add_state_claim = 641 #Taihiti
			add_state_claim = 642 #Phoenix Island
			add_state_claim = 643 #Elice Islands
			add_state_claim = 646 #Saipan
			add_state_claim = 647 #Palau
			add_state_claim = 648 #Marcus
			add_state_claim = 684 #Caroline Islands
			add_state_claim = 725 #Nauru
			add_state_claim = 727 #Line Islands
			add_state_claim = 737 #Bismark
			add_state_claim = 634 #Solomon Islands
			add_state_claim = 734 #Nendo

			if = {
				limit = {
					country_exists = PLU
					NOT = {
						is_ally_with = PLU
					}
				}
				custom_effect_tooltip = generic_skip_one_line_tt
	
				create_wargoal = {
					type = annex_everything
					target = PLU
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			custom_effect_tooltip = PHI_claim_to_core_tt
		}
		search_filters = { FOCUS_FILTER_ANNEXATION FOCUS_FILTER_MANPOWER }
	}

	focus = {
		id = PHI_malayo_polynesia
		icon = GFX_focus_PHI_malayo_polynesia

		prerequisite = { focus = PHI_assume_the_naval_burden focus = PHI_develop_naval_infrastructure }
		relative_position_id = PHI_assume_the_naval_burden	

		x = 1
		y = 1
	
		cost = 10

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			add_state_claim = 634	#Solomon Islands
			add_state_claim = 734	#Nendo
			add_state_claim = 1024	#Sabah
			add_state_claim = 334	#Kalimantan
			add_state_claim = 333	#Sarawak
			add_state_claim = 673	#Sulawesi
			add_state_claim = 336	#Malaya
			add_state_claim = 672	#Sumatra
			add_state_claim = 335	#Java
			add_state_claim = 667	#Lesser Sunda Islands
			add_state_claim = 1023	#Brunei
			add_state_claim = 1021	#Singapore
			add_state_claim = 979	#Kaiser_wilhelmsland
			add_state_claim = 668	#Moluccas
			add_state_claim = 669	#West Papua
			add_state_claim = 1022	#Interior Borneo (inaccesible, cored by coring decisions of neighboring states instead)
			add_state_claim = 738	#Aru Islands
			add_state_claim = 721	#Portuguese Timor
			add_state_claim = 667 #Lesser Sunda Islands

			custom_effect_tooltip = generic_skip_one_line_tt

			custom_effect_tooltip = PHI_claim_to_core_tt
		}
		search_filters = { FOCUS_FILTER_ANNEXATION FOCUS_FILTER_MANPOWER }
	}	


	focus = {
		id = PHI_war_for_oceania
		icon = GFX_focus_PHI_war_for_oceania

		prerequisite = { focus = PHI_assume_the_naval_burden focus = PHI_develop_naval_infrastructure }
		relative_position_id = PHI_assume_the_naval_burden	

		x = 3
		y = 1
	
		cost = 10

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			add_state_claim = 284 #NZ North Island
			add_state_claim = 723 #NZ South Island
			add_state_claim = 635 #New Caladonia
			add_state_claim = 636 #Fiji
			add_state_claim = 726 #Samoa

			custom_effect_tooltip = generic_skip_one_line_tt
		}
		search_filters = { FOCUS_FILTER_ANNEXATION }
	}

	focus = {
		id = PHI_conquest_of_japan
		icon = GFX_focus_PHI_conquest_of_japan

		prerequisite = { focus = PHI_develop_naval_infrastructure }
		relative_position_id = PHI_assume_the_naval_burden	

		x = 5
		y = 1
	
		cost = 10

		ai_will_do = {
			base = 0
		}

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			add_state_claim = 645 #Iwo Jima
			add_state_claim = 526 #Okinawa
			add_state_claim = 524 #Taiwan

			if = {
				limit = {
					country_exists = FOR
					NOT = {
						is_ally_with = FOR
					}
				}
				custom_effect_tooltip = generic_skip_one_line_tt
	
				create_wargoal = {
					type = annex_everything
					target = FOR
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt
			create_wargoal = {
				type = take_claimed_state
				target = JAP
				expire = 0
				generator = { 645 526 524 }
			}
		}
		search_filters = { FOCUS_FILTER_ANNEXATION }
	}

	focus = {
		id = PHI_filipino_polynesian_reunification
		icon = GFX_focus_PHI_filipino_polynesian_reunification

		prerequisite = { focus = PHI_reunite_madagascar focus = PHI_take_pacific_islands focus = PHI_war_for_oceania focus = PHI_malayo_polynesia focus = PHI_conquest_of_japan}

		relative_position_id = PHI_malayo_polynesia	

		x = 0
		y = 1
	
		cost = 10

		available = {
			collection_size = {
				input = {
					input = game:all_states
					operators = {
						limit = {
							OR = {
								state = 543 #Madagascar
								state = 708 #Comoro Islands
								state = 706 #Reunion
								state = 707 #Mauritius
								state = 629 #Hawaii
								state = 630 #Johnston Atoll
								state = 631 #Midway
								state = 632 #Wake
								state = 633 #Marshall Islands
								state = 638 #Guam
								state = 639 #Gilbert Islands
								state = 641 #Taihiti
								state = 642 #Phoenix Island
								state = 643 #Elice Islands
								state = 646 #Saipan
								state = 647 #Palau
								state = 648 #Marcus
								state = 684 #Caroline Islands
								state = 725 #Nauru
								state = 727 #Line Islands
								state = 737 #Bismark
								state = 634 #Solomon Islands
								state = 734 #Nendo
								state = 634	#Solomon Islands
								state = 734	#Nendo
								state = 1024 #Sabah
								state = 334	#Kalimantan
								state = 333	#Sarawak
								state = 673	#Sulawesi
								state = 336	#Malaya
								state = 672	#Sumatra
								state = 335	#Java
								state = 667	#Lesser Sunda Islands
								state = 1023 #Brunei
								state = 1021 #Singapore
								state = 979	#Kaiser_wilhelmsland
								state = 668	#Moluccas
								state = 669	#West Papua
								state = 1022 #Interior Borneo (inaccesible, cored by coring decisions of neighboring states instead)
								state = 738	#Aru Islands
								state = 721	#Portuguese Timor
								state = 667 #Lesser Sunda Islands
								state = 284 #NZ North Island
								state = 723 #NZ South Island
								state = 635 #New Caladonia
								state = 636 #Fiji
								state = 726 #Samoa
								state = 645 #Iwo Jima
								state = 526 #Okinawa
								state = 524 #Taiwan
							}
							is_controlled_by = ROOT
						}
					}
					name = COLLECTION_CONTROLLED_AUSTRONESIA_STATES
				}
				value > 24
			}
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			custom_effect_tooltip = PHI_polynesia_tag_tt

			custom_effect_tooltip = PHI_island_nation_dynamic_modifier_tt
			add_to_variable = { PHI_island_nation_navy_max_range_factor = 0.10 tooltip = navy_max_range_factor_tt }
			add_to_variable = { PHI_island_nation_air_range_factor = 0.15 tooltip = air_range_factor_tt }
			add_to_variable = { PHI_island_nation_supply_consumption_factor = -0.10 tooltip = supply_consumption_factor_tt }
			
			hidden_effect = {
				set_cosmetic_tag = PHI_polynesia_tag
				PHI_update_war_flag = yes
				mark_focus_tree_layout_dirty = yes
			}
		}
	}



########################
########################
###### COMMUNIST #######
########################
########################

	focus = {
		id = PHI_petition_the_supreme_court
		icon = GFX_focus_generic_court
		
		x = 46
		y = 1
	
		cost = 10

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			add_popularity = {
				ideology = communism
				popularity = 0.05
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			add_timed_idea = {
				idea = PHI_petition_the_supreme_court_communism_timed_idea
				days = 365
			}
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}

	focus = {
		id = PHI_legalize_the_communist_party
		icon = GFX_focus_generic_communist

		prerequisite = { focus = PHI_petition_the_supreme_court }

		relative_position_id = PHI_petition_the_supreme_court	
		
		x = 0
		y = 1
	
		cost = 10

		available = {
			communism > 0.1
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {

			if = {
				limit = {
					NOT = {
						has_completed_focus = PHI_hukbalahap
					}
				}
				show_unit_leaders_tooltip = PHI_luis_taruc
			}

			custom_effect_tooltip = generic_skip_one_line_tt
			add_popularity = {
				ideology = communism
				popularity = 0.05
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			USA = {
				add_opinion_modifier = {
					target = PHI
					modifier = PHI_legalized_communist_party
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt
			custom_effect_tooltip = available_political_advisor
			show_ideas_tooltip = PHI_vicente_lava
		}
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_POLITICAL_CHARACTER }
	}


	focus = {
		id = PHI_return_of_the_exiles
		icon = GFX_focus_PHI_return_of_the_exiles

		prerequisite = { focus = PHI_legalize_the_communist_party }

		relative_position_id = PHI_legalize_the_communist_party	
		
		x = -1
		y = 1
	
		cost = 10

		available = {
			communism > 0.2
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			add_popularity = {
				ideology = communism
				popularity = 0.05
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			add_manpower = 5000
			if = {
				limit = {
					has_dlc = "La Resistance"
				}
				custom_effect_tooltip = generic_skip_one_line_tt 
				custom_effect_tooltip = available_political_advisor
				show_ideas_tooltip = PHI_tan_malaka
			}
		}
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_POLITICAL_CHARACTER FOCUS_FILTER_MANPOWER }
	}


	focus = {
		id = PHI_support_for_chinese_communists
		icon = GFX_focus_prc_proclaim_the_peoples_republic

		prerequisite = { focus = PHI_legalize_the_communist_party }

		relative_position_id = PHI_legalize_the_communist_party	
		
		x = 1
		y = 1
	
		cost = 10

		available = {
			communism > 0.2
			has_manpower > 5000
			has_equipment = {
				infantry_equipment > 2499
			}
		}

		bypass = {
		}

		cancel = {
			has_manpower < 5000
			has_equipment = {
				infantry_equipment < 2500
			}
		}

		available_if_capitulated = no
	
		completion_reward = {
			custom_effect_tooltip = PHI_philippine_army_dynamic_modifier_tt
			add_relation_rule_override = {
				  	target = PRC
				  	can_send_volunteers = yes
				}	
			add_ideas = BEL_volunteer_effort1_ns	

			custom_effect_tooltip = generic_skip_one_line_tt

			## Send event to PRC
			PRC = {
				country_event = {
					id = SEA_PHI_political_events.6
					hours = 3 
					random_hours = 6
				}
			}

			custom_effect_tooltip = if_they_accept_tt
			effect_tooltip = {
				add_manpower = -5000
				add_equipment_to_stockpile = { 
					type = infantry_equipment_0
					amount = -2500
					producer = PHI
				}
				PRC = {
					add_manpower = 5000
				}
				PRC = { 
					add_equipment_to_stockpile = { 
						type = infantry_equipment_0
						amount = 2500
						producer = PHI
					}
				}
			}	
		}
	}

	focus = {
		id = PHI_the_red_sun_over_manila
		icon = GFX_focus_PHI_the_red_sun_over_manila

		prerequisite = { focus = PHI_legalize_the_communist_party }
		mutually_exclusive = { focus = PHI_slippery_slope focus = PHI_election_overturned }

		relative_position_id = PHI_legalize_the_communist_party	
		
		x = 0
		y = 2
	
		cost = 10

		available = {
			communism > 0.3
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			custom_effect_tooltip = PHI_warning_american_intervention_tt
			activate_mission = PHI_american_intervention_declare_war_mission

			custom_effect_tooltip = generic_skip_one_line_tt
			add_popularity = {
				ideology = communism
				popularity = 0.05
			}
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}

	focus = {
		id = PHI_partido_komunista_ng_pilipinas_coup
		icon = GFX_focus_PHI_partido_komunista_ng_pilipinas_coup

		prerequisite = { focus = PHI_the_red_sun_over_manila }

		relative_position_id = PHI_the_red_sun_over_manila	
		
		x = 0
		y = 1
	
		cost = 5

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			ROOT = { 
				country_event = { ## Pick a new country leader
					id = SEA_PHI_political_events.17
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt
			set_politics = {
				ruling_party = communism
				elections_allowed = no
			}	
			add_popularity = {
				ideology = communism
				popularity = 0.05
			}
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}

	focus = {
		id = PHI_national_confederation
		icon = GFX_focus_generic_workers_and_farmers_rise

		prerequisite = { focus = PHI_partido_komunista_ng_pilipinas_coup }

		relative_position_id = PHI_partido_komunista_ng_pilipinas_coup	

		x = -2
		y = 1
	
		cost = 5

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			add_stability = 0.1
			add_popularity = {
				ideology = communism
				popularity = 0.05
			}
		}
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY }
	}	


	focus = {
		id = PHI_anti_intervention_strategies
		icon = GFX_focus_PHI_anti_intervention_strategies

		prerequisite = { focus = PHI_partido_komunista_ng_pilipinas_coup }

		relative_position_id = PHI_partido_komunista_ng_pilipinas_coup	
		
		x = 2
		y = 1
	
		cost = 5

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {			
				set_variable = { PHI_american_intervention_value_to_add = -15 }
				PHI_american_intervention_change_value = yes
				custom_effect_tooltip = PHI_american_intervention_change_value_medium_decrease_tt

				custom_effect_tooltip = generic_skip_one_line_tt

				custom_effect_tooltip = PHI_american_intervention_unlock_more_decisions_tt ## Unlocks more decision
		}
	}


	focus = {
		id = PHI_rally_the_fisherfolk
		icon = GFX_focus_PHI_rally_the_fisherfolk

		prerequisite = { focus = PHI_partido_komunista_ng_pilipinas_coup }

		relative_position_id = PHI_partido_komunista_ng_pilipinas_coup	
		
		x = 0
		y = 1
	
		cost = 10

		available = {

		}

		bypass = {
			NOT = {
				ROOT = {
					controls_state = 327
					controls_state = 627
				}
			}
		
		}

		available_if_capitulated = no
	
		completion_reward = {
			IF = {
				limit = {
					327 = { ## Manila
						free_building_slots = {
							building = dockyard
							size > 2
							include_locked = yes
						}	
					}
				}
				327 = { ## Manila
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = dockyard
						level = 2
						instant_build = yes
					}	

				}
			}
			IF = {
				limit = {
					627 = { ## Davao
						free_building_slots = {
							building = dockyard
							size > 1
							include_locked = yes
						}	
					}
				}
				627 = { ## Davao
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = dockyard
						level = 1
						instant_build = yes
					}	
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}



	focus = {
		id = PHI_smugglers
		icon = GFX_focus_generic_smugglers

		prerequisite = { focus = PHI_rally_the_fisherfolk }

		relative_position_id = PHI_rally_the_fisherfolk	
		
		x = 0
		y = 1
	
		cost = 10

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			custom_effect_tooltip = PHI_island_nation_dynamic_modifier_tt
			add_to_variable = {
				PHI_island_nation_convoy_retreat_speed = 0.10
				tooltip = convoy_retreat_speed_tt
			}

			IF = {
				limit = { has_dlc = "Arms Against Tyranny"}
				
				custom_effect_tooltip = generic_skip_one_line_tt
				mio:PHI_compania_maritima_de_cebu_organization = {
					add_mio_size = 1
					unlock_mio_trait_tooltip = PHI_mio_trait_civilian_smugglers
				}
			}

			IF = {
				limit = { has_dlc = "Arms Against Tyranny"}

				custom_effect_tooltip = generic_skip_one_line_tt
				custom_effect_tooltip = available_mio_tt
				show_mio_tooltip = PRC_ordenance_bureau_organization
				show_mio_tooltip = PRC_peoples_aviation_company_of_china_organization
				show_mio_tooltip = PRC_cmc_military_industry_bureau_organization
			}
		}
	}

	focus = {
		id = PHI_struggle_conference
		icon = GFX_focus_generic_conference

		prerequisite = { focus = PHI_smugglers }

		relative_position_id = PHI_smugglers	
		
		x = -2
		y = 1
	
		cost = 10

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			add_war_support = 0.1
			custom_effect_tooltip = generic_skip_one_line_tt
			add_ideas = PHI_struggle_conference_idea ## Military bonuseses
			## Maybe unlock resistance system
		}
		search_filters = { FOCUS_FILTER_WAR_SUPPORT }
	}	

	focus = {
		id = PHI_sanction_piracy
		icon = GFX_focus_generic_piracy

		prerequisite = { focus = PHI_smugglers }

		relative_position_id = PHI_smugglers	
		
		x = 0
		y = 1
	
		cost = 10

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			custom_effect_tooltip = PHI_island_nation_dynamic_modifier_tt
			add_to_variable = {
				PHI_island_nation_convoy_raiding_efficiency_factor = 0.20
				tooltip = convoy_raiding_efficiency_factor_tt
			}
		}
	}

	focus = {
		id = PHI_infiltrate_chinese_ports
		icon = GFX_focus_PHI_infiltrate_chinese_ports

		prerequisite = { focus = PHI_smugglers }

		relative_position_id = PHI_smugglers	
		
		x = 2
		y = 1
	
		cost = 5

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			add_ideas = PHI_dockworker_infiltration

			custom_effect_tooltip = generic_skip_one_line_tt

			custom_effect_tooltip = PHI_every_non_communist_coastal_warlord
			every_other_country = {
				visible_when_empty = yes
				limit = {
					is_literally_china = yes
					any_controlled_state = {
						is_coastal = yes
					}
					NOT = {
						has_government = communism
						is_ally_with = ROOT
					}
				}
				add_opinion_modifier = {
					target = ROOT
					modifier = PHI_dockworker_infiltration_mod
				}
			}
		}
	}



	focus = {
		id = PHI_maritime_communism
		icon = GFX_focus_PHI_maritime_communism

		prerequisite = { focus = PHI_struggle_conference }
		prerequisite = { focus = PHI_sanction_piracy }
		prerequisite = { focus = PHI_infiltrate_chinese_ports }

		relative_position_id = PHI_sanction_piracy	
		
		x = 0
		y = 1
	
		cost = 10

		available = {
			ROOT = {
				controls_state = 327
				controls_state = 627
			}
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			IF = {
				limit = {
					327 = { ## Manila
						free_building_slots = {
							building = dockyard
							size > 4
							include_locked = yes
						}	
					}
				}
				327 = { ## Manila
					add_extra_state_shared_building_slots = 4
					add_building_construction = {
						type = dockyard
						level = 4
						instant_build = yes
					}	

				}
			}
			IF = {
				limit = {
					627 = { ## Davao
						free_building_slots = {
							building = dockyard
							size > 3
							include_locked = yes
						}	
					}
				}
				627 = { ## Davao
					add_extra_state_shared_building_slots = 3
					add_building_construction = {
						type = dockyard
						level = 3
						instant_build = yes
					}	
				}
			}
			add_ideas = { PHI_maritime_communism_idea }
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = PHI_pan_pacific_trade_union_secretariat
		icon = GFX_focus_generic_spur_communist_revolutions

		prerequisite = { focus = PHI_maritime_communism }
		mutually_exclusive = { focus = PHI_comitern }		

		relative_position_id = PHI_maritime_communism	

		
		x = -1
		y = 2
	
		cost = 10

		available = {
			is_subject = no
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			create_faction = Pan_pacific_trade_union_secretariat # Loc key
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}


	focus = {
		id = PHI_comitern
		icon = GFX_focus_generic_join_comintern

		prerequisite = { focus = PHI_maritime_communism }
		mutually_exclusive = { focus = PHI_pan_pacific_trade_union_secretariat }

		relative_position_id = PHI_maritime_communism	
		
		x = 1
		y = 2
	
		cost = 10

		available = {
			is_subject = no
			any_country = {
				original_tag = SOV
				has_government = communism
				is_faction_leader = yes
			}
		}

		bypass = {
			OR = {
				AND = {
					is_subject = no
					is_in_faction = yes
				}
				has_war_with = SOV
			}
		}

		available_if_capitulated = no
	
		completion_reward = {
			SOV = {
				country_event = {
					id = SEA_PHI_political_events.18
				}
			}

			IF = {
				limit = { has_dlc = "Arms Against Tyranny"}

				custom_effect_tooltip = generic_skip_one_line_tt
				custom_effect_tooltip = available_mio_tt
				show_mio_tooltip = SOV_morozov_design_bureau_organization
			}
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}


########################
########################
###### MILITARY ########
########################
########################

	focus = {
		id = PHI_national_defense_act
		icon = GFX_focus_PHI_national_defense_act
		overlay = GFX_focus_fast_overlay_generic_clock
		
		x = 65
		y = 1
	
		cost = 35

		ai_will_do = {
			base = 0.5

			modifier = {
				factor = 100
				has_completed_focus = PHI_open_borders
			}

			modifier = {
				factor = 100
				has_completed_focus = PHI_nationality_act
			}

			modifier = {
				factor = 6
				has_completed_focus = PHI_anti_hacendados
			}

			modifier = {
				factor = 6
				has_completed_focus = PHI_pro_hacendados
			}

			modifier = {
				factor = 10
				has_government = fascism
			}
		}

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			custom_effect_tooltip = PHI_philippine_army_dynamic_modifier_tt
			add_to_variable = { PHI_philippine_army_industrial_capacity_factory = 0.75 tooltip = industrial_capacity_factory_tt }
			add_to_variable = { PHI_philippine_army_industrial_capacity_dockyard = 0.5 tooltip = industrial_capacity_dockyard_tt }
			add_to_variable = { PHI_philippine_army_experience_gain_army_factor = 0.40 tooltip = experience_gain_army_factor_tt }

			custom_effect_tooltip = generic_skip_one_line_tt
			custom_effect_tooltip = PHI_reduce_national_defense_act_cost_tt
		}
		search_filters = { FOCUS_FILTER_ARMY_XP FOCUS_FILTER_AIR_XP FOCUS_FILTER_NAVY_XP }
	}

########################################
###### Fortification sub branch ########
########################################

	focus = {
		id = PHI_war_plan_orange
		icon = GFX_focus_PHI_war_plan_orange


		prerequisite = { focus = PHI_national_defense_act }	
		mutually_exclusive = { focus = PHI_beach_defense_strategy }	
		relative_position_id = PHI_national_defense_act


		x = -7
		y = 1
	
		cost = 5

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			PHI_add_or_modify_defense_strategy = yes
			add_to_variable = { PHI_defense_strategy_max_dig_in = 2 tooltip = max_dig_in_tt }
		}
	}



	focus = {
		id = PHI_beach_defense_strategy
		icon = GFX_focus_PHI_beach_defense_strategy
		
		prerequisite = { focus = PHI_national_defense_act }	
		mutually_exclusive = { focus = PHI_war_plan_orange }
		relative_position_id = PHI_war_plan_orange	

		x = 2
		y = 0
	
		cost = 5

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			PHI_add_or_modify_defense_strategy = yes
			add_to_variable = { PHI_defense_strategy_production_speed_bunker_factor = 0.20 tooltip = production_speed_bunker_factor_tt }
		}
	}

	focus = {
		id = PHI_fortify_corregidor
		icon = GFX_focus_PHI_fortify_corregidor
		
		prerequisite = { focus = PHI_war_plan_orange focus = PHI_beach_defense_strategy }	
		relative_position_id = PHI_war_plan_orange	

		x = 1
		y = 1
	
		cost = 5

		available = {
			PHI = { 
				controls_province = 10265 #Manila
			}
			OR = {
				327 = { #Manila
					free_building_slots = {
						building = bunker
						size > 2
						province = 10265
					}
				}
				327 = {
					free_building_slots = {
						building = coastal_bunker
						size > 2
						province = 10265
					}
				}
			}
		}

		bypass = {
			OR = {
				PHI = { 
					NOT = {
						controls_province = 10265 #Manila
					}
				}
				custom_trigger_tooltip = {
					tooltip = PHI_fortify_corregidor_bypass_tt
					AND = {
						327 = { #Manila
							free_building_slots = {
								building = bunker
								size < 1
								province = 10265
							}
						}
						327 = {
							free_building_slots = {
								building = coastal_bunker
								size < 1
								province = 10265
							}
						}
					}
				}
			}
		}
		enable_automatic_bypass = no

		available_if_capitulated = no
	
		completion_reward = {
			PHI_add_or_modify_defense_strategy = yes
			add_to_variable = { PHI_defense_strategy_max_dig_in = 1 tooltip = max_dig_in_tt }
			add_to_variable = { PHI_defense_strategy_production_speed_bunker_factor = 0.05 tooltip = production_speed_bunker_factor_tt }

			IF = {
				limit = {
					327 = { #Manila
						free_building_slots = {
							building = bunker
							size > 1
							province = 10265
						}
					}
				}

				327 = { #Manila
					add_building_construction = {
						type = bunker
						level = 2
						instant_build = yes
						province =  10265
					}
				}	
			}
			IF = {
				limit = {
					327 = { #Manila
						free_building_slots = {
							building = coastal_bunker
							size > 1
							province = 10265
						}
					}
				}

				327 = { #Manila
					add_building_construction = {
						type = coastal_bunker
						level = 2
						instant_build = yes
						province =  10265
					}
				}	
			}
		}
	}

	focus = {
		id = PHI_coastal_artillery
		icon = GFX_focus_FIN_coastal_defense
		
		prerequisite = { focus = PHI_fortify_corregidor }	
		relative_position_id = PHI_fortify_corregidor

		x = 0
		y = 1
	
		cost = 5

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			PHI_add_or_modify_defense_strategy = yes
			add_to_variable = { PHI_defense_strategy_army_artillery_attack_factor = 0.1 tooltip = army_artillery_attack_factor_tt }
			
			custom_effect_tooltip = generic_skip_one_line_tt
			mio:USA_rock_island_arsenal_organization = {
				add_mio_size = 1
				unlock_mio_trait_tooltip = PHI_mio_trait_naval_caliber_artillery
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = PHI_bastion_bataan
		icon = GFX_goal_fortify_the_westwall
		
		prerequisite = { focus = PHI_coastal_artillery }	
		relative_position_id = PHI_coastal_artillery

		x = 0
		y = 1
	
		cost = 5

		available = {
		}

		bypass = {
			OR = {
				NOT = { 
					controls_state = 1027

				}
				custom_trigger_tooltip = {
					tooltip = PHI_bastion_bataan_bypass_tt
					AND = {
						1027 = { #Bataan
							free_building_slots = {
								building = bunker
								size < 1
								province = 7351
							}
							free_building_slots = {
								building = bunker
								size < 1
								province = 10165
							}
							free_building_slots = {
								building = bunker
								size < 1
								province = 4423
							}
							free_building_slots = {
								building = bunker
								size < 1
								province = 12253
							}
							free_building_slots = {
								building = coastal_bunker
								size < 1
								province = 1415
							}
							free_building_slots = {
								building = coastal_bunker
								size < 1
								province = 7351
							}
						}
					}
				}
			}
		}
		enable_automatic_bypass = no

		available_if_capitulated = no
	
		completion_reward = {
			IF = {
				limit = {
					1027 = { #Bataan
						free_building_slots = {
							building = bunker
							size > 1
							province = 7351
						}
					}
					1027 = { #Bataan
						free_building_slots = {
							building = bunker
							size > 0
							province = 10165
						}
					}
				}

				1027 = { #Bataan
					add_building_construction = {
						type = bunker
						level = 2
						instant_build = yes
						province =  7351
					}
				}	
			}
			IF = {
				limit = {
					1027 = { #Bataan
						free_building_slots = {
							building = bunker
							size > 0
							province = 10165
						}
					}
				}

				1027 = { #Bataan
					add_building_construction = {
						type = bunker
						level = 1
						instant_build = yes
						province =  10165
					}
				}	
			}
			IF = {
				limit = {
					1027 = { #Bataan
						free_building_slots = {
							building = bunker
							size > 0
							province = 4423
						}
					}
				}

				1027 = { #Bataan
					add_building_construction = {
						type = bunker
						level = 1
						instant_build = yes
						province =  4423
					}
				}	
			}
			IF = {
				limit = {
					1027 = { #Bataan
						free_building_slots = {
							building = bunker
							size > 0
							province = 12253
						}
					}
				}

				1027 = { #Bataan
					add_building_construction = {
						type = bunker
						level = 1
						instant_build = yes
						province =  12253
					}
				}	
			}
			IF = {
				limit = {
					1027 = { #Bataan
						free_building_slots = {
							building = coastal_bunker
							size > 0
							province = 1415
						}
					}
				}

				1027 = { #Bataan
					add_building_construction = {
						type = coastal_bunker
						level = 1
						instant_build = yes
						province =  1415
					}
				}	
			}
			IF = {
				limit = {
					1027 = { #Bataan
						free_building_slots = {
							building = coastal_bunker
							size > 0
							province = 7351
						}
					}
				}

				1027 = { #Bataan
					add_building_construction = {
						type = coastal_bunker
						level = 1
						instant_build = yes
						province =  7351
					}
				}	
			}
		}
	}

	focus = {
		id = PHI_the_concrete_battleship
		icon = GFX_focus_PHI_the_concrete_battleship
		
		prerequisite = { focus = PHI_bastion_bataan }	
		relative_position_id = PHI_bastion_bataan	

		x = 0
		y = 1
	
		cost = 10

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {

			IF = {
				limit = {
					has_dlc = "Gotterdammerung"
				}

				IF = {
					limit = {
						NOT = { is_special_project_completed = sp:sp_land_stronghold_network }
					}
					complete_special_project = sp:sp_land_stronghold_network
				}
				IF = {
					limit = {
						1027 = { #Bataan
							is_fully_controlled_by = ROOT
							stronghold_network < 1
							free_building_slots = {
								building = industrial_complex
								size > 0
								include_locked = yes
							}
						}
					}
					1027 = { #Bataan
						add_extra_state_shared_building_slots = 1
						add_building_construction = {
							type = stronghold_network
							level = 1
							instant_build = yes
						}
					}	
				}

				custom_effect_tooltip = generic_skip_one_line_tt

			}
			ELSE = {

				1027 = {
					add_dynamic_modifier = {
						modifier = PHI_no_gtd_concrete_battleship
						scope = PHI 
					}
				}

				custom_effect_tooltip = generic_skip_one_line_tt

			}
			
			PHI_add_or_modify_defense_strategy = yes
			add_to_variable = { PHI_defense_strategy_land_bunker_effectiveness_factor = 0.1 tooltip = land_bunker_effectiveness_factor_tt }

		}
	}


###############################
###### Army sub branch ########
###############################

focus = {
		id = PHI_philippine_scouts
		icon = GFX_focus_PHI_philippine_scouts


		prerequisite = { focus = PHI_national_defense_act }	
		relative_position_id = PHI_national_defense_act


		x = -2
		y = 1
	
		cost = 10

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			custom_effect_tooltip = PHI_philippine_army_dynamic_modifier_tt
			add_to_variable = { PHI_philippine_army_training_time_factor = -0.10 tooltip = training_time_factor_tt }
			add_to_variable = { PHI_philippine_army_heat_attrition_factor = -0.10 tooltip = heat_attrition_factor_tt }

			custom_effect_tooltip = generic_skip_one_line_tt
			
			add_tech_bonus = {
				name = PHI_philippine_scouts
				bonus = 1
				uses = 1
				category = rangers_tech_cat
			}
			
			add_doctrine_cost_reduction = {
				name = PHI_philippine_scouts
				cost_reduction = 0.25
				uses = 2
				category = cat_rangers_doctrine
			}
			
			custom_effect_tooltip = generic_skip_one_line_tt
			add_potential_special_forces_tree = yes
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

focus = {
		id = PHI_militarize_the_constabulary
		icon = GFX_focus_PHI_militarize_the_constabulary


		prerequisite = { focus = PHI_national_defense_act }	
		relative_position_id = PHI_philippine_scouts


		x = 4
		y = 0
	
		cost = 10

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			custom_effect_tooltip = PHI_philippine_army_dynamic_modifier_tt
			add_to_variable = { PHI_philippine_army_training_time_factor = -0.10 tooltip = training_time_factor_tt }
			add_to_variable = { PHI_philippine_army_conscription_factor = 0.30 tooltip = conscription_factor_tt }
			add_to_variable = { PHI_philippine_army_industrial_capacity_factory = 0.1 tooltip = industrial_capacity_factory_tt }
		}
		search_filters = { FOCUS_FILTER_MANPOWER FOCUS_FILTER_INDUSTRY }
	}


focus = {
		id = PHI_philippine_army_orchestra
		icon = GFX_focus_PHI_philippine_army_orchestra


		prerequisite = { focus = PHI_philippine_scouts }	
		relative_position_id = PHI_philippine_scouts


		x = 0
		y = 1
	
		cost = 10

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			custom_effect_tooltip = PHI_philippine_army_dynamic_modifier_tt
			add_to_variable = { PHI_philippine_army_army_org_factor = 0.15 tooltip = army_org_factor_tt }
		}
	}


focus = {
		id = PHI_philippine_military_academy
		icon = GFX_focus_generic_military_academy


		prerequisite = { focus = PHI_philippine_scouts }	
		prerequisite = { focus = PHI_militarize_the_constabulary }	
		relative_position_id = PHI_philippine_scouts


		x = 2
		y = 1
	
		cost = 10

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			custom_effect_tooltip = PHI_philippine_army_dynamic_modifier_tt
			add_to_variable = { PHI_philippine_army_experience_gain_army_factor = 0.20 tooltip = experience_gain_army_factor_tt }
			add_to_variable = { PHI_philippine_army_max_planning_factor = 0.10 tooltip = max_planning_factor_tt }
			add_to_variable = { PHI_philippine_army_command_power_gain_mult = 0.1 tooltip = command_power_gain_mult_tt }

			custom_effect_tooltip = generic_skip_one_line_tt
			add_research_slot = 1
		}
		search_filters = { FOCUS_FILTER_ARMY_XP FOCUS_FILTER_RESEARCH }
	}





focus = {
		id = PHI_philippine_division
		icon = GFX_focus_PHI_philippine_division


		prerequisite = { focus = PHI_militarize_the_constabulary }	
		relative_position_id = PHI_militarize_the_constabulary


		x = 0
		y = 1
	
		cost = 10

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			custom_effect_tooltip = PHI_philippine_army_dynamic_modifier_tt
			add_to_variable = { PHI_philippine_army_industrial_capacity_factory = 0.10 tooltip = industrial_capacity_factory_tt }
			add_to_variable = { PHI_philippine_army_training_time_factor = -0.10 tooltip = training_time_factor_tt }
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}



focus = {
		id = PHI_10_year_training_plan
		icon = GFX_focus_PHI_10_year_training_plan


		prerequisite = { focus = PHI_philippine_army_orchestra }	
		prerequisite = { focus = PHI_philippine_military_academy }	
		prerequisite = { focus = PHI_philippine_division }	
		relative_position_id = PHI_philippine_military_academy


		x = 0
		y = 1
	
		cost = 10

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			custom_effect_tooltip = PHI_philippine_army_dynamic_modifier_tt
			add_to_variable = { PHI_philippine_army_experience_gain_army_factor = 0.20 tooltip = experience_gain_army_factor_tt }
			add_to_variable = { PHI_philippine_army_training_time_factor = -0.10 tooltip = training_time_factor_tt }
			add_to_variable = { PHI_philippine_army_conscription_factor = 0.25 tooltip = conscription_factor_tt }
			add_to_variable = { PHI_philippine_army_command_power_gain_mult = 0.1 tooltip = command_power_gain_mult_tt }
		}
		search_filters = { FOCUS_FILTER_ARMY_XP FOCUS_FILTER_MANPOWER }
	}



focus = {
		id = PHI_battalion_combat_teams
		icon = GFX_focus_PHI_battalion_combat_teams


		prerequisite = { focus = PHI_10_year_training_plan }	

		relative_position_id = PHI_10_year_training_plan


		x = -2
		y = 1
	
		cost = 10

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			custom_effect_tooltip = tech_effect|PHI_battalion_combat_teams
			hidden_effect = {
				set_technology = {
					PHI_battalion_combat_teams = 1
					popup = no
				}
			}
		}
	}



focus = {
		id = PHI_mandatory_conscription
		icon = GFX_focus_generic_manpower


		prerequisite = { focus = PHI_10_year_training_plan }	

		relative_position_id = PHI_10_year_training_plan


		x = 0
		y = 1
	
		cost = 10

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			custom_effect_tooltip = PHI_philippine_army_dynamic_modifier_tt
			add_to_variable = { PHI_philippine_army_conscription = 0.02 tooltip = conscription_tt }
		}
		search_filters = { FOCUS_FILTER_MANPOWER }
	}

focus = {
		id = PHI_self_reliance_defense
		icon = GFX_focus_generic_combined_arms

		prerequisite = { focus = PHI_10_year_training_plan }	
		relative_position_id = PHI_10_year_training_plan


		x = 2
		y = 1
	
		cost = 10

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			custom_effect_tooltip = available_chief_of_army
			show_ideas_tooltip = PHI_paulino_santos

			custom_effect_tooltip = generic_skip_one_line_tt
			
			random_owned_controlled_state = {
				limit = {
					is_core_of = PHI
					is_fully_controlled_by = PHI
					free_building_slots = {
						building = arms_factory
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = arms_factory
					level = 2
					instant_build = yes
				}	
			}

			custom_effect_tooltip = generic_skip_one_line_tt
			custom_effect_tooltip = PHI_philippine_army_dynamic_modifier_tt
			add_to_variable = { PHI_philippine_army_industrial_capacity_factory = 0.10 tooltip = industrial_capacity_factory_tt }
		}
		search_filters = { FOCUS_FILTER_MILITARY_CHARACTER FOCUS_FILTER_INDUSTRY }
	}


focus = {
		id = PHI_army_of_the_philippines
		icon = GFX_focus_PHI_army_of_the_philippines

		prerequisite = { focus = PHI_battalion_combat_teams }	
		prerequisite = { focus = PHI_mandatory_conscription }	
		prerequisite = { focus = PHI_self_reliance_defense }	

		relative_position_id = PHI_mandatory_conscription


		x = 0
		y = 1
	
		cost = 10

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			custom_effect_tooltip = PHI_philippine_army_dynamic_modifier_tt
			add_to_variable = { PHI_philippine_army_industrial_capacity_factory = 0.10 tooltip = industrial_capacity_factory_tt }
			add_to_variable = { PHI_philippine_army_conscription_factor = 0.10 tooltip = conscription_factor_tt }
		}
		search_filters = { FOCUS_FILTER_MANPOWER FOCUS_FILTER_INDUSTRY }
	}




##############################
###### Air sub branch ########
##############################


focus = {
		id = PHI_army_air_corps
		icon = GFX_focus_PHI_army_air_corps

		prerequisite = { focus = PHI_national_defense_act }	

		relative_position_id = PHI_national_defense_act


		x = 6
		y = 1
	
		cost = 10

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			add_tech_bonus = {
				name = PHI_army_air_corps
				bonus = 0.5
				uses = 2
				category = air_equipment
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			add_dynamic_modifier = { modifier = PHI_philippine_army_air_corps_dynamic_modifier }
		}
		search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_AIR_XP }
	}


focus = {
		id = PHI_pilot_training_programme
		icon = GFX_goal_generic_air_doctrine

		prerequisite = { focus = PHI_army_air_corps }	

		relative_position_id = PHI_army_air_corps


		x = -1
		y = 1
	
		cost = 10

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			air_experience = 25
			custom_effect_tooltip = generic_skip_one_line_tt
			custom_effect_tooltip = PHI_philippine_army_air_corps_dynamic_modifier_tt
			add_to_variable = { PHI_philippine_army_air_corps_air_mission_efficiency = 0.05 tooltip = air_mission_efficiency_tt }
			add_to_variable = { PHI_philippine_army_air_corps_experience_gain_air_factor = 0.05 tooltip = experience_gain_air_factor_tt }
		}
		search_filters = { FOCUS_FILTER_AIR_XP }
	}


focus = {
		id = PHI_off_shore_patrol
		icon = GFX_goal_generic_air_naval_bomber

		prerequisite = { focus = PHI_pilot_training_programme }	

		relative_position_id = PHI_pilot_training_programme


		x = -1
		y = 1
	
		cost = 10

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			custom_effect_tooltip = PHI_philippine_army_air_corps_dynamic_modifier_tt
			add_to_variable = { PHI_philippine_army_air_corps_air_nav_efficiency = 0.15 tooltip = air_nav_efficiency_tt }
			add_to_variable = { PHI_philippine_army_air_corps_air_range_factor = 0.10 tooltip = air_range_factor_tt }

			custom_effect_tooltip = generic_skip_one_line_tt

			add_tech_bonus = {
				name = PHI_off_shore_patrol
				bonus = 0.5
				uses = 2
				category = cat_air_bombs
				category = naval_bomber
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

focus = {
		id = PHI_expand_airbases
		icon = GFX_focus_generic_air_bases

		prerequisite = { focus = PHI_army_air_corps }	

		relative_position_id = PHI_army_air_corps


		x = 1
		y = 1
	
		cost = 10

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			random_owned_controlled_state = {
				limit = { 
					is_core_of = ROOT 
					free_building_slots = {
						building = air_base
						size > 0
					}
				}
				prioritize = { 1027 } 
				
				add_building_construction = {
					type = air_base
					level = 2
					instant_build = yes
				}
			}

			random_owned_controlled_state = {
				limit = { 
					is_core_of = ROOT
					free_building_slots = {
						building = air_base
						size > 0
					}
				}
				prioritize = { 627 } 
				
				add_building_construction = {
					type = air_base
					level = 2
					instant_build = yes
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			add_tech_bonus = {
				name = PHI_expand_airbases
				bonus = 0.5
				uses = 2
				category = air_equipment
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_INDUSTRY }
	}



focus = {
		id = PHI_develop_domestic_aircraft_industry
		icon = GFX_focus_generic_aircraft_production

		prerequisite = { focus = PHI_expand_airbases }	

		relative_position_id = PHI_expand_airbases


		x = 1
		y = 1
	
		cost = 10

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			random_owned_controlled_state = {
				limit = {
					is_core_of = PHI
					is_fully_controlled_by = PHI
					free_building_slots = {
						building = arms_factory
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = arms_factory
					level = 2
					instant_build = yes
				}	
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			if = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}
				if = {
					limit = {
						has_completed_focus = PHI_align_with_japan
						NOT = {
							has_completed_focus = PHI_declare_military_emergency
						}
					}
					every_military_industrial_organization = {
						limit = {
							is_military_industrial_organization = JAP_mitsubishi_organization
						}
						add_mio_size = 1
					}
				}
				else_if = {
					limit = {
						OR = {
							has_completed_focus = PHI_align_with_the_usa
							has_completed_focus = PHI_declare_military_emergency
						}
					}
					every_military_industrial_organization = {
						limit = {
							OR = {
								is_military_industrial_organization = USA_north_american_aviation_organization
								is_military_industrial_organization = USA_lockheed_organization
							}
						}
						add_mio_size = 1
					}
				}
				else = {
					effect_tooltip = {
						custom_effect_tooltip = PHI_if_align_with_japan_tt
						every_military_industrial_organization = {
							limit = {
								is_military_industrial_organization = JAP_mitsubishi_organization
							}
							add_mio_size = 1
						}
						custom_effect_tooltip = generic_skip_one_line_tt
						custom_effect_tooltip = PHI_if_align_with_the_usa_tt
						every_military_industrial_organization = {
							limit = {
								OR = {
									is_military_industrial_organization = USA_north_american_aviation_organization
									is_military_industrial_organization = USA_lockheed_organization
								}
							}
							add_mio_size = 1
						}
					}
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

focus = {
		id = PHI_philippine_air_force
		icon = GFX_focus_PHI_philippine_air_force

		prerequisite = { focus = PHI_off_shore_patrol }	
		prerequisite = { focus = PHI_develop_domestic_aircraft_industry }	

		relative_position_id = PHI_off_shore_patrol


		x = 2
		y = 1
	
		cost = 10

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			custom_effect_tooltip = PHI_philippine_army_air_corps_dynamic_modifier_tt
			add_to_variable = { PHI_philippine_army_air_corps_air_mission_efficiency = 0.05 tooltip = air_mission_efficiency_tt }
			add_to_variable = { PHI_philippine_army_air_corps_air_range_factor = 0.10 tooltip = air_range_factor_tt }
		}
	}



focus = {
		id = PHI_thats_not_an_island
		icon = GFX_focus_PHI_thats_not_an_island

		prerequisite = { focus = PHI_philippine_air_force }	

		relative_position_id = PHI_philippine_air_force


		x = 0
		y = 1
	
		cost = 10

		allow_branch = {
			has_country_flag = PHI_did_carrier_tech
		}

		available = {
			has_facility_specialization = specialization_air
			has_facility_specialization = specialization_naval
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			add_breakthrough_progress = {
				specialization = specialization_naval
				value = 0.5
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			if = {
				limit = {
					has_dlc = "Gotterdammerung"
				}
				if = {
					limit = {
						has_dlc = "Man the Guns"
					}
					add_ideas = habakkuk_carriers_ns_mtg
					custom_effect_tooltip = generic_skip_one_line_tt
					
					add_tech_bonus = {
						name = CAN_habakkuk_carrier
						bonus = 0.5
						uses = 1 
						category = pykrete_tech
					}
				}
				else = {
					add_ideas = habakkuk_carriers_ns
					custom_effect_tooltip = generic_skip_one_line_tt
				}

				add_tech_bonus = {
					name = CAN_habakkuk_carrier
					bonus = 1.0
					uses = 1
					category = cv_tech
				}
			}
			else = {
				add_tech_bonus = {
					name = CAN_habakkuk_carrier
					bonus = 1.0
					uses = 2
					category = cv_tech
				}
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}


##############################
###### Navy sub branch #######
##############################

focus = {
		id = PHI_offshore_patrol
		icon = GFX_goal_generic_navy_cruiser

		x = 53
		y = 1
	
		cost = 10

		available = {
		}

		bypass = {
		}

		ai_will_do = {
			base = 1

			modifier = {
				factor = 2
				date > 1937.1.1
			}

			modifier = {
				factor = 2
				date > 1939.1.1
			}
		}

		available_if_capitulated = no
	
		completion_reward = {
			random_owned_controlled_state = {
				limit = {
					is_core_of = PHI
					is_fully_controlled_by = PHI
					is_coastal = yes
					free_building_slots = {
						building = dockyard
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = dockyard
					level = 2
					instant_build = yes
				}	
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			custom_effect_tooltip = PHI_island_nation_dynamic_modifier_tt
			add_to_variable = { PHI_island_nation_industrial_capacity_dockyard = 0.05 tooltip = industrial_capacity_dockyard_tt }
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

focus = {
		id = PHI_marine_corps
		icon = GFX_focus_PHI_marine_corps

		prerequisite = { focus = PHI_offshore_patrol }	

		relative_position_id = PHI_offshore_patrol


		x = 2
		y = 1
	
		cost = 10

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			if = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}
				add_doctrine_cost_reduction = {
					name = PHI_marine_corps
					cost_reduction = 0.25
					uses = 1
					category = cat_marines_doctrine
				}
			}
			add_tech_bonus = {
				name = PHI_marine_corps
				bonus = 1
				uses = 1
				category = marine_tech
			}

			custom_effect_tooltip = generic_skip_one_line_tt
			custom_effect_tooltip = PHI_island_nation_dynamic_modifier_tt
			add_to_variable = { PHI_island_nation_special_forces_cap = 0.05 tooltip = special_forces_cap_tt }
			add_to_variable = { PHI_island_nation_amphibious_invasion = 0.10 tooltip = amphibious_invasion_tt }
			add_to_variable = { PHI_island_nation_naval_invasion_capacity = 10 tooltip = naval_invasion_capacity_tt }
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

focus = {
		id = PHI_cavite_naval_base
		icon = GFX_goal_generic_construct_naval_dockyard

		prerequisite = { focus = PHI_offshore_patrol }	

		relative_position_id = PHI_offshore_patrol


		x = -2
		y = 1
	
		cost = 10

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			random_owned_controlled_state = {
				limit = {
					is_core_of = PHI
					is_fully_controlled_by = PHI
					is_coastal = yes
					free_building_slots = {
						building = dockyard
						size > 1
						include_locked = yes
					}
				}
				prioritize = { 1027 } #Bataan 
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = dockyard
					level = 2
					instant_build = yes
				}	
			}

			custom_effect_tooltip = generic_skip_one_line_tt
			327 = {
				if = { ## If dou don't have a naval HQ, build one
					limit = {
						NOT = {
							327 = {
								naval_headquarters > 0
							}
						}
					}
					add_building_construction = {
						type = naval_headquarters
						level = 1
						instant_build = yes
						province = {
							id = 10265
						}
					}
				}
			}
			
			custom_effect_tooltip = generic_skip_one_line_tt
			custom_effect_tooltip = PHI_island_nation_dynamic_modifier_tt
			add_to_variable = { PHI_island_nation_industrial_capacity_dockyard = 0.05 tooltip = industrial_capacity_dockyard_tt }
			add_to_variable = { PHI_island_nation_repair_speed_factor = 0.10 tooltip = repair_speed_factor_tt }

			custom_effect_tooltip = generic_skip_one_line_tt
			mio:PHI_cavite_naval_base_organization = {
				add_mio_size = 1
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

focus = {
		id = PHI_pt_boat_development
		icon = GFX_focus_generic_navy_research_bonus

		prerequisite = { focus = PHI_offshore_patrol }	

		relative_position_id = PHI_offshore_patrol


		x = 0
		y = 1
	
		cost = 10

		available = {
			has_completed_focus = PHI_national_defense_act
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			add_tech_bonus = {
				name = PHI_pt_boat_development
				bonus = 1
				ahead_reduction = 1
				uses = 1
				category = mio_cat_tech_all_screen_ship_and_modules
			}

			custom_effect_tooltip = generic_skip_one_line_tt
			custom_effect_tooltip = PHI_pt_boat_development_tt
			custom_effect_tooltip = PHI_pt_boat_development_2_tt

			hidden_effect = { #If you change these values, be sure to update PHI_pt_boat_development_tt
				add_mastery_bonus = {
					bonus = 0.1
					days = 9999 #Remove when the modifier can take no timer
					name = PHI_pt_boat_development

					track = screens
				}
				add_mastery_bonus = {
					bonus = 0.1
					days = 9999 #Remove when the modifier can take no timer
					name = PHI_pt_boat_development

					sub_doctrine = patrol_boats
				}
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

focus = {
		id = PHI_mosquito_fleet
		icon = GFX_focus_PHI_mosquito_fleet

		prerequisite = { focus = PHI_pt_boat_development }	
		mutually_exclusive = { focus = PHI_devil_boats }	
		relative_position_id = PHI_pt_boat_development


		x = -1
		y = 1
	
		cost = 10

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			add_ideas = PHI_mosquito_fleet_ns
		}
	}

focus = {
		id = PHI_devil_boats
		icon = GFX_focus_PHI_devil_boats

		prerequisite = { focus = PHI_pt_boat_development }	
		mutually_exclusive = { focus = PHI_mosquito_fleet }	
		relative_position_id = PHI_pt_boat_development


		x = 1
		y = 1
	
		cost = 10

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			add_ideas = PHI_devil_boats_ns
		}
	}


focus = {
		id = PHI_fast_attack_craft
		icon = GFX_focus_generic_destroyer

		prerequisite = { focus = PHI_mosquito_fleet }	

		relative_position_id = PHI_mosquito_fleet


		x = -1
		y = 1
	
		cost = 10

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			custom_effect_tooltip = PHI_island_nation_dynamic_modifier_tt
			add_to_variable = { 
				PHI_island_nation_convoy_raiding_efficiency_factor = 0.05
				tooltip = convoy_raiding_efficiency_factor_tt
			}
			add_to_variable = { 
				PHI_island_nation_naval_light_gun_hit_chance_factor = 0.05
				tooltip = naval_light_gun_hit_chance_factor_tt
			}
			add_to_variable = { 
				PHI_island_nation_naval_torpedo_hit_chance_factor = 0.05
				tooltip = naval_torpedo_hit_chance_factor_tt
			}
			add_to_variable = { 
				PHI_island_nation_naval_torpedo_screen_penetration_factor = 0.05
				tooltip = naval_torpedo_screen_penetration_factor_tt
			}
		}
	}

focus = {
		id = PHI_coastal_defense_ships
		icon = GFX_focus_generic_coastal_fort

		prerequisite = { focus = PHI_devil_boats }	

		relative_position_id = PHI_devil_boats


		x = 1
		y = 1
	
		cost = 10

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			set_technology = { coastal_defense_ships = 1 popup = no }
			add_ideas = PHI_coastal_defense_ships_ns
		}
	}


focus = {
		id = PHI_philippine_naval_patrol
		icon = GFX_focus_PHI_philippine_naval_patrol

		prerequisite = { focus = PHI_fast_attack_craft focus = PHI_coastal_defense_ships }	

		relative_position_id = PHI_fast_attack_craft


		x = 2
		y = 1
	
		cost = 10

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			custom_effect_tooltip = PHI_island_nation_dynamic_modifier_tt
			add_to_variable = { PHI_island_nation_naval_coordination = 0.05 tooltip = naval_coordination_tt }
			add_to_variable = { PHI_island_nation_navy_org_factor = 0.10 tooltip = navy_org_factor_tt }
			add_to_variable = { PHI_island_nation_navy_max_range_factor = 0.15 tooltip = navy_max_range_factor_tt }
			add_to_variable = { PHI_island_nation_experience_gain_navy = 0.10 tooltip = experience_gain_navy_tt }
		}
	}


focus = {
		id = PHI_thalassocracy
		icon = GFX_focus_PHI_thalassocracy

		prerequisite = { focus = PHI_philippine_naval_patrol }	

		relative_position_id = PHI_philippine_naval_patrol


		x = 0
		y = 1
	
		cost = 10

		available = {
		}

		bypass = {
		}

		available_if_capitulated = no
	
		completion_reward = {
			random_owned_controlled_state = {
				limit = {
					is_core_of = PHI
					is_fully_controlled_by = PHI
					is_coastal = yes
					free_building_slots = {
						building = dockyard
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = dockyard
					level = 2
					instant_build = yes
				}	
			}
			random_owned_controlled_state = {
				limit = {
					is_core_of = PHI
					is_fully_controlled_by = PHI
					is_coastal = yes
					free_building_slots = {
						building = dockyard
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = dockyard
					level = 2
					instant_build = yes
				}	
			}
			random_owned_controlled_state = {
				limit = {
					is_core_of = PHI
					is_fully_controlled_by = PHI
					is_coastal = yes
					free_building_slots = {
						building = dockyard
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = dockyard
					level = 2
					instant_build = yes
				}	
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			custom_effect_tooltip = PHI_island_nation_dynamic_modifier_tt
			add_to_variable = { PHI_island_nation_naval_coordination = 0.10 tooltip = naval_coordination_tt }
			add_to_variable = { PHI_island_nation_industrial_capacity_dockyard = 0.10 tooltip = industrial_capacity_dockyard_tt }
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}



}	



