#Tuscan Events

namespace = FEE_Tuscany_Events

#Thornton Expidition 1
country_event = {
	id = FEE_Tuscany_Events.1
	title = FEE_Tuscany_Events.1.T
	desc = FEE_Tuscany_Events.1.D
	picture = EXPLORERS_eventPicture

	fire_only_once = yes

	trigger = {
		OR = {
			tag = LAN
			tag = TUS
			was_tag = LAN
			was_tag = TUS
		}
		is_year = 1600
		NOT = { is_year = 1630 }
		num_of_ports = 1
	}

	mean_time_to_happen = {
		months = 120
	}

	option = {
		name = FEE_Tuscany_Events.1.OPT1

		add_country_modifier = {
			name = fee_tus_thornton_colonize
			duration = 3650
		}
	}

	option = {
		name = FEE_Tuscany_Events.1.OPT2

		define_explorer = {
			name = "Robert Thornton"
			shock = 3
			fire = 3
			manuever = 5
		}
	}

	option = {
		name = FEE_Tuscany_Events.1.OPT3

		add_prestige = -5
	}
}

#Freedom of Religion
country_event = {
	id = FEE_Tuscany_Events.2
	title = FEE_Tuscany_Events.2.T
	desc = FEE_Tuscany_Events.2.D
	picture = RELIGION_eventPicture

	fire_only_once = yes

	trigger = {
		OR = {
			tag = LAN
			tag = TUS
			was_tag = LAN
			was_tag = TUS
		}
		NOT = { has_idea_group = religious_ideas }
		is_year = 1550
		NOT = { is_year = 1585 }
		religion = catholic
	}

	mean_time_to_happen = {
		months = 240
		modifier = {
			factor = 0.75
			has_idea_group = humanist_ideas
		}
		modifier = {
			factor = 0.75
			any_owned_province = {
				OR = {
					religion = protestant
					religion = reformed
				}
			}
		}
		modifier = {
			factor = 0.8
			ADM = 4
		}
		modifier = {
			factor = 1.3
			NOT = {
				ADM = 3
			}
		}
	}

	option = {
		name = FEE_Tuscany_Events.2.OPT1

		add_adm_power = -25
		add_country_modifier = {
			name = fee_tus_laws_freedom_religion
			duration = 7300
		}

		capital_scope = {
			add_base_tax = 1
			add_base_production = 1
		}
	}

	option = {
		name = FEE_Tuscany_Events.2.OPT2

		add_years_of_income = 0.5
		add_country_modifier = {
			name = fee_tus_one_duchy_one_religion
			duration = 7300
		}
	}
}

#Emperor Condemn's the Duchy's Elevation
country_event = {
	id = FEE_Tuscany_Events.3
	title = FEE_Tuscany_Events.3.T
	desc = FEE_Tuscany_Events.3.D
	picture = LIBERUM_VETO_eventPicture

	fire_only_once = yes

	trigger = {
		OR = {
			tag = LAN
			tag = TUS
		}
		is_part_of_hre = yes
		NOT = { has_country_flag = fee_grand_duchy_reaction }
		government = monarchy
		OR = {
			NOT = {
				reverse_has_opinion = {
					who = emperor
					value = 75
				}
			}
			NOT = {
				num_of_cities = 3
			}
		}
	}

	mean_time_to_happen = {
		months = 6
	}
	
	option = {
		name = FEE_Tuscany_Events.3.OPT1
		
		add_dip_power = -25
		add_adm_power = 25
		change_religious_influence_equivalent_fee = { add = 15 }
		add_prestige = 10
		set_country_flag = fee_grand_duchy_reaction
	}
}

