﻿add_namespace = portugal

# Event numbers available portugal.25...32, 35 

#French Ship Capture Ultimatum
country_event = {
		id = portugal.1
		title = portugal.1.t
		desc = portugal.1.d
		picture = GFX_report_event_merchant_ship_01
		
		fire_only_once = yes
		is_triggered_only = yes
		
		
		option = {
			name = portugal.1.a
			ai_chance = { factor = 100 }
			add_political_power = -10
		}
		
		option = {
			name = portugal.1.b
			ai_chance = { factor = 0 }
			FRA = { country_event = { days = 1 id = portugal.2 } }
		}
}

#Portugal denies
country_event = {
		id = portugal.2
		title = portugal.2.t
		desc = portugal.2.d
		
		is_triggered_only = yes
		
		option = {
			name = portugal.2.a
			ai_chance = { factor = 60 }
			add_political_power = -75
		}
		
		option = {
			name = portugal.2.b
			ai_chance = { factor = 40 }
			declare_war_on = { target = POR type = annex_everything }
		}
}

#Papal limits on Portugese Colonial Ambitions?
country_event = {
		id = portugal.3
		title = portugal.3.t
		desc = portugal.3.d
		
		fire_only_once = yes
		is_triggered_only = yes
		
		option = {
			name = portugal.3.a
			ai_chance = { factor = 100 }
			POR = { country_event = { days = 1 id = portugal.4 } }
		}
		
		option = {
			name = portugal.3.b
			ai_chance = { factor = 0 }
		}
}

#Portugal receives Papal orders
country_event = {
		id = portugal.4
		title = portugal.4.t
		desc = portugal.4.d
		
		is_triggered_only = yes
		
		option = {
			name = portugal.4.a
			ai_chance = { factor = 100 }
			add_political_power = -50
		}
		
		option = {
			name = portugal.4.b
			ai_chance = { factor = 0 }
			add_opinion_modifier = { target = PAP modifier = porpap_dispute }
			reverse_add_opinion_modifier = { target = PAP modifier = porpap_dispute }
		}
}

#Anti-Clerical Movement
country_event = {
		id = portugal.5
		title = portugal.5.t
		desc = portugal.5.d
		picture = GFX_report_event_generic_sign_treaty2
		
		fire_only_once = yes
		is_triggered_only = yes
		
		option = {
			name = portugal.5.a
			ai_chance = { factor = 50 }
			add_political_power = 25
		}
		
		option = {
			name = portugal.5.b
			ai_chance = { factor = 25 }
		}
		
		option = {
			name = portugal.5.c
			ai_chance = { factor = 25 }
			add_political_power = -25
			add_popularity = { ideology = fundamentalism popularity = 0.05 }
		}
}

