##################################
#       Philippine Events        #
##################################
# By Chiang Kai-Shrek, Suzuha, Verniy, Silentio, and Marc
# Based on work by PPsyrius
##################################

########################################
#####- Section 0: Namespaces - #########
########################################
add_namespace = PHI.political #Political Events
add_namespace = PHI.military #Military Events

###- Table of Contents -###

#- Section 1: Political Events -#

## Section 1a - Quezon's First Term (1936-1938)
## Section 1b - Quezon's Second Term (1938-1943+)
## Section 1c - Roxas's Presidency (1938-1943+)
## Section 1d - Aguinaldo's Presidency (1938-1943+)
## Section 1e - Recto's Presidency (1938-1943+)
## Section 1f - Evangelista's Presidency (1938-1943+)

#- Section 2: Military Events -#

########################################
####- Section 01: Political Events -####
########################################

###- Section 1a - Quezon's First Term (1936-1938) [PHI.political.000-PHI.political.199] -###

###Initial Black Monday Chain (000-019)
country_event = { #Black Monday Rocks the Philippines
	id = PHI.political.001
	title = PHI.political.001.t
	desc = PHI.political.001.d
	picture = GFX_report_event_PHI_manila_uprising

	is_triggered_only = yes #Triggered by EFFECT: fire_black_monday_events

	option = {
		name = PHI.political.001.a #We are up to the challenge.
		log = "[GetLogInfo]: event PHI.political.001 option PHI.political.001.a"
		if = {
			limit = {
				tag = PHI
			}
			add_ideas = PHI_black_monday_1
			add_political_power = -150
			hidden_effect = {
				country_event = { id = PHI.political.002 days = 7 }
			}
		}
	}

}

country_event = { #The Philippine Political Scene
	id = PHI.political.002
	title = PHI.political.002.t
	desc = PHI.political.002.d
	picture = GFX_report_event_PHI_manuel_quezon_writing

	is_triggered_only = yes #Triggered by EVENT PHI.political.001

	immediate = {
		hidden_effect = {
			country_event = { id = PHI.political.003 days = 7 }

			#This will set the ai to go down one of three strategies
			random_list = {
				50 = {
					#Will go moderate/try to stay in the middle
					set_country_flag = PHI_quezon_chooses_moderate_ai_plan_flag
				}
				25 = {
					#Will go conservative, result in a populist ending
					set_country_flag = PHI_quezon_chooses_conservative_ai_plan_flag
				}
				25 = {
					#Will go progressive, result in a elitist ending
					set_country_flag = PHI_quezon_chooses_progressive_ai_plan_flag
				}
			}
		}
	}

	option = {
		name = PHI.political.002.a #But can he hang on forever?
		log = "[GetLogInfo]: event PHI.political.002 option PHI.political.002.a"
		set_power_balance = {
			id = PHI_power_balance
			left_side = PHI_elitist_anger_side
			right_side = PHI_populist_anger_side
			set_value = 0.20
		}
		custom_effect_tooltip = PHI_bop_decisions_available_tt
	}
}

country_event = { #The Philippine Political Scene Pt2
	id = PHI.political.003
	title = PHI.political.003.t
	desc = PHI.political.003.d
	picture = GFX_report_event_PHI_philippine_women_sewing_flag

	is_triggered_only = yes #Triggered by EVENT PHI.political.001

	option = {
		name = PHI.political.003.a #In politics, it's all about who you know.
		log = "[GetLogInfo]: event PHI.political.003 option PHI.political.003.a"
		ai_chance = {
			base = 50
			modifier = {
				#Ai will be taught to take this focus when available if set on certain Quezon Strategies
				factor = 10
				PHI_ai_should_anger_populists_trigger = yes
			}
		}
		PHI_populist_small_effect = yes
	}

	option = {
		name = PHI.political.003.b #The future of the Philippines rests with the people.
		log = "[GetLogInfo]: event PHI.political.003 option PHI.political.003.b"
		ai_chance = {
			base = 50
			modifier = {
				#Ai will be taught to take this focus when available if set on certain Quezon Strategies
				factor = 10
				PHI_ai_should_anger_elitists_trigger = yes
			}
		}
		PHI_elitist_small_effect = yes
	}
}

country_event = { #The Elites are Angry
	id = PHI.political.004
	title = PHI.political.004.t
	desc = PHI.political.004.d
	picture = GFX_report_event_PHI_philippine_legislators

	is_triggered_only = yes #Triggered by BOP PHI.political.001
	fire_only_once = yes #You only get one warning

	option = {
		name = PHI.political.004.a #The President decides!
		log = "[GetLogInfo]: event PHI.political.004 option PHI.political.004.a"
		ai_chance = {
			base = 50
			modifier = {
				#Ai will be taught to take this focus when available if set on certain Quezon Strategies
				factor = 10
				PHI_ai_should_anger_elitists_trigger = yes
			}
		}
		add_stability = -0.20
		add_popularity = { ideology = market_liberal popularity = -0.10 }
		add_popularity = { ideology = authoritarian_democrat popularity = 0.10 }
		PHI_elitist_small_effect = yes
		custom_effect_tooltip = PHI_elitist_too_high_warning_tt
	}

	option = {
		name = PHI.political.004.b #Don't worry, Quezon has not forgotten the big people.
		log = "[GetLogInfo]: event PHI.political.004 option PHI.political.004.b"
		ai_chance = {
			base = 50
			modifier = {
				#Ai will be taught to take this focus when available if set on certain Quezon Strategies
				factor = 10
				PHI_ai_should_anger_populists_trigger = yes
			}
		}
		add_stability = -0.10
		add_political_power = -50
		PHI_populist_medium_effect = yes
		custom_effect_tooltip = PHI_elitist_too_high_warning_tt
	}
}

country_event = { #The Populists are Angry
	id = PHI.political.005
	title = PHI.political.005.t
	desc = PHI.political.005.d
	picture = GFX_report_event_PHI_hukbalahap_rebels

	is_triggered_only = yes #Triggered by BOP PHI.political.001
	fire_only_once = yes #You only get one warning

	option = {
		name = PHI.political.005.a #Our position is unassailable!
		log = "[GetLogInfo]: event PHI.political.005 option PHI.political.005.a"
		ai_chance = {
			base = 50
			modifier = {
				#Ai will be taught to take this focus when available if set on certain Quezon Strategies
				factor = 10
				PHI_ai_should_anger_populists_trigger = yes
			}
		}
		add_war_support = -0.20
		add_popularity = { ideology = market_liberal popularity = -0.10 }
		add_popularity = { ideology = syndicalist popularity = 0.033 }
		add_popularity = { ideology = social_liberal popularity = 0.033 }
		add_popularity = { ideology = authoritarian_democrat popularity = 0.033 }
		PHI_populist_small_effect = yes
		custom_effect_tooltip = PHI_populist_too_high_warning_tt
	}

	option = {
		name = PHI.political.005.b #Perhaps we should throw the masses a bone.
		log = "[GetLogInfo]: event PHI.political.005 option PHI.political.005.b"
		ai_chance = {
			base = 50
			modifier = {
				#Ai will be taught to take this focus when available if set on certain Quezon Strategies
				factor = 10
				PHI_ai_should_anger_elitists_trigger = yes
			}
		}
		add_war_support = -0.10
		add_political_power = -50
		PHI_elitist_medium_effect = yes
		custom_effect_tooltip = PHI_populist_too_high_warning_tt
	}
}