#Emperor confirms the Duchy's elevation
country_event = {
	id = FEE_Tuscany_Events.4
	title = FEE_Tuscany_Events.4.T
	desc = FEE_Tuscany_Events.4.D
	picture = CONQUEST_eventPicture

	fire_only_once = yes

	trigger = {
		OR = {
			tag = LAN
			tag = TUS
		}
		is_part_of_hre = yes
		NOT = { has_country_flag = fee_grand_duchy_reaction }
		government = monarchy
		reverse_has_opinion = {
			who = emperor
			value = 75
		}
		num_of_cities = 3
	}

	mean_time_to_happen = {
		months = 6
	}
	
	option = {
		name = FEE_Tuscany_Events.4.OPT1
		
		add_dip_power = 25
		add_adm_power = 25
		change_religious_influence_equivalent_fee = { add = 5 }
		add_prestige = 15
		set_country_flag = fee_grand_duchy_reaction
	}
}

#The Construction Projects of Fernandino I
country_event = {
	id = FEE_Tuscany_Events.5
	title = FEE_Tuscany_Events.5.T
	desc = FEE_Tuscany_Events.5.D
	picture = CITY_DEVELOPMENT_eventPicture

	fire_only_once = yes

	trigger = {
		OR = {
			tag = LAN
			tag = TUS
			was_tag = LAN
			was_tag = TUS
		}
		is_year = 1580
		NOT = { is_year = 1605 }
		is_at_war = no
	}

	mean_time_to_happen = {
		months = 180
		modifier = {
			factor = 0.8
			has_idea_group = economic_ideas
		}
	}

	option = {
		name = FEE_Tuscany_Events.5.OPT1
		ai_chance = {
			factor = 70
		}

		add_treasury = -25
		capital_scope = {
			add_base_production = 1
		}
		if = {
			limit = {
				owns_core_province = 115
			}
			115 = {
				add_base_production = 2
			}
		}
		italy_region = {
			limit = {
				owned_by = ROOT
			}
			add_province_modifier = {
				name = fee_tus_toll_roads
				duration = 7300
			}
		}
	}

	option = {
		name = FEE_Tuscany_Events.5.OPT2
		ai_chance = {
			factor = 30
		}

		add_treasury = 15
		italy_region = {
			limit = {
				owned_by = ROOT
			}
			add_province_modifier = {
				name = fee_tus_toll_roads
				duration = 10950
			}
		}
	}
}

#The $MONARCHTITLE$'s Treasury
country_event = {
	id = FEE_Tuscany_Events.6
	title = FEE_Tuscany_Events.6.T
	desc = FEE_Tuscany_Events.6.D
	picture = TRADEGOODS_eventPicture

	fire_only_once = yes

	trigger = {
		OR = {
			tag = LAN
			tag = TUS
			was_tag = LAN
			was_tag = TUS
		}
		NOT = {
			has_ruler_modifier = fee_tus_ducal_treasury
		}
		NOT = {
			has_ruler_modifier = fee_tus_state_treasury
		}
		government = monarchy
	}
	mean_time_to_happen = {
		months = 36
	}

	option = {
		name = FEE_Tuscany_Events.6.OPT1

		add_prestige = -5
		add_ruler_modifier = {
			name = fee_tus_ducal_treasury
			duration = -1
		}
	}

	option = {
		name = FEE_Tuscany_Events.6.OPT2

		add_legitimacy_equivalent = { amount = -5 republican_tradition = -3 }
		add_ruler_modifier = {
			name = fee_tus_state_treasury
			duration = -1
		}
	}
}

#Accademia del Cimento
country_event = {
	id = FEE_Tuscany_Events.7
	title = FEE_Tuscany_Events.7.T
	desc = FEE_Tuscany_Events.7.D
	picture = GREAT_BUILDING_eventPicture

	fire_only_once = yes

	trigger = {
		OR = {
			tag = LAN
			tag = TUS
			was_tag = LAN
			was_tag = TUS
		}
		is_year = 1650
		NOT = {
			is_year = 1670
		}
		owns = 116
	}

	mean_time_to_happen = {
		months = 180
		modifier = {
			factor = 0.75
			advisor = natural_scientist
		}
		modifier = {
			factor = 0.8
			ADM = 4
		}
	}

	option = {
		name = FEE_Tuscany_Events.7.OPT1

		add_country_modifier = {
			name = fee_accademia_cimento
			duration = 3650
		}
	}

	option = {
		name = FEE_Tuscany_Events.7.OPT2

		add_treasury = -25
		add_country_modifier = {
			name = fee_institution_cimento
			duration = 3650
		}
	}
}