#1860 Elections
country_event = {
		id = portugal.6
		title = portugal.6.t
		desc = portugal.6.d
		picture = GFX_report_event_election_vote
		
		fire_only_once = yes
		is_triggered_only = yes
		
		option = {
			name = portugal.6.a
			custom_effect_tooltip = "HISTORICAL"
			ai_chance = {
			factor = 100
			modifier = {
				factor = 0
				traditional_conservatism > 0.5
			}
			modifier = {
				factor = 0.25
				centrism < 0.5
			}
			modifier = {
				factor = 0.25
				centrism < 0.4
			}
			modifier = {
				factor = 0.25
				centrism < 0.3
			}
		}
		if = {
			limit = {
				centrism > 0.5
			}
			set_politics = { ruling_party = centrism elections_allowed = no }
			add_popularity = { ideology = traditional_conservatism popularity = -0.05 }
		}
		if = {
			limit = {
				traditional_conservatism > 0.5
			}
			set_politics = { ruling_party = centrism elections_allowed = no }
			add_popularity = { ideology = traditional_conservatism popularity = -0.02 }
			add_stability = -0.1
		}
		if = {
			limit = {
				centrism < 0.5
				traditional_conservatism < 0.5
			}
			set_politics = { ruling_party = centrism elections_allowed = no }
			add_popularity = { ideology = centrism popularity = 0.05 }
			add_popularity = { ideology = traditional_conservatism popularity = 0.02 }
		}
	}
	
	option = {
		name = portugal.6.b
		custom_effect_tooltip = "WIP!"
		ai_chance = {
			factor = 0
			modifier = {
				factor = 0
				centrism > 0.5
			}
			modifier = {
				factor = 0.25
				traditional_conservatism < 0.5
			}
			modifier = {
				factor = 0.25
				traditional_conservatism < 0.4
			}
			modifier = {
				factor = 0.25
				traditional_conservatism < 0.3
			}
		}
		if = {
			limit = {
				traditional_conservatism > 0.5
			}
			set_politics = { ruling_party = traditional_conservatism elections_allowed = no }
			add_popularity = { ideology = centrism popularity = -0.05 }
		}
		if = {
			limit = {
				centrism > 0.5
			}
			set_politics = { ruling_party = traditional_conservatism elections_allowed = no }
			add_popularity = { ideology = centrism popularity = -0.02 }
			add_stability = -0.1
		}
		if = {
			limit = {
				centrism < 0.5
				traditional_conservatism < 0.5
			}
			set_politics = { ruling_party = traditional_conservatism elections_allowed = no }
			add_popularity = { ideology = traditional_conservatism popularity = 0.05 }
			add_popularity = { ideology = centrism popularity = 0.02 }
		}
	}
}	
	

#King Pedro V dies
country_event = {
		id = portugal.7
		title = portugal.7.t
		desc = portugal.7.d
		picture = GFX_report_event_dead_soldiers
		
		fire_only_once = yes
		is_triggered_only = yes
		
		trigger = {
			TAG = POR
			#date > 1861.11.11
			has_idea = POR_Pedro_V
		}
		
		option = {
			name = portugal.7.a
			custom_effect_tooltip = POR_1861_Pedro
			hidden_effect = {
				remove_ideas = POR_Pedro_V 
				POR = { country_event = { days = 5 id = portugal.8 } }
			}
		}
}

#A new king
country_event = {
		id = portugal.8
		title = portugal.8.t
		desc = portugal.8.d
		picture = GFX_report_event_generic_rally
		
		is_triggered_only = yes
		
		option = {
			name = portugal.8.a
			custom_effect_tooltip = POR_1861_Luis
			hidden_effect = {
				add_ideas = POR_Luis 
				POR = { country_event = { days = 25 id = portugal.9 } }
			}
		}
}

#The Christmas revolt
country_event = {
		id = portugal.9
		title = portugal.9.t
		desc = portugal.9.d
		picture = GFX_report_event_generic_riot
		
		is_triggered_only = yes
		
		option = {
			name = portugal.9.a
			ai_chance = { 
				factor = 20 
				modifier = {
					factor = 0
					is_historical_focus_on = yes
				}
			}
			custom_effect_tooltip = POR_1861_Luis3
			hidden_effect = {
				POR = { country_event = { days = 5 id = portugal.10 } }
				decrease_ps_by_one = yes
			}
		}
		
		option = {
			name = portugal.9.b
			ai_chance = { factor = 60 }
			custom_effect_tooltip = historical_option
			custom_effect_tooltip = POR_1861_Luis2
			hidden_effect = {
				#swap_ideas = { remove_idea = POR_Luis add_idea = hos_is_leader }
				POR = { country_event = { days = 5 id = portugal.11 } }
				decrease_ps_by_two = yes
			}
		}
		
		option = {
			name = portugal.9.c
			ai_chance = { factor = 20 }
			add_political_power = -500
			decrease_ps_by_two = yes
		}
}