### American Civil War Chain (020-039)
country_event = { #The Declaration of the Republic
	id = PHI.political.020
	title = PHI.political.020.t
	desc = PHI.political.020.d
	picture = GFX_report_event_PHI_philippine_independence_protest

	fire_only_once = yes

	trigger = {
		tag = PHI
		has_global_flag = USA_civil_war_begun_flag
	}

	mean_time_to_happen = {
		days = 7
	}

	immediate = {
		hidden_effect = {
			country_event = { id = PHI.political.040 days = 0 } #The Fight for the Philippines (PHI Version)
			#Set in-game elections to every 4 years instead of 6
			set_politics = {
				ruling_party = market_liberal
				last_election = "1934.09.16"
				election_frequency = 48
				elections_allowed = yes
			}
		}
	}

	option = {
		name = PHI.political.020.a #These rifles and jeeps make small payment for occupation.
		log = "[GetLogInfo]: event PHI.political.020 option PHI.political.020.a"
		ai_chance = { base = 100 } #We want the ai to be as strong as possible for WW2
		overlord = {
			set_autonomy = {
				target = PHI
				autonomy_state = autonomy_free
			}
		}
		drop_cosmetic_tag = yes
		separate_peace_all_wars = yes
		add_equipment_to_stockpile = {
			type = infantry_equipment_1
			amount = 2500
			producer = USA
		}
		add_stability = -0.2
		reverse_add_opinion_modifier = {
			target = USA
			modifier = KR_disapproves_of_govt
		}
		PHI_add_IND_alignment_small_effect = yes
		PHI_sub_USA_alignment_small_effect = yes
	}

	option = {
		name = PHI.political.020.b #Have them stand down, but leave them their property.
		log = "[GetLogInfo]: event PHI.political.020 option PHI.political.020.b"
		ai_chance = { base = 0 }
		overlord = {
			set_autonomy = {
				target = PHI
				autonomy_state = autonomy_free
			}
		}
		drop_cosmetic_tag = yes
		separate_peace_all_wars = yes
		add_stability = -0.1
		reverse_add_opinion_modifier = {
			target = USA
			modifier = KR_pleased
		}
		PHI_add_USA_alignment_small_effect = yes
		PHI_sub_IND_alignment_small_effect = yes
	}
}

### Fight for the Philippines Events (040-059)
country_event = { #The Fight for the Philippines
	id = PHI.political.040
	title = PHI.political.040.t

	desc = {
		text = PHI.political.040.d.PHI
		trigger = { original_tag = PHI }
	}
	desc = {
		text = PHI.political.040.d.GER
		trigger = { original_tag = GEA }
	}
	desc = {
		text = PHI.political.040.d.JAP
		trigger = { original_tag = JAP }
	}
	desc = {
		text = PHI.political.040.d.USA
		trigger = {
			NOT = { original_tag = PHI }
			NOT = { original_tag = GEA }
			NOT = { original_tag = JAP }
		}
	}

	picture = GFX_report_event_PHI_manila_uprising2

	is_triggered_only = yes #Triggered in PHI by EVENT PHI.political.020 and also triggers itself in GEA and JAP

	immediate = {
		hidden_effect = {
			if = {
				limit = { original_tag = PHI }
				set_country_flag = PHI_fight_for_the_philippines_active_flag
				PHI_update_pie_chart = yes
				GEA = { country_event = { id = PHI.political.040 days = 1 } }
				JAP = { country_event = { id = PHI.political.040 days = 1 } }
			}
		}
	}

	option = {
		name = PHI.political.040.a #Favour the Germans.
		log = "[GetLogInfo]: event PHI.political.040 option PHI.political.040.a"
		trigger = {
			original_tag = PHI
		}
		ai_chance = { base = 40 }
		add_command_power = 50
		add_political_power = 50
		PHI_add_GEA_alignment_small_effect = yes
	}

	option = {
		name = PHI.political.040.b #Favour the Japanese.
		log = "[GetLogInfo]: event PHI.political.040 option PHI.political.040.b"
		trigger = {
			original_tag = PHI
		}
		ai_chance = { base = 40 }
		add_command_power = 50
		add_political_power = 50
		PHI_add_CPS_alignment_small_effect = yes
	}

	option = {
		name = PHI.political.040.c #Maintain a position of neutrality.
		log = "[GetLogInfo]: event PHI.political.040 option PHI.political.040.c"
		trigger = {
			original_tag = PHI
		}
		ai_chance = { base = 20 } #Ai generally should avoid getting gutted in WW2
		add_command_power = 50
		add_political_power = 50
		PHI_add_IND_alignment_small_effect = yes
	}

	option = {
		name = PHI.political.040.e #Bolster the German consulate in Manila.
		log = "[GetLogInfo]: event PHI.political.040 option PHI.political.040.e"
		trigger = {
			original_tag = GEA
		}
		ai_chance = { base = 50 } #Removed German bias for now - was 150.
		add_political_power = -15
		PHI_add_GEA_alignment_small_effect = yes
	}

	option = {
		name = PHI.political.040.f #Bolster the Japanese consulate in Manila.
		log = "[GetLogInfo]: event PHI.political.040 option PHI.political.040.f"
		trigger = {
			original_tag = JAP
		}
		ai_chance = { base = 50 }
		add_political_power = -15
		PHI_add_CPS_alignment_small_effect = yes
	}

	option = {
		name = PHI.political.040.g #Tell them that the Americans are back!
		log = "[GetLogInfo]: event PHI.political.040 option PHI.political.040.g"
		trigger = {
			NOT = { original_tag = PHI }
			NOT = { original_tag = GEA }
			NOT = { original_tag = JAP }
		}
		ai_chance = { base = 25 }
		add_political_power = -15
		PHI_add_USA_alignment_small_effect = yes
	}

	option = {
		name = PHI.political.040.h #This isn't worth our attention right now.
		log = "[GetLogInfo]: event PHI.political.040 option PHI.political.040.h"
		trigger = {
			NOT = { tag = PHI }
		}
		ai_chance = { base = 50 }
	}
}

country_event = { #German economic aid package to the Philippines
	id = PHI.political.050
	title = PHI.political.050.t
	desc = PHI.political.050.d
	is_triggered_only = yes

	picture = GFX_report_event_PHI_benguet_gold_miners

	option = {
		log = "[GetLogInfo]: event PHI.political.050 option PHI.political.050.a"
		name = PHI.political.050.a #We'll take all the help we can get!
		ai_chance = { base = 100 }
		if = {
			limit = { has_idea = PHI_foreign_industrial_support_idea }
			modify_timed_idea = {
				idea = PHI_foreign_industrial_support_idea
				days = 365
			}
		}
		else = {
			add_timed_idea = {
				idea = PHI_foreign_industrial_support_idea
				days = 365
			}
		}
		PHI_add_GEA_alignment_medium_effect = yes
		hidden_effect = {
			GEA = {
				country_event = { id = PHI.political.053 days = 1 }
			}
		}
	}

	option = {
		log = "[GetLogInfo]: event PHI.political.050 option PHI.political.050.b"
		name = PHI.political.050.b #No thank you.

		ai_chance = { base = 0 } #Don't turn down a free lunch
		set_country_flag = PHI_reject_german_economic_aid
		hidden_effect = {
			GEA = {
				country_event = { id = PHI.political.054 days = 1 }
			}
		}
	}
}