#Puritan Reforms of Cosimo III
country_event = {
	id = FEE_Tuscany_Events.8
	title = FEE_Tuscany_Events.8.T
	desc = FEE_Tuscany_Events.8.D
	picture = REFORM_eventPicture

	fire_only_once = yes

	trigger = {
		OR = {
			tag = LAN
			tag = TUS
			was_tag = LAN
			was_tag = TUS
		}
		is_year = 1670
		NOT = { is_year = 1720 }
		religion = catholic
	}

	mean_time_to_happen = {
		months = 480
		modifier = {
			factor = 0.8
			NOT = {
				ADM = 3
			}
		}
		modifier = {
			factor = 1.2
			ADM = 5
		}
		modifier = {
			factor = 0.8
			has_idea_group = religious_ideas
		}
	}

	option = {
		name = FEE_Tuscany_Events.8.OPT1

		add_country_modifier = {
			name = fee_tus_puritan_laws
			duration = 3650
		}
	}

	option = {
		name = FEE_Tuscany_Events.8.OPT2
	}
	option = {
		name = FEE_Tuscany_Events.8.OPT3
		trigger = {
			has_idea_group = humanist_ideas
		}

		custom_tooltip = FEE_Tuscany_Events.8.OPT3.TT
		add_stability_or_adm_power = yes
	}
}

#Reforms of Peter Leopold
country_event = {
	id = FEE_Tuscany_Events.10
	title = FEE_Tuscany_Events.10.T
	desc = FEE_Tuscany_Events.10.D
	picture = ADVISOR_eventPicture

	fire_only_once = yes

	trigger = {
		OR = {
			tag = LAN
			tag = TUS
			was_tag = LAN
			was_tag = TUS
		}
		is_year = 1760
		NOT = { is_year = 1790 }
		is_at_war = no
	}

	mean_time_to_happen = {
		months = 240
		modifier = {
			factor = 0.8
			has_idea_group = innovativeness_ideas
		}
		modifier = {
			factor = 1.1
			NOT = {
				ADM = 3
			}
		}
	}

	option = {
		name = FEE_Tuscany_Events.10.OPT1
		add_stability_or_adm_power = yes

		add_country_modifier = {
			name = fee_tus_liberal_reforms
			duration = -1
		}
		if = {
			limit = { has_country_flag = had_liberalism }
			country_event = {
				id = aspiration_for_liberty.4 days = 1
			}
		}
		if = {
			limit = {
				NOT = { has_country_flag = had_liberalism }
			}
			set_country_flag = had_liberalism
		}
	}

	option = {
		name = FEE_Tuscany_Events.10.OPT2

		add_stability_or_adm_power = yes
		add_adm_power = 100
		add_legitimacy_equivalent = { amount = 10 republican_tradition = 5 }
	}
}

#Medici Oriental Press
country_event = {
	id = FEE_Tuscany_Events.12
	title = FEE_Tuscany_Events.12.T
	desc = FEE_Tuscany_Events.12.D
	picture = BIG_BOOK_eventPicture

	fire_only_once = yes

	trigger = {
		OR = {
			tag = LAN
			tag = TUS
			was_tag = LAN
			was_tag = TUS
		}
		is_year = 1580
		NOT = { is_year = 1610 }
		is_at_war = no
	}

	mean_time_to_happen = {
		months = 180
		modifier = {
			factor = 0.8
			has_idea_group = innovativeness_ideas
		}
	}

	option = {
		name = FEE_Tuscany_Events.12.OPT1

		add_country_modifier = {
			name = fee_tus_oriental_press
			duration = 10950
		}
	}
}