#The Situation escalates
country_event = {
		id = portugal.10
		title = portugal.10.t
		desc = portugal.10.d
		picture = GFX_report_event_generic_rally2
		
		is_triggered_only = yes
		
		option = {
			name = portugal.10.a
			custom_effect_tooltip = POR_1861_Civilwar
			hidden_effect = {
				180 = { set_demilitarized_zone = yes }
				remove_state_core = 180
				remove_state_claim = 180
				POR = { country_event = { days = 5 id = portugal.16 } }
				news_event = news.2
			}
		}
}

#The Situation calms down
country_event = {
		id = portugal.11
		title = portugal.11.t
		desc = portugal.11.d
		
		is_triggered_only = yes
		
		option = {
			name = portugal.11.a
		}
}

#Portugal claims Olivenza
country_event = {
		id = portugal.12
		title = portugal.12.t
		desc = portugal.12.d
		
		is_triggered_only = yes
		
		option = {
			name = portugal.12.a
			ai_chance = { factor = 100 }
			POR = { country_event = { days = 1 id = portugal.13 } }
		}
		
		option = {
			name = portugal.12.b
			ai_chance = { factor = 0 }
			POR = { country_event = { days = 1 id = portugal.14 } }
		}
}

#Spain says yes
country_event = {
		id = portugal.13
		title = portugal.13.t
		desc = portugal.13.d
		
		is_triggered_only = yes
		
		option = {
			name = portugal.13.a
			#POR = { transfer_state = 807 }
			add_opinion_modifier = { target = SPR modifier = POR_SPR_Olivenza2 }
			reverse_add_opinion_modifier = { target = SPR modifier = POR_SPR_Olivenza2 }
			hidden_effect = {
				news_event = news.3
			}
		}
}

#Spain says no
country_event = {
		id = portugal.14
		title = portugal.14.t
		desc = portugal.14.d
		
		is_triggered_only = yes
		
		option = {
			name = portugal.14.a
			add_opinion_modifier = { target = SPR modifier = POR_SPR_Olivenza }
			reverse_add_opinion_modifier = { target = SPR modifier = POR_SPR_Olivenza }
		}
}

#Portugal claims Galicia
country_event = {
		id = portugal.15
		title = portugal.15.t
		desc = portugal.15.d
		
		is_triggered_only = yes
		
		option = {
			name = portugal.15.a
			ai_chance = { factor = 90 }
			add_opinion_modifier = { target = POR modifier = POR_SPR_Galicia }
			reverse_add_opinion_modifier = { target = POR modifier = POR_SPR_Galicia }
		}
		
		option = {
			name = portugal.15.b
			ai_chance = { factor = 10 }
			POR = { transfer_state = 171 }
			POR = { add_state_core = 171 }
		}
}

	
#Enemies are marching
country_event = {
		id = portugal.16
		title = portugal.16.t
		desc = portugal.16.d
		
		is_triggered_only = yes
		
	option = {
		name = portugal.16.a
		hidden_effect = {
				181 = { set_demilitarized_zone = yes }
				remove_state_core = 181
				remove_state_claim = 181
				POR = { country_event = { days = 5 id = portugal.17 } }	
		}
    }
}

#Push them back
country_event = {
		id = portugal.17
		title = portugal.17.t
		desc = portugal.17.d
		
		is_triggered_only = yes
		
	option = {
		name = portugal.17.a
            random_list = {
					70 = {
						POR = { add_state_core = 181 add_state_claim = 181 add_state_core = 180 add_state_claim = 180 }
						181 = {  set_demilitarized_zone = no }
						180 = {  set_demilitarized_zone = no }
						add_manpower = -1000
					}
					30 = {
						if = {
			                limit = { has_government = centrism }
			                set_politics = { ruling_party = traditional_conservatism elections_allowed = no }
							add_popularity = { ideology = traditional_conservatism popularity = 0.1 }
							POR = { add_state_core = 181 add_state_claim = 181 add_state_core = 180 add_state_claim = 180 }
						    181 = {  set_demilitarized_zone = no }
						    180 = {  set_demilitarized_zone = no }
						    add_manpower = -2000
					    }
					    else_if = {
			                limit = { has_government = traditional_conservatism }
			                set_politics = { ruling_party = centrism elections_allowed = no }
							add_popularity = { ideology = centrism popularity = 0.1 }
							POR = { add_state_core = 181 add_state_claim = 181 add_state_core = 180 add_state_claim = 180 }
						    181 = {  set_demilitarized_zone = no }
						    180 = {  set_demilitarized_zone = no }
						    add_manpower = -2000
					    }
					}
				}
		    }
        }
		