country_event = { #American economic aid package to the Philippines
	id = PHI.political.051
	title = PHI.political.051.t
	desc = PHI.political.051.d
	is_triggered_only = yes
	picture = GFX_report_event_PHI_benguet_gold_miners

	option = {
		log = "[GetLogInfo]: event PHI.political.051 option PHI.political.051.a"
		name = PHI.political.051.a #We'll take all the help we can get!
		ai_chance = { base = 100 }
		if = {
			limit = { has_idea = PHI_foreign_industrial_support_idea }
			modify_timed_idea = {
				idea = PHI_foreign_industrial_support_idea
				days = 365
			}
		}
		else = {
			add_timed_idea = {
				idea = PHI_foreign_industrial_support_idea
				days = 365
			}
		}
		PHI_add_USA_alignment_medium_effect = yes
		hidden_effect = {
			USA = {
				country_event = { id = PHI.political.053 days = 1 }
			}
		}
	}

	option = {
		log = "[GetLogInfo]: event PHI.political.051 option PHI.political.051.b"
		name = PHI.political.051.b #No thank you.
		ai_chance = { base = 0 } #Don't turn down a free lunch
		set_country_flag = PHI_reject_american_economic_aid
		hidden_effect = {
			USA = {
				country_event = { id = PHI.political.054 days = 1 }
			}
		}
	}
}

country_event = { #Japanese economic aid package to the Philippines
	id = PHI.political.052
	title = PHI.political.052.t
	desc = PHI.political.052.d
	is_triggered_only = yes
	picture = GFX_report_event_PHI_benguet_gold_miners

	option = {
		log = "[GetLogInfo]: event PHI.political.052 option PHI.political.052.a"
		name = PHI.political.052.a #We'll take all the help we can get!
		ai_chance = { base = 100 }
		if = {
			limit = { has_idea = PHI_foreign_industrial_support_idea }
			modify_timed_idea = {
				idea = PHI_foreign_industrial_support_idea
				days = 365
			}
		}
		else = {
			add_timed_idea = {
				idea = PHI_foreign_industrial_support_idea
				days = 365
			}
		}
		PHI_add_CPS_alignment_medium_effect = yes
		hidden_effect = {
			JAP = {
				country_event = { id = PHI.political.053 days = 1 }
			}
		}
	}

	option = {
		log = "[GetLogInfo]: event PHI.political.052 option PHI.political.052.b"
		name = PHI.political.052.b #No thank you.
		ai_chance = { base = 0 } #Don't turn down a free lunch
		set_country_flag = PHI_reject_japanese_economic_aid
		hidden_effect = {
			JAP = {
				country_event = { id = PHI.political.054 days = 1 }
			}
		}
	}
}

country_event = { #The Philippines Accepts Our Economic Support
	id = PHI.political.053
	title = PHI.political.053.t
	desc = PHI.political.053.d
	is_triggered_only = yes
	picture = GFX_report_event_PHI_benguet_gold_miners

	option = {
		log = "[GetLogInfo]: event PHI.political.053 option PHI.political.053.a"
		name = PHI.political.053.a #Wonderful News!
	}
}

country_event = { #The Philippines Declines Our Economic Support
	id = PHI.political.054
	title = PHI.political.054.t
	desc = PHI.political.054.d
	is_triggered_only = yes
	picture = GFX_report_event_PHI_benguet_gold_miners

	option = {
		log = "[GetLogInfo]: event PHI.political.054 option PHI.political.054.a"
		name = PHI.political.054.a #Unfortunate.
	}
}

country_event = { #The Germans Depart From Manila
	id = PHI.political.045
	title = PHI.political.045.t
	desc = {
		text = PHI.political.045.d.GEA_invaded
		trigger = {
			PHI = { has_war_with = GEA }
		}
	}
	desc = {
		text = PHI.political.045.d.GEA_dead
		trigger = {
			PHI = { NOT = { has_war_with = GEA } }
		}
	}
	picture = GFX_report_event_GEA_falkenhausen

	is_triggered_only = yes #Triggered in PHI by on_actions if GEA attacks PHI or GEA has lost Singapore

	option = {
		name = PHI.political.045.a #They shall bother us no more.
		log = "[GetLogInfo]: event PHI.political.045 option PHI.political.045.a"
		trigger = {
			tag = PHI
		}
		set_variable = { var = PHI_GEA_alignment_var value = 0 }
		custom_effect_tooltip = PHI_GEA_disqualified_tt
	}

	option = {
		name = PHI.political.045.b #We shall return some day...
		log = "[GetLogInfo]: event PHI.political.045 option PHI.political.045.b"
		trigger = {
			NOT = { tag = PHI }
		}
		custom_effect_tooltip = PHI_GEA_disqualified_tt
	}
}

country_event = { #The Japanese Depart From Manila
	id = PHI.political.046
	title = PHI.political.046.t
	desc = {
		text = PHI.political.046.d.JAP_invaded
		trigger = {
			PHI = { has_war_with = JAP }
		}
	}
	desc = {
		text = PHI.political.046.d.JAP_dead
		trigger = {
			PHI = { NOT = { has_war_with = JAP } }
		}
	}
	picture = GFX_report_event_JAP_officer_saluting

	is_triggered_only = yes #Triggered in PHI by on_actions if JAP attacks PHI or JAP has lost Taiwan

	option = {
		name = PHI.political.046.a #They shall bother us no more.
		log = "[GetLogInfo]: event PHI.political.046 option PHI.political.046.a"
		set_variable = { var = PHI_CPS_alignment_var value = 0 }
		custom_effect_tooltip = PHI_CPS_disqualified_tt
	}

	option = {
		name = PHI.political.045.b #We shall return some day...
		log = "[GetLogInfo]: event PHI.political.046 option PHI.political.045.b"
		trigger = {
			NOT = { tag = PHI }
		}
		custom_effect_tooltip = PHI_CPS_disqualified_tt
	}
}

###Neutrality Alignment (070-089)

country_event = { #The Philippines Entrenches its Neutrality (PHI Version)
	id = PHI.political.070
	title = PHI.political.070.t
	desc = PHI.political.070.d
	picture = GFX_report_event_PHI_philippine_soldiers_with_knives

	is_triggered_only = yes #Triggered by effect PHI_1938_election_outcome_effect

	option = {
		name = PHI.political.070.a #For now, we keep our options open and hope for the best.
		log = "[GetLogInfo]: event PHI.political.070 option PHI.political.070.a"
		activate_targeted_decision = { target = JAP decision = PHI_join_faction }
		activate_targeted_decision = { target = GER decision = PHI_join_faction }
		activate_targeted_decision = { target = ENT decision = PHI_join_faction }
		activate_targeted_decision = { target = USA decision = PHI_join_faction }
		activate_targeted_decision = { target = CSA decision = PHI_join_faction }
		activate_targeted_decision = { target = TEX decision = PHI_join_faction }
		activate_targeted_decision = { target = CAL decision = PHI_join_faction }
		activate_targeted_decision = { target = NEE decision = PHI_join_faction }
		activate_targeted_decision = { target = COR decision = PHI_join_faction }
		log = "KR_Event_Logging;PHI ForPol - Independence, Other"
		#Options to join INT, BHC, and CHI's factions are handled in their respective decisions.
	}
}

news_event = {
	id = PHI.political.071 #The Philippines Entrenches its Neutrality (World News)
	immediate = { log = "[GetLogInfo]: event PHI.political.071" }
	title = PHI.political.071.t
	desc = PHI.political.071.d
	picture = GFX_news_event_PHI_independence

	is_triggered_only = yes
	fire_for_sender = no
	major = yes

	trigger = {
		wants_world_news = yes
	}

	show_major = {
		regional_asia_news = yes
	}

	option = {
		name = PHI.political.071.a #Do they really think they can survive on their own?
	}
}

country_event = { #[FROM.Capital.GetCapitalVictoryPointName] Forces Us Into Neutrality
	id = PHI.political.072
	title = PHI.political.072.t
	desc = PHI.political.072.d
	picture = GFX_report_event_PHI_philippine_scouts

	is_triggered_only = yes #Triggered by EVENTS PHI.political.090 PHI.political.110 PHI.political.130

	option = {
		name = PHI.political.072.a #Then so be it.
		log = "[GetLogInfo]: event PHI.political.072 option PHI.political.072.a"
		add_war_support = -0.05 #Punished for losing minigame and not even getting an alliance - will be handicapped in terms of joining a faction.
		PHI = { country_event = { id = PHI.political.070 days = 3 } } #The Philippines Entrenches its Neutrality (PHI Version)
	}
}

###Reichspakt Alignment (090-109)
country_event = { #Our Triumph in Manila (GER Edition)
	id = PHI.political.090
	title = PHI.political.090.t
	desc = PHI.political.090.d
	picture = GFX_report_event_GEA_carrier

	is_triggered_only = yes #Triggered by effect PHI_1938_election_outcome_effect

	immediate = {
		hidden_effect = { GEA = { country_event = { id = PHI.political.093 days = 14 } } } #Our Triumph in Manila (GEA) Edition
	}

	option = {
		name = PHI.political.090.a #With these treaties we will bind them to us.
		log = "[GetLogInfo]: event PHI.political.090 option PHI.political.090.a"
		ai_chance = { base = 100 }
		PHI = { country_event = PHI.political.091 } #The Philippines Joins the Reichspakt (PHI Version)
	}

	option = {
		name = PHI.political.090.b #A neutral Philippines serves our interests best.
		log = "[GetLogInfo]: event PHI.political.090 option PHI.political.090.b"
		ai_chance = { base = 0 }
		PHI = { country_event = PHI.political.072 } #[FROM.Capital.GetCapitalVictoryPointName] Forces Us Into Neutrality
	}
}

country_event = { #The Philippines Joins the Reichspakt (PHI Version)
	id = PHI.political.091
	title = PHI.political.091.t
	desc = PHI.political.091.d
	picture = GFX_report_event_GEA_carrier

	is_triggered_only = yes #Triggered by EVENT PHI.political.091.a

	immediate = {
		hidden_effect = { news_event = PHI.political.092 } #The Philippines Joins the Reichspakt (World News)
	}

	option = {
		name = PHI.political.091.a #Berlin is our only hope against the Japanese menace.
		log = "[GetLogInfo]: event PHI.political.091 option PHI.political.091.a"
		GER = { add_to_faction = PHI }
		add_named_threat = {
			threat = -1 #Goes down because Germans want lower tensions
			name = PHI_aligned_with_GEA_threat_tt
		}
		set_country_flag = PHI_GER_won_fight_for_philippines_flag
		log = "KR_Event_Logging;PHI ForPol - Germans, Other"
	}
}

news_event = {
	id = PHI.political.092 #The Philippines Joins the Reichspakt (World News)
	immediate = { log = "[GetLogInfo]: event PHI.political.092" }
	title = PHI.political.092.t
	desc = PHI.political.092.d
	picture = GFX_news_event_PHI_manila_uprising2

	is_triggered_only = yes
	fire_for_sender = no
	major = yes

	trigger = {
		wants_world_news = yes
	}

	show_major = {
		regional_asia_news = yes
	}

	option = {
		name = PHI.political.092.a #The Tides Shift Towards Singapore
		effect_tooltip = {
			add_named_threat = {
				threat = -1 #Goes down because Germans want lower tensions
				name = PHI_aligned_with_GEA_threat_tt
			}
		}
	}
}

country_event = { #Our Triumph in Manila (GEA Edition)
	id = PHI.political.093
	title = PHI.political.093.t
	desc = PHI.political.093.d
	picture = GFX_report_event_GEA_carrier

	is_triggered_only = yes #Triggered by EVENT PHI.political.090

	option = {
		name = PHI.political.093.a #We have done our duty well.
		log = "[GetLogInfo]: event PHI.political.093 option PHI.political.093.a"
	}
}

###Sphere Alignment (110-129)
country_event = { #Our Triumph in Manila (JAP Edition)
	id = PHI.political.110
	title = PHI.political.110.t
	desc = PHI.political.110.d
	picture = GFX_report_event_JAP_battleship_kongo

	is_triggered_only = yes #Triggered by effect PHI_1938_election_outcome_effect

	option = {
		name = PHI.political.110.a #With these treaties we will bind them to us.
		log = "[GetLogInfo]: event PHI.political.110 option PHI.political.110.a"
		ai_chance = { base = 100 }
		PHI = { country_event = PHI.political.111 } #The Philippines Joins the Sphere (PHI Version)
	}

	option = {
		name = PHI.political.110.b #A neutral Philippines serves our interests best.
		log = "[GetLogInfo]: event PHI.political.110 option PHI.political.110.b"
		ai_chance = { base = 0 }
		PHI = { country_event = PHI.political.072 } #[FROM.Capital.GetCapitalVictoryPointName] Forces Us Into Neutrality
	}
}

country_event = { #The Philippines Joins the Sphere (PHI Version)
	id = PHI.political.111
	title = PHI.political.111.t
	desc = PHI.political.111.d
	picture = GFX_report_event_JAP_battleship_kongo

	is_triggered_only = yes #Triggered by effect PHI_1938_election_outcome_effect

	immediate = {
		hidden_effect = { news_event = PHI.political.112 } #The Philippines Joins the Sphere (World News)
	}

	option = {
		name = PHI.political.111.a #Tokyo will bring peace and prosperity to Asia.
		log = "[GetLogInfo]: event PHI.political.111 option PHI.political.111.a"
		JAP = { add_to_faction = PHI }
		add_named_threat = {
			threat = 1
			name = PHI_aligned_with_CPS_threat_tt
		}
		set_country_flag = PHI_JAP_won_fight_for_philippines_flag
		log = "KR_Event_Logging;PHI ForPol - Japanese, Other"
	}
}