#Research the outskirts
	country_event = {
	id = portugal.18
	title  = portugal.18.t
	desc = portugal.18.d

	fire_only_once = yes
	is_triggered_only = yes

		option = {
			name = portugal.18.a
			complete_national_focus = POR_focus_secure_the_capitals_transport
		}
}
#railway builing Alentejeo line 
	country_event = {
	id = portugal.19
	title = portugal.19.t
	desc = portugal.19.d

	fire_only_once = yes
	is_triggered_only = yes 

		option = {
			name = portugal.19.a
			build_railway = {
				level = 1
				path = { 11805 970 9869 }
			}
		}
	}

#Pedro V millitary hospital
	country_event = {
	id = portugal.20
	title = portugal.20.t
	desc = portugal.20.d

	fire_only_once = yes
	is_triggered_only = yes 

		option = {
			name = portugal.20.a
			add_stability = 0.1
			add_war_support = 0.05
			add_political_power = 50
		}
	}

#Spanish Portuguese railway
	country_event = {
	id = portugal.21
	title = portugal.21.t
	desc = portugal.21.d

	fire_only_once = yes
	is_triggered_only = yes 

#Northern path
		option = {
			name = portugal.21.a
			build_railway = {
				level = 1
				path = { 924 844 6986 3886 }
			}
			ai_chance = { factor = 50 }
		}
#Straight path
		option = {
			name = portugal.21.b
			build_railway = {
				level = 1
				path = { 11805 11768 6986 3886 }
			}
			ai_chance = { factor = 50 }
		}
#Nuh uh, no path for you Spain
		option = {
			name = portugal.21.c
			ai_chance = { factor = 0 }
		}
	}

	#Nation wide Education debate
	country_event = {
		id = portugal.22
		title = portugal.22.t
		desc = portugal.22.d

		is_triggered_only = yes 

		option = { # Skillfull workers & School for all
			name = portugal.22.a
			ai_chance = { factor = 60 }
			complete_national_focus = POR_focus_skillfull_workforce
		}

		option = {
			name = portugal.22.b
			ai_chance = {  factor = 40}
			complete_national_focus = POR_focus_tradicional_education
		}
	}


country_event = {
		id = portugal.23
		title = portugalfocustree.23.t
		desc = portugalfocustree.23.d
		picture = GFX_report_event_merchant_ship_01
		
		is_triggered_only = yes
		
	option = {	 
			name = portugal.23
			hidden_effect = {
			create_equipment_variant = {
                name = "Vasco da Gama Class"
                type = ship_hull_cruiser_heavy_1
                modules = {
                    fixed_ship_battery_slot = ship_turret_heavy_0
                    fixed_ship_fire_control_system_slot = fire_control_system_1
                    fixed_ship_engine_slot = ship_engine_steam_screw_screen
                    fixed_ship_armor_slot = ship_armor_screen_ironclad_0
                    front_1_custom_slot = ship_turret_medium_1
                    mid_1_custom_slot = ship_turret_medium_1
			        mid_2_custom_slot = ship_secondary_guns_0
			        rear_1_custom_slot = ship_turret_medium_1
                }
            }
			load_oob = "POR_naval_vasco_da_gama_class"
			set_temp_variable = { loans_amount = 4}
			take_loan_without_inflation_effect = yes			
		}
	}
}

	#country_event = { #Spanish event for interstate railway
#	 I need info where it will be build
#	id = portugal.24
#	title = portugal.24.t
#	desc = portugal.24.d
#
#	#fire_only_once = yes
#	#is_triggered_only = yes 
#
#	option = {
#			name = portugal.24.a
#	}
#
#}
	