news_event = {
	id = PHI.political.112 #The Philippines Joins the Sphere (World News)
	immediate = { log = "[GetLogInfo]: event PHI.political.112" }
	title = PHI.political.112.t
	desc = PHI.political.112.d
	picture = GFX_news_event_PHI_manila_uprising2

	is_triggered_only = yes
	fire_for_sender = no
	major = yes

	trigger = {
		wants_world_news = yes
	}

	show_major = {
		OR = {
			regional_asia_news = yes
			has_socialist_government = yes
		}
	}

	option = {
		name = PHI.political.112.a #The Tides Shift Towards Tokyo
		effect_tooltip = {
			add_named_threat = {
				threat = 1
				name = PHI_aligned_with_CPS_threat_tt
			}
		}
	}
}

###American Alignment (130-149)
country_event = { #Our Triumph in Manila (USA Edition)
	id = PHI.political.130
	title = PHI.political.130.t
	desc = PHI.political.130.d
	picture = GFX_report_event_PHI_philippine_and_us_army_forces

	is_triggered_only = yes #Triggered by effect PHI_1938_election_outcome_effect

	option = {
		name = PHI.political.130.a #With these treaties we will bind them to us.
		log = "[GetLogInfo]: event PHI.political.130 option PHI.political.130.a"
		ai_chance = { base = 100 }
		PHI = { country_event = PHI.political.131 } #The Philippines Realigns with America (PHI Version)
	}

	option = {
		name = PHI.political.130.b #A neutral Philippines serves our interests best.
		log = "[GetLogInfo]: event PHI.political.130 option PHI.political.130.b"
		ai_chance = { base = 0 }
		PHI = { country_event = PHI.political.072 } #[FROM.Capital.GetCapitalVictoryPointName] Forces Us Into Neutrality
	}
}

country_event = { #The Philippines Realigns with America (PHI Version)
	id = PHI.political.131
	title = PHI.political.131.t
	desc = PHI.political.131.d
	picture = GFX_report_event_PHI_philippine_and_us_army_forces

	is_triggered_only = yes #Triggered by effect PHI_1938_election_outcome_effect

	immediate = {
		hidden_effect = { news_event = PHI.political.132 } #The Philippines Realigns with America (World News)
	}

	option = {
		name = PHI.political.131.a #Washington returns as our protector.
		log = "[GetLogInfo]: event PHI.political.131 option PHI.political.131.a"
		every_country = {
			limit = {
				is_american_tag = yes
				is_subject = no
			}
			diplomatic_relation = {
				country = PHI
				relation = non_aggression_pact
			}
			give_military_access = PHI
			give_guarantee = PHI
			PHI = {
				give_guarantee = PREV
				give_military_access = PREV
				activate_targeted_decision = { target = PREV decision = PHI_join_faction }
				set_country_flag = PHI_USA_won_fight_for_philippines_flag
				log = "KR_Event_Logging;PHI ForPol - Americans, Other"
			}
		}
	}
}

news_event = {
	id = PHI.political.132 #The Philippines Realigns with America (World News)
	immediate = { log = "[GetLogInfo]: event PHI.political.132" }
	title = PHI.political.132.t
	desc = PHI.political.132.d
	picture = GFX_news_event_PHI_independence

	is_triggered_only = yes
	fire_for_sender = no
	major = yes

	trigger = {
		wants_world_news = yes
	}

	show_major = {
		regional_asia_news = yes
	}

	option = {
		name = PHI.political.132.a #A new partnership? Or a return to servitude?
	}
}

### 1938 Elections Events (150-199)
country_event = { #The 1938 Campaign Season Opens
	id = PHI.political.150
	title = PHI.political.150.t
	desc = PHI.political.150.d
	picture = GFX_report_event_PHI_manuel_quezon_speech

	is_triggered_only = yes #Triggered by On Start Up

	immediate = {
		hidden_effect = {
			activate_mission = PHI_election_in_180_days_mission_timer

			#Loop in JAP, GEA, and USA if they have a winner.
			JAP = { country_event = PHI.political.151 }
			GEA = { country_event = PHI.political.151 }
			if = {
				limit = { has_global_flag = USA_civil_war_over_flag }
				every_country = {
					limit = { is_american_tag = yes }
					country_event = PHI.political.151 #The 1938 Philippine Elections Approaches
				}
			}
		}
	}

	option = {
		name = PHI.political.150.a #Order and expertise will deliver results!
		log = "[GetLogInfo]: event PHI.political.150 option PHI.political.150.a"
		ai_chance = {
			base = 40
			modifier = {
				#Ai will be taught to take this focus when available if set on certain Quezon Strategies
				factor = 10
				PHI_ai_should_anger_populists_trigger = yes
			}
		}
		PHI_populist_medium_effect = yes
	}

	option = {
		name = PHI.political.150.b #Progress and fraternity lift up the masses!
		log = "[GetLogInfo]: event PHI.political.150 option PHI.political.150.b"
		ai_chance = {
			base = 40
			modifier = {
				#Ai will be taught to take this focus when available if set on certain Quezon Strategies
				factor = 10
				PHI_ai_should_anger_elitists_trigger = yes
			}
		}
		PHI_elitist_medium_effect = yes
	}

	option = {
		name = PHI.political.150.c #As one nation we will protect our independence.
		log = "[GetLogInfo]: event PHI.political.150 option PHI.political.150.c"
		ai_chance = { base = 20 }
		PHI_add_IND_alignment_medium_effect = yes
	}
}

country_event = { #The 1938 Philippine Elections Approaches
	id = PHI.political.151
	title = PHI.political.151.t
	desc = PHI.political.151.d
	picture = GFX_report_event_PHI_manuel_quezon_speech

	is_triggered_only = yes #Triggered by PHI.political.150

	immediate = {
		hidden_effect = {
			activate_mission = PHI_election_in_180_days_dummy_mission_timer
			set_temp_variable = { PHI_election_timer_temp_var = PHI.days_mission_timeout@PHI_election_in_180_days_mission_timer }
			add_days_mission_timeout = {
				mission = PHI_election_in_180_days_dummy_mission_timer
				days = PHI_election_timer_temp_var
			}
		}
	}

	option = {
		name = PHI.political.151.a #We must step up our efforts!
		log = "[GetLogInfo]: event PHI.political.151 option PHI.political.151.a"
		ai_chance = {
			base = 50
			#Readded German bias for now
			modifier = {
				factor = 1.5
				tag = GEA
			}
		}
		add_political_power = -40
		if = {
			limit = { tag = JAP }
			PHI_add_CPS_alignment_medium_effect = yes
		}
		else_if = {
			limit = { tag = GEA }
			PHI_add_GEA_alignment_medium_effect = yes
		}
		else = {
			PHI_add_USA_alignment_medium_effect = yes
		}
	}

	option = {
		name = PHI.political.151.b #Noted.
		log = "[GetLogInfo]: event PHI.political.151 option PHI.political.151.b"
		ai_chance = { base = 50 }
		add_political_power = 10
	}
}

###- Section 1b - Quezon's Second Term (1938-1943+) [PHI.political.200-PHI.political.299] -###
country_event = { #President Quezon Cruises to Reelection
	id = PHI.political.200
	title = PHI.political.200.t
	desc = PHI.political.200.d
	picture = GFX_report_event_PHI_manuel_quezon_and_sergio_osmena

	is_triggered_only = yes #Triggered by effect PHI_1938_election_outcome_effect

	option = {
		name = PHI.political.200.a #Congratulations President Quezon
		log = "[GetLogInfo]: event PHI.political.200 option PHI.political.200.a"
		add_popularity = {
			ideology = market_liberal
			popularity = 0.10
		}
		set_temp_variable = { coalition_partner_var = token:social_conservative }
		add_to_coalition = yes
		set_politics = {
			ruling_party = market_liberal
			elections_allowed = yes
			election_frequency = 48
		}
		hidden_effect = {
			set_party_name = {
				ideology = market_liberal
				long_name = PHI_market_liberal_party_long
				name = PHI_market_liberal_party
			}
			country_event = { id = PHI.political.201 days = 1460 } #The 1943 Presidential Elections

			#Remove BOP and Foreign Influence Mechanic
			PHI_cleanup_elections_mechanic_effect = yes

			log = "KR_Event_Logging;PHI Path - Quezon"
		}
	}
}

country_event = { #The 1943 Presidential Elections
	id = PHI.political.201
	title = PHI.political.201.t
	desc = PHI.political.201.d
	picture = GFX_report_event_PHI_manuel_quezon_and_sergio_osmena

	is_triggered_only = yes #Triggered by EVENT PHI.political.200

	option = {
		name = PHI.political.201.a #Congratulations President Osmena
		log = "[GetLogInfo]: event PHI.political.201 option PHI.political.201.a"
		set_temp_variable = { coalition_partner_var = token:social_conservative }
		add_to_coalition = yes
		set_politics = {
			ruling_party = market_liberal
			elections_allowed = yes
			election_frequency = 48
		}
		hidden_effect = {
			set_party_name = {
				ideology = market_liberal
				long_name = PHI_market_liberal_party_long
				name = PHI_market_liberal_party
			}
		}
	}
}

###- Section 1c - Roxas's Presidency (1938-1943+) [PHI.political.300-PHI.political.399] -###
country_event = { #Roxas and the Elite reassert Control
	id = PHI.political.300
	title = PHI.political.300.t
	desc = PHI.political.300.d
	picture = GFX_report_event_PHI_manuel_roxas_and_elpidio_quirino

	is_triggered_only = yes #Triggered by effect PHI_1938_election_outcome_effect

	option = {
		name = PHI.political.300.a #Congratulations President Roxas
		log = "[GetLogInfo]: event PHI.political.300 option PHI.political.300.a"
		add_popularity = {
			ideology = authoritarian_democrat
			popularity = 0.10
		}
		create_country_leader = {
			name = "Manuel Roxas"
			picture = "gfx/leaders/PHI/Portrait_Philippines_Manuel_Roxas.png"
			expire = "1946.1.1"
			ideology = oligarchy_subtype
		}
		set_temp_variable = { coalition_partner_var = token:market_liberal }
		add_to_coalition = yes
		set_temp_variable = { coalition_partner_var = token:social_conservative }
		add_to_coalition = yes
		set_politics = {
			ruling_party = authoritarian_democrat
			elections_allowed = yes
			election_frequency = 48
		}
		hidden_effect = {
			set_party_name = {
				ideology = authoritarian_democrat
				long_name = PHI_authoritarian_democrat_party_roxas_long
				name = PHI_authoritarian_democrat_party_roxas
			}
			#Remove BOP and Foreign Influence Mechanic
			PHI_cleanup_elections_mechanic_effect = yes

			log = "KR_Event_Logging;PHI Path - Roxas"
		}
	}
}

###- Section 1d - Aguinaldo's Presidency (1938-1943+) [PHI.political.400-PHI.political.499] -###
country_event = { #Aguinaldo Upsets the Establishment
	id = PHI.political.400
	title = PHI.political.400.t
	desc = PHI.political.400.d
	picture = GFX_report_event_PHI_emilio_aguinaldo

	is_triggered_only = yes #Triggered by effect PHI_1938_election_outcome_effect

	option = {
		name = PHI.political.400.a #Congratulations President Aguinaldo
		log = "[GetLogInfo]: event PHI.political.400 option PHI.political.400.a"
		add_popularity = {
			ideology = authoritarian_democrat
			popularity = 0.10
		}
		set_politics = {
			ruling_party = authoritarian_democrat
			elections_allowed = yes
			election_frequency = 48
		}
		hidden_effect = {
			set_party_name = {
				ideology = authoritarian_democrat
				long_name = PHI_authoritarian_democrat_party_long
				name = PHI_authoritarian_democrat_party
			}
			#Remove BOP and Foreign Influence Mechanic
			PHI_cleanup_elections_mechanic_effect = yes

			log = "KR_Event_Logging;PHI Path - Aguinaldo"
		}
	}
}

###- Section 1e - Recto's Presidency (1938-1943+) [PHI.political.500-PHI.political.599] -###
country_event = { #Recto Rallies Populist Forces
	id = PHI.political.500
	title = PHI.political.500.t
	desc = PHI.political.500.d
	picture = GFX_report_event_PHI_claro_recto

	is_triggered_only = yes #Triggered by effect PHI_1938_election_outcome_effect

	option = {
		name = PHI.political.500.a #Congratulations President Recto
		log = "[GetLogInfo]: event PHI.political.500 option PHI.political.500.a"
		add_popularity = {
			ideology = social_liberal
			popularity = 0.10
		}
		set_politics = {
			ruling_party = social_liberal
			elections_allowed = yes
			election_frequency = 48
		}
		hidden_effect = {
			set_party_name = {
				ideology = social_liberal
				long_name = PHI_social_liberal_party_long
				name = PHI_social_liberal_party
			}
			#Remove BOP and Foreign Influence Mechanic
			PHI_cleanup_elections_mechanic_effect = yes

			log = "KR_Event_Logging;PHI Path - Recto"
		}
	}
}

###- Section 1f - Evangelista's Presidency (1938-1943+) [PHI.political.600-PHI.political.699] -###
country_event = { #Evangelista Leads a Socialist Revolution
	id = PHI.political.600
	title = PHI.political.600.t
	desc = PHI.political.600.d
	picture = GFX_report_event_PHI_crisanto_evangelista

	is_triggered_only = yes #Triggered by effect PHI_1938_election_outcome_effect

	option = {
		name = PHI.political.600.a #Proletarians of the Philippines, united.
		log = "[GetLogInfo]: event PHI.political.600 option PHI.political.600.a"
		add_popularity = {
			ideology = syndicalist
			popularity = 0.10
		}
		set_politics = {
			ruling_party = syndicalist
			elections_allowed = yes
			election_frequency = 48
		}
		hidden_effect = {
			set_party_name = {
				ideology = syndicalist
				long_name = PHI_syndicalist_party_long
				name = PHI_syndicalist_party
			}
			#Remove BOP and Foreign Influence Mechanic
			PHI_cleanup_elections_mechanic_effect = yes

			log = "KR_Event_Logging;PHI Path - Evangelista"
			drop_cosmetic_tag = yes
		}
	}
}