country_event = {
		id = portugal.33
		title = portugal.33.t
		desc = portugal.33.d
		picture = GFX_report_event_merchant_ship_01
		
		is_triggered_only = yes
		
		option = {
			name = portugal.33.a
			ai_chance = { factor = 100 }
			add_manpower = -100
			729 = { add_extra_state_shared_building_slots = 1 }
			}
	    }
		
country_event = {
		id = portugal.34
		title = portugal.34.t
		desc = portugal.34.d
		picture = GFX_report_event_merchant_ship_01
		
		is_triggered_only = yes
		#date > 1857.6.26
		option = { 
			name = portugal.34.a
			ai_chance = { factor = 35 }
			hidden_effect = {
			add_manpower = 100
			add_opinion_modifier = { target = KON modifier = eoanb_om_RUS_increase_small }
			reverse_add_opinion_modifier = { target = KON modifier = eoanb_om_RUS_increase_small }
			1212 = {
				remove_building = {
				    type = bunker 
				    level = 1
					province = 13787
				}
			}
			KON = { 
				add_autonomy_ratio = { value = -0.1 }
			}
		}
	}
	
	option = {
		name = portugal.34.b
		ai_chance = { factor = 40 }
		hidden_effect = {
			add_manpower = -50
			add_opinion_modifier = { target = KON modifier = eoanb_om_RUS_increase_very_small }
			reverse_add_opinion_modifier = { target = KON modifier = eoanb_om_RUS_increase_very_small }
			KON = { 
				add_autonomy_ratio = { value = -0.05 }
			}
		
            		
            }			
			
	}		
	option = {
		name = portugal.34.c
		ai_chance = { factor = 35 }
		hidden_effect = {
		add_manpower = -100
		add_opinion_modifier = { target = KON modifier = eoanb_om_RUS_decrease_small }
		reverse_add_opinion_modifier = { target = KON modifier = eoanb_om_RUS_decrease_small }
		1212 = {
			add_building_construction = {
					type = bunker 
					level = 1
					instant_build = yes
					province = 13787
				}
           }
    	}
	}
}

#Could be used later for Navy ft
#country_event = {
#		id = portugal.35
#		title = portugal.35.t
#		desc = portugal.35.d
#		picture = GFX_report_event_merchant_ship_01
#		
#		is_triggered_only = yes
#		
#		option = {
#			name = portugal.35.
#			create_equipment_variant = {
#               name = "Vasco da Gama Class"
#                type = ship_hull_cruiser_heavy_1
#                modules = {
#                    fixed_ship_battery_slot = ship_turret_heavy_0
#                    fixed_ship_fire_control_system_slot = fire_control_system_1
#                    fixed_ship_engine_slot = ship_engine_steam_screw_screen
#                    fixed_ship_armor_slot = ship_armor_screen_ironclad_0
#                    front_1_custom_slot = ship_turret_medium_1
#                    mid_1_custom_slot = ship_turret_medium_1
#			        mid_2_custom_slot = ship_secondary_guns_0
#			        rear_1_custom_slot = ship_turret_medium_1
#                }
#            }
#			load_oob = "POR_naval_vasco_da_gama_class"
#		
#		}
#	}

###Ningpo massacre
country_event = {
		id = portugal.36
		title = portugal.36.t
		desc = portugal.36.d
		picture = GFX_report_event_merchant_ship_01

		fire_only_once = yes
		is_triggered_only = yes
		
		option = {
			name = portugal.36.a
			if = {
            limit = {
            TAG = POR
            }
            add_manpower = -40
			add_war_support = -0.02
           }
		else_if = {
		    limit = {
            TAG = QNG
            }
			add_manpower = -3
            add_war_support = 0.02
           }
		}
    }	