########################################
####- Section 02: Military Events -#####
########################################
country_event = { #Increase Military Aid Procurement
	id = PHI.military.001
	title = PHI.military.001.t
	desc = PHI.military.001.d
	picture = GFX_report_event_PHI_philippine_constabulary

	is_triggered_only = yes #Triggered by EFFECT: fire_black_monday_events

	option = { #germany
		name = PHI.military.001.a
		log = "[GetLogInfo]: event PHI.military.001 option PHI.military.001.a"
		trigger = {
			GER = {
				exists = yes
				NOT = { has_war_with = ROOT }
				both_socialist_or_both_not_socialist = yes
				is_major = yes
				is_subject = no
				has_capitulated = no
			}
		}
		ai_chance = { base = 33 }
		add_tech_bonus = {
			name = PHI.military.001.t
			bonus = 1
			uses = 1
			category = support_tech
		}
	}

	option = { #japan
		name = PHI.military.001.b
		log = "[GetLogInfo]: event PHI.military.001 option PHI.military.001.b"
		trigger = {
			JAP = {
				exists = yes
				NOT = { has_war_with = ROOT }
				both_socialist_or_both_not_socialist = yes
				is_major = yes
				is_subject = no
				has_capitulated = no
			}
		}
		ai_chance = { base = 33 }
		add_tech_bonus = {
			name = PHI.military.001.t
			bonus = 1
			uses = 1
			category = infantry_weapons
		}
	}
	option = { #USA
		name = PHI.military.001.c
		log = "[GetLogInfo]: event PHI.military.001 option PHI.military.001.c"
		trigger = {
			has_global_flag = USA_civil_war_over_flag
			var:361.owner = {
				is_american_tag = yes
				NOT = { has_war_with = ROOT }
				both_socialist_or_both_not_socialist = yes
				is_major = yes
				is_subject = no
				has_capitulated = no
			}
		}
		ai_chance = { base = 33 }
		add_tech_bonus = {
			name = PHI.military.001.t
			bonus = 1
			uses = 1
			category = artillery
		}
	}
	option = {
		name = PHI.military.001.e
		log = "[GetLogInfo]: event PHI.military.001 option PHI.military.001.e"
		ai_chance = { base = 0 } #Mainly for player benefit
		add_political_power = -100
		add_offsite_building = {
			type = arms_factory
			level = 1
		}
	}
}