###The Treaty of Tianjin - step 1
country_event = {
		id = portugal.37
		title = portugal.37.t
		desc = portugal.37.d
		picture = GFX_report_event_merchant_ship_01
		
		trigger = {
			TAG = POR
			date > 1863.7.1
			has_completed_focus = POR_focus_develop_macau
		}
		
		fire_only_once = yes
		
		option = {
			name = portugal.37.a
			ai_chance = { factor = 90 }
			#QNG = { country_event = { days = 1 id = portugal.32 } }
		}
		
		option = {
			name = portugal.37.b
			ai_chance = { factor = 10 }
            add_political_power = -100
			add_stability = -0.05
		}
    }
	
###The Treaty of Tianjin - step 2
country_event = {
		id = portugal.38
		title = portugal.38.t
		desc = portugal.38.d
		picture = GFX_report_event_merchant_ship_01
		
		is_triggered_only = yes
		
		option = {
			name = portugal.38.a
			ai_chance = { factor = 90 }
			add_opinion_modifier = { target = POR modifier = eoanb_om_RUS_decrease_very_small }
			reverse_add_opinion_modifier = { target = POR modifier = eoanb_om_RUS_decrease_very_small }
			POR = { add_political_power = -50 add_stability = -0.02 }
			QNG = { create_wargoal = {
                    type = take_state_focus
					generator = { 729 }
                    target = POR
            }
		}
	}
		
		option = {
			name = portugal.38.b
			ai_chance = { factor = 10 }
			add_opinion_modifier = { target = POR modifier = eoanb_om_RUS_decrease_small }
			reverse_add_opinion_modifier = { target = POR modifier = eoanb_om_RUS_decrease_small }
			QNG = { remove_state_core = 729 add_political_power = 50 }
			POR = { add_state_core = 729 add_political_power = -50 } 
            
		}
    }

country_event = {
	id = portugal.39
	title = portugal.39.t
	desc = portugal.39.d

	fire_only_once = yes
	is_triggered_only = yes

		option = {
			name = portuga.39.a
			army_experience = 40 
	add_tech_bonus = { bonus = 0.1 uses = 1 category = infantry_weapons }
			} 
		}

#country_event = { #Spanish event for interstate railway
#	 I need info where it will be build
#	id = portugal.
#	title = portugal..t
#	desc = portugal..d
#
#	#fire_only_once = yes
#	#is_triggered_only = yes 
#
#	option = {
#			name = portugal..a
#	}
#
#}


country_event = {
	id = portugal.40
	title = portugal.40.t
	desc = portugal.40.d

	fire_only_once = yes
	is_triggered_only = yes

		option = {
			name = portugal.40.a
			army_experience = 40 
	add_tech_bonus = { bonus = 0.1 uses = 1 category = infantry_weapons }
			} 
	}

# Cristal palace 
country_event = {
	id = portugal.41
	title = portugal.41.t
	desc = portugal.41.d

	fire_only_once = yes
	is_triggered_only = yes

		option = {
			name = portugal.41.a
			ai_chance = { factor = 100 }
		set_temp_variable = { money_to_gain = -3 }
		add_money_with_tooltip_effect = yes
		activate_mission_tooltip = POR_mission_cristal_palace
		hidden_effect = { 
			activate_mission = POR_mission_cristal_palace 
			}
		}

		option = {
			name = portugal.41.b
			ai_chance = { factor = 0 }
			add_political_power = -20
			add_stability = -0.03
		}
	}