country_event = { #Foreign Naval Aid
	id = PHI.military.020
	title = PHI.military.020.t
	desc = PHI.military.020.d
	picture = GFX_report_event_PHI_philippine_sailors_in_US_navy

	is_triggered_only = yes #Triggered by EFFECT: fire_black_monday_events

	option = { #germany
		name = PHI.military.020.a
		log = "[GetLogInfo]: event PHI.military.020 option PHI.military.020.a"
		trigger = {
			GER = {
				exists = yes
				NOT = { has_war_with = ROOT }
				both_socialist_or_both_not_socialist = yes
				is_major = yes
				is_subject = no
				has_capitulated = no
			}
		}
		ai_chance = { base = 33 }
		add_tech_bonus = {
			name = PHI.military.020.t
			bonus = 1
			uses = 1
			category = mio_cat_tech_all_submarine_and_modules
		}
	}

	option = { #Japan
		name = PHI.military.020.b
		log = "[GetLogInfo]: event PHI.military.020 option PHI.military.020.b"
		trigger = {
			JAP = {
				exists = yes
				NOT = { has_war_with = ROOT }
				both_socialist_or_both_not_socialist = yes
				is_major = yes
				is_subject = no
				has_capitulated = no
			}
		}
		ai_chance = { base = 33 }
		add_tech_bonus = {
			name = PHI.military.020.t
			bonus = 1
			uses = 1
			category = mio_cat_all_naval_bomber_and_modules
		}
	}
	option = { #USA
		name = PHI.military.020.c
		log = "[GetLogInfo]: event PHI.military.020 option PHI.military.020.c"
		trigger = {
			has_global_flag = USA_civil_war_over_flag
			var:361.owner = {
				is_american_tag = yes
				NOT = { has_war_with = ROOT }
				both_socialist_or_both_not_socialist = yes
				is_major = yes
				is_subject = no
				has_capitulated = no
			}
		}
		ai_chance = { base = 33 }
		add_tech_bonus = {
			name = PHI.military.020.t
			bonus = 1
			uses = 1
			category = mio_cat_tech_all_destroyer_and_modules
		}
	}
	option = {
		name = PHI.military.020.e
		log = "[GetLogInfo]: event PHI.military.020 option PHI.military.020.e"
		ai_chance = { base = 0 } #This option is for player benefit
		add_political_power = -100
		add_offsite_building = {
			type = dockyard
			level = 1
		}
	}
}
country_event = { #Foreign Air Aid
	id = PHI.military.040
	title = PHI.military.040.t
	desc = PHI.military.040.d
	picture = GFX_report_event_JAP_troops_zero

	is_triggered_only = yes #Triggered by EFFECT: fire_black_monday_events

	option = { #germany
		name = PHI.military.040.a
		log = "[GetLogInfo]: event PHI.military.040 option PHI.military.040.a"
		trigger = {
			GER = {
				exists = yes
				NOT = { has_war_with = ROOT }
				both_socialist_or_both_not_socialist = yes
				is_major = yes
				is_subject = no
				has_capitulated = no
			}
		}
		ai_chance = { base = 25 }
		add_tech_bonus = {
			name = PHI.military.040.t
			bonus = 1
			uses = 1
			category = mio_cat_all_naval_bomber_and_modules
		}
	}

	option = { #japan
		name = PHI.military.040.b
		log = "[GetLogInfo]: event PHI.military.040 option PHI.military.040.b"
		trigger = {
			JAP = {
				exists = yes
				NOT = { has_war_with = ROOT }
				both_socialist_or_both_not_socialist = yes
				is_major = yes
				is_subject = no
				has_capitulated = no
			}
		}
		ai_chance = { base = 25 }
		add_tech_bonus = {
			name = PHI.military.040.t
			bonus = 1
			uses = 1
			category = mio_cat_all_light_fighter_and_modules
		}
	}
	option = { #USA
		name = PHI.military.040.c
		log = "[GetLogInfo]: event PHI.military.040 option PHI.military.040.c"
		trigger = {
			has_global_flag = USA_civil_war_over_flag
			var:361.owner = {
				is_american_tag = yes
				NOT = { has_war_with = ROOT }
				both_socialist_or_both_not_socialist = yes
				is_major = yes
				is_subject = no
				has_capitulated = no
			}
		}
		ai_chance = { base = 25 }
		air_experience = 50
	}
	option = {
		name = PHI.military.040.e
		log = "[GetLogInfo]: event PHI.military.040 option PHI.military.040.e"
		ai_chance = { base = 25 }
		add_doctrine_cost_reduction = {
			name = PHI.military.040.t
			cost_reduction = 0.25
			uses = 2
			category = air_doctrine
		}
	}
}
country_event = {
	id = PHI.military.060 #The Germans Offer Military Aid
	title = PHI.military.060.t
	desc = PHI.military.060.d
	is_triggered_only = yes #Triggered by decision GEA_arms_shipments_to_the_philippines
	picture = GFX_report_event_PHI_philippine_military_officers

	option = {
		log = "[GetLogInfo]: event PHI.military.060 option PHI.military.060.a"
		name = PHI.military.060.a #More guns please!

		ai_chance = { base = 100 }
		if = {
			limit = { has_idea = PHI_foreign_military_mission }
			add_political_power = -50
			custom_effect_tooltip = PHI_clashing_advisors_tt
			modify_timed_idea = {
				idea = PHI_foreign_military_mission
				days = 365
			}
			custom_effect_tooltip = GEA_PHI_arms_shipments_tt
		}
		else = {
			custom_effect_tooltip = GEA_PHI_arms_shipments_tt
			add_timed_idea = {
				idea = PHI_foreign_military_mission
				days = 365
			}
		}
		PHI_add_GEA_alignment_large_effect = yes
		hidden_effect = {
			GEA = {
				country_event = { id = PHI.military.063 days = 1 }
			}
		}
	}

	option = {
		log = "[GetLogInfo]: event PHI.military.060 option PHI.military.060.b"
		name = PHI.military.060.b #We must decline

		ai_chance = { base = 0 }
		hidden_effect = {
			GEA = {
				country_event = { id = PHI.military.064 days = 1 }
			}
			set_country_flag = PHI_reject_german_military_aid
		}
	}
}
country_event = {
	id = PHI.military.061 #The Americans Offer Military Aid
	title = PHI.military.061.t
	desc = PHI.military.061.d
	is_triggered_only = yes #Triggered by decision USA_arms_shipments_to_the_philippines
	picture = GFX_report_event_PHI_philippine_military_officers

	option = {
		log = "[GetLogInfo]: event PHI.military.061 option PHI.military.061.a"
		name = PHI.military.061.a #More guns please!

		ai_chance = { base = 100 }
		if = {
			limit = { has_idea = PHI_foreign_military_mission }
			add_political_power = -50
			custom_effect_tooltip = PHI_clashing_advisors_tt
			modify_timed_idea = {
				idea = PHI_foreign_military_mission
				days = 365
			}
			custom_effect_tooltip = USA_PHI_arms_shipments_tt
		}
		else = {
			custom_effect_tooltip = USA_PHI_arms_shipments_tt
			add_timed_idea = {
				idea = PHI_foreign_military_mission
				days = 365
			}
		}
		PHI_add_USA_alignment_large_effect = yes
		hidden_effect = {
			USA = {
				country_event = { id = PHI.military.063 days = 1 }
			}
		}
	}

	option = {
		log = "[GetLogInfo]: event PHI.military.061 option PHI.military.061.b"
		name = PHI.military.061.b #We must decline

		ai_chance = { base = 0 }
		hidden_effect = {
			USA = {
				country_event = { id = PHI.military.064 days = 1 }
			}
			set_country_flag = PHI_reject_american_military_aid
		}
	}
}
country_event = {
	id = PHI.military.062 #The Japanese Offer Military Aid
	title = PHI.military.062.t
	desc = PHI.military.062.d
	is_triggered_only = yes #Triggered by decision JAP_arms_shipments_to_the_philippines
	picture = GFX_report_event_PHI_philippine_military_officers

	option = {
		log = "[GetLogInfo]: event PHI.military.062 option PHI.military.062.a"
		name = PHI.military.062.a #More guns please!

		ai_chance = { base = 100 }
		if = {
			limit = { has_idea = PHI_foreign_military_mission }
			add_political_power = -50
			custom_effect_tooltip = PHI_clashing_advisors_tt
			modify_timed_idea = {
				idea = PHI_foreign_military_mission
				days = 365
			}
			custom_effect_tooltip = JAP_PHI_arms_shipments_tt
		}
		else = {
			add_timed_idea = {
				idea = PHI_foreign_military_mission
				days = 365
			}
			custom_effect_tooltip = JAP_PHI_arms_shipments_tt
		}
		PHI_add_CPS_alignment_large_effect = yes
		hidden_effect = {
			JAP = {
				country_event = { id = PHI.military.063 days = 1 }
			}
		}
	}

	option = {
		log = "[GetLogInfo]: event PHI.military.062 option PHI.military.062.b"
		name = PHI.military.062.b #We must decline

		ai_chance = { base = 0 }
		hidden_effect = {
			JAP = {
				country_event = { id = PHI.military.064 days = 1 }
			}
			set_country_flag = PHI_reject_japanese_military_aid
		}
	}
}
country_event = {
	id = PHI.military.063 #The Philippines Accepts Our Military Aid
	title = PHI.military.063.t
	desc = PHI.military.063.d
	is_triggered_only = yes #Triggered by Arms Shipments to the Philippines decisions
	picture = GFX_report_event_PHI_philippine_military_officers

	option = {
		log = "[GetLogInfo]: event PHI.military.063 option PHI.military.063.a"
		name = PHI.military.063.a #All according to plan
	}
}
country_event = {
	id = PHI.military.064 #The Philippines Declines Our Military Aid
	title = PHI.military.064.t
	desc = PHI.military.064.d
	is_triggered_only = yes #Triggered by Arms Shipments to the Philippines decisions
	picture = GFX_report_event_PHI_philippine_military_officers

	option = {
		log = "[GetLogInfo]: event PHI.military.064 option PHI.military.064.a"
		name = PHI.military.064.a #In time they will realise their mistake
		custom_effect_tooltip = PHI_arms_refunded_tt
	}
}
country_event = {
	id = PHI.military.065 #Foreign-Equipped Division
	title = PHI.military.065.t
	desc = PHI.military.065.d
	is_triggered_only = yes #Triggered by Arms Shipments to the Philippines decisions
	picture = GFX_report_event_PHI_philippine_scouts

	option = {
		log = "[GetLogInfo]: event PHI.military.065 option PHI.military.065.a"
		name = PHI.military.065.a #A modern division for modern war!
		if = {
			limit = { NOT = { has_template = "Foreign-Equipped Division" } }
			division_template = {
				name = "Foreign-Equipped Division"
				division_names_group = PHI_INF_01
				regiments = {
					infantry = { x = 0 y = 0 }
					infantry = { x = 0 y = 1 }
					infantry = { x = 0 y = 2 }
					infantry = { x = 1 y = 0 }
					infantry = { x = 1 y = 1 }
					infantry = { x = 1 y = 2 }
					infantry = { x = 2 y = 0 }
					infantry = { x = 2 y = 1 }
					infantry = { x = 2 y = 2 }
					artillery_brigade = { x = 3 y = 0 }
				}
				support = {
					engineer = { x = 0 y = 0 }
					recon = { x = 0 y = 1 }
				}
			}
		}
		random_controlled_state = {
			limit = {
				impassable = no
				is_in_home_area = yes
			}
			prioritize = { 327 } #Manila
			create_unit = {
				division = "division_template = \"Foreign-Equipped Division\" start_experience_factor = 0.60"
				owner = PHI
			}
		}
	}
}