#Cristal palace finished
country_event = {
	id = portugal.42
	title = portugal.42.t
	desc = portugal.42.d

	fire_only_once = yes
	is_triggered_only = yes

	option ={
		name = portugal.42.a
		add_stability = 0.05
		add_tech_bonus = { bonus = 0.25 uses = 2 category = electronics }
		add_tech_bonus = { bonus = 0.25 uses = 1 category = humanities_tech }
	}
}
country_event = {
	id = portugal.43
	title = portugal.43.t
	desc = portugal.43.d

	fire_only_once = yes
	is_triggered_only = yes

	option ={
		name = portugal.43.a

		POR_alexandre_de_serpa_pinto = {
			add_corps_commander_role = {
				traits = {
				}
				skill = 1
				attack_skill = 1
				defense_skill = 1
				planning_skill = 1
				logistics_skill = 1
			}
		}
		add_advisor_role = {
			character = POR_alexandre_de_serpa_pinto
			advisor = {
				slot = political_advisor
				cost = 150
				idea_token = POR_alexandre_de_serpa_pinto_political_advisor
				traits = {
					eoanb_trait_POR_colonial_administrator
						}
			}
		}
		add_command_power = -20 
	}
}
#The New Generation of Sailors
country_event = {
	id = portugal.44
	title = portugal.44.t
	desc = portugal.44.d

	fire_only_once = yes
	is_triggered_only = yes 

	option = {
		name = portugal.44.a
		
		POR_George_Sarotius = {
			add_naval_commander_role = {
				traits = {
				}
				skill = 1
				attack_skill = 1
				defense_skill = 1
				planning_skill = 1
				logistics_skill = 1
			}
		}
	}

	option = {
		name = portugal.44.b
		set_temp_variable = { money_to_gain = 1 }
		add_money_with_tooltip_effect = yes
	}
}
#A New Era for the Portuguese Navy
country_event = {
	id = portugal.45
	title = portugal.45.t
	desc = portugal.45.d

	picture = GFX_event_portuguese_navy

	fire_only_once = yes
	is_triggered_only = yes 

	option = {
		name = portugal.45.a
		set_technology = {
			tech_naval_early_frigate = 1
			popup = yes
		}
		activate_mission = POR_mission_coastal_fort_lisbon
		custom_effect_tooltip = POR_event_portuguese_navy_effect_tt
	}
}
#Portugal asks for Ship exchange
country_event = {
	id = portugal.46
	title = portugal.46.t
	desc = portugal.46.d

	fire_only_once = yes
	is_triggered_only = yes 

	option = {
		name = portugal.46.a
		POR = {
			country_event = portugal.47
		}
		transfer_ship = {
			type = corvette
			target = POR
			exclude_refitting = no
		}
		transfer_ship = {
			type = corvette
			target = POR
			exclude_refitting = no
		}
		transfer_ship = {
			type = corvette
			target = POR
			exclude_refitting = no
		}
		transfer_ship = {
			type = corvette
			target = POR
			exclude_refitting = no
		}
		transfer_ship = {
			type = corvette
			target = POR
			exclude_refitting = no
		}
	}

	option = {
		name = portugal.46.b
		POR = {
			country_event = portugal.48
		}
	}
}
#The French Ship Exchange!
country_event = {
	id = portugal.47
	title = portugal.47.t
	desc = portugal.47.d

	fire_only_once = yes
	is_triggered_only = yes 

	option = {
		name = portugal.47.a

		transfer_ship = {
			type = corvette
			target = FRA
			exclude_refitting = no
		}
		transfer_ship = {
			type = corvette
			target = FRA
			exclude_refitting = no
		}
		transfer_ship = {
			type = corvette
			target = FRA
			exclude_refitting = no
		}
		transfer_ship = {
			type = corvette
			target = FRA
			exclude_refitting = no
		}
		transfer_ship = {
			type = corvette
			target = FRA
			exclude_refitting = no
		}
	}
}
#The French refuse our proposal
country_event = {
	id = portugal.48
	title = portugal.48.t
	desc = portugal.48.d

	fire_only_once = yes
	is_triggered_only = yes 

	option = {
		name = portugal.48.a

		add_opinion_modifier = {
			target = FRA
			modifier = POR_decrease_small
		}
	}
}

country_event = {
	id = portugal.49 # Trade Treaty with Japan
	title = portugal.49.t
	desc = portugal.49.d

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = portugal.49.a

		add_political_power = 100
		set_temp_variable = { money_to_gain = 0.1 }
		add_money_with_inflation_included_with_tooltip_effect = yes
	} 
}