JHC_GER_1 = {
	slot = 1
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Winds of Change"
	}
	potential = {
		OR = {
			tag = GER
			tag = HLR
		}
		NOT = { map_setup = map_setup_random }
		has_dlc = "Winds of Change"
	}
	has_country_shield = yes
	
	JHC_GER_lowlands = {
		icon = bavarian_netherlands
		required_missions = { JHC_GER_blood_and_iron }
		position = 2
		provinces_to_highlight = {
			OR = {
				AND = {
					region = low_countries_region
					NOT = { country_or_non_sovereign_subject_holds = ROOT }
					NOT = {
						ROOT = {
							num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
								value = 15
								region = low_countries_region
							}
						}
					}
				}
				AND = {
					province_id = 45
					NOT = { owned_by = ROOT }
				}
			}
		}
		trigger = {
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				value = 15
				region = low_countries_region
			}
			45 = {
				owned_by = ROOT
			}
		}
		effect = {
			add_country_modifier = {
				name = "ger_crushed_dutch_independence"
				duration = 7300
			}
			
			set_country_flag = JHC_GER_lowlands_flag
			
			give_claims = { region = france_region }
			
			custom_tooltip = " "
			
			country_event_with_option_insight = {
				id = flavor_ger.1
				option_1 = "
					custom_tooltip = GER_upgrade_every_cot_in_low_countries_to_level_2
					
					custom_tooltip = \" \"
					
					1269 = {
						add_trade_modifier = {
							who = ROOT
							duration = -1
							power = 50
							key = GER_taking_over_channel
						}
					}
				"
				option_2 = "
					45 = {
						add_province_triggered_modifier = GER_staying_in_lubeck
					}
					
					custom_tooltip = GER_requirements
					
					custom_tooltip = \" \"
					
					add_years_of_trade_income = {
						years = 2
						custom_tooltip = BYZ_add_2_years_of_trade_income
					}
				"
			}
		}
	}
	
	JHC_GER_france = {
		icon = centralize_france
		required_missions = { JHC_GER_lowlands }
		position = 4
		provinces_to_highlight = {
			region = france_region
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				value = 40
				region = france_region
			}
			183 = { country_or_non_sovereign_subject_holds = ROOT }
		}
		effect = {
			if = {
				limit = {
					OR = {
						current_age = age_of_absolutism
						current_age = age_of_revolutions
					}
					NOT = { absolutism = 99 }
					is_revolutionary = no
				}
				add_absolutism = 20
			}
			else = {
				add_mil_power = 200
			}
			
			custom_tooltip = " "
			
			country_event_with_effect_insight = { #this mimics the franco-prussian war in a way
				id = flavor_ger.2
				effect = "
					add_permanent_power_projection = {
						amount = 5
						type = GER_defeat_of_france
					}
					
					custom_tooltip = \" \"
					
					add_country_modifier = {
						name = GER_destruction_of_france
						duration = -1
					}
					
					custom_tooltip = GER_all_germanic_subjects_will_be_annexable_without_diplo_annex_penalty
				"
			}
		}
	}
	
	JHC_GER_burn_the_wooden_wall = {
		icon = Burn_Wooden_Wall
		required_missions = { JHC_GER_imperial_navy JHC_GER_france }
		position = 6
		provinces_to_highlight = {
			owner = {
				capital_scope = { region = british_isles_region }
				num_of_heavy_ship = 5
			}
			is_capital = yes
		}
		trigger = {
			OR = {
				custom_trigger_tooltip = {
					tooltip = burn_wooden_wall_tt
					NOT = {
						any_country = {
							capital_scope = { region = british_isles_region }
							num_of_heavy_ship = 5
						}
					}
				}
				num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
					region = british_isles_region
					value = 8
				}
			}
		}
		effect = {
			add_country_modifier = {
				name = "ger_burned_wooden_wall"
				duration = -1
			}
			
			give_claims = { region = british_isles_region }
			
			custom_tooltip = " "
			
			complex_dynamic_effect_without_alternative = {
				first_custom_tooltip = GER_if_done_via_fleet
				first_limit = "
					NOT = {
						any_country = {
							capital_scope = { region = british_isles_region }
							num_of_heavy_ship = 5
						}
					}
				"
				first_effect = "
					create_admiral = { tradition = 100 }
					
					custom_tooltip = \" \"
					
					add_navy_tradition = 25
				"
				second_custom_tooltip = GER_if_done_via_conquest
				second_limit = "
					num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
						region = british_isles_region
						value = 8
					}
				"
				second_effect = "
					create_general = { tradition = 80 }
			
					custom_tooltip = \" \"
					
					add_army_tradition_or_mil_power = { amount = 15 }
				"
			}
		}
	}
}

JHC_GER_2 = {
	slot = 2
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Winds of Change"
	}
	potential = {
		OR = {
			tag = GER
			tag = HLR
		}
		NOT = { map_setup = map_setup_random }
		has_dlc = "Winds of Change"
	}
	has_country_shield = yes
	
	JHC_GER_blood_and_iron = {
		icon = Blood_Iron
		required_missions = {  }
		provinces_to_highlight = {
			NOT = { owned_by = ROOT }
			OR = {
				region = south_german_region
				region = north_german_region
			}
		}
		trigger = {
			num_of_owned_provinces_with = {
				value = 50
				OR = {
					region = north_german_region
					region = south_german_region
				}
			}
		}
		effect = {
			give_claims = { region = low_countries_region }
			give_claims = { region = poland_region }
			give_claims = { area = west_prussia_area }
			give_claims = { area = east_prussia_area }
			give_claims = { area = denmark_area }
			give_claims = { area = jutland_area }
			
			custom_tooltip = " "
			
			add_country_modifier = {
				name = GER_blut_and_eisen
				duration = 10950 
			}
			
			define_advisor = {
				type = statesman
				skill = 3
				culture = ROOT
				religion = ROOT
				cost_multiplier = 0.5 
			}
		}
	}
	
	GER_break_the_habsburgs = {
		icon = lead_the_empire
		required_missions = { JHC_GER_blood_and_iron }
		position = 3
		provinces_to_highlight = {
			OR = {
				AND = {
					owned_by = HAB
					NOT = {
						OR = {
							NOT = {
								exists = HAB
							}
							ROOT = { has_won_war_against = { who = HAB } }
						}
					}
				}
				AND = {
					is_part_of_hre = yes
					NOT = {
						OR = {
							NOT = { hre_size = 1 }
							ROOT = { is_emperor = yes }
						}
					}
				}
				AND = {
					OR = {
						area = austria_proper_area
						area = inner_austria_area
						area = tirol_area
					}
					NOT = {
						country_or_non_sovereign_subject_holds = ROOT 
					}
					NOT = {
						ROOT = {
							num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
								OR = {
									area = austria_proper_area
									area = inner_austria_area
									area = tirol_area
								}
								value = 8
							}
						}
					}
				}
			}
		}
		trigger = {
			OR = {
				NOT = {
					exists = HAB
				}
				has_won_war_against = { who = HAB }
			}
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				OR = {
					area = austria_proper_area
					area = inner_austria_area
					area = tirol_area
				}
				value = 8
			}
			if = {
				limit = {
					tag = GER
				}
				OR = {
					NOT = { hre_size = 1 }
					is_emperor = yes
				}
			}
		}
		effect = {	
			give_claims = { region = italy_region }
			
			custom_tooltip = " "
			
			if = {
				limit = {
					NOT = {
						OR = {
							was_tag = HAB
							dynasty = "von Habsburg"
							tag = HLR
						}
					}
				}
				add_country_modifier = {
					name = GER_defeated_habsburgs
					duration = -1
				}
			}
			else = {
				add_stability_or_adm_power = yes
			}
			
			add_army_tradition_or_mil_power = { amount = 15 }
		}
	}
	
	JHC_GER_italy = {
		icon = complete_the_risorgimento
		required_missions = { GER_break_the_habsburgs }
		position = 4
		provinces_to_highlight = {
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
			region = italy_region
		}
		trigger = {
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				value = 40
				region = italy_region
			}
		}
		effect = {
			if = {
				limit = { 
					tag = HLR
				}
				country_event_with_effect_insight = {
					id = flavor_ger.6
					effect = "
						add_country_modifier = {
							name = GER_shadow_kingdom
							duration = -1
						}
						
						custom_tooltip = GER_get_full_core_on_cored_italian_provinces
						
						custom_tooltip = \" \"

						custom_tooltip = GER_all_italian_provs_lose_nationalism
					"
				}
			}
			else = {
				add_country_modifier = {
					name = GER_enemies_remain_divided
					duration = -1
				}
				
				add_adm_power = 100
				
				custom_tooltip = " "
			
				complex_dynamic_effect = {
					first_custom_tooltip = GER_if_italy_hasnt_formed
					first_limit = "
						NOT = { has_global_flag = formed_italy_flag_global } 
					"
					first_effect = "
						add_power_projection_mission = { amount = 20 }
					"
				}
			}
		}
	}
	
	JHC_GER_imperial_navy = {
		icon = imperial_navy
		position = 5
		required_missions = {  }
		trigger = {
			num_of_heavy_ship = 30
			OR = {
				navy_size = 50 # modified
				navy_size_percentage = 0.9
			}
			num_of_admirals = 1
		}
		effect = {
			add_navy_tradition = 25
			
			custom_tooltip = " "
			
			if = {
				limit = {
					has_dlc = "Rule Britannia"
				}
				if = {
					limit = {
						primary_culture = lower_saxon
					}
					custom_tooltip = GER_upgrade_the_hanseatic_doctrine
					set_country_flag = GER_upgrade_the_hanseatic_doctrine_flag
					tooltip = {
						add_country_modifier = {
							name = GER_hanseatic_doctrine_upgrade
							duration = -1
						}
					}
					hidden_effect = {
						if = {
							limit = {
								has_naval_doctrine = hanseatic_trade_fleet
							}
							add_country_modifier = {
								name = GER_hanseatic_doctrine_upgrade
								duration = -1
							}
						}
					}
				}
				else = {
					custom_tooltip = GER_unlock_the_hanseatic_doctrine
					set_country_flag = GER_unlock_the_hanseatic_doctrine_flag
				}
				custom_tooltip = " "
			}
			else = {
				add_country_modifier = {
					name = GER_doctrine_of_the_navy
					duration = -1
				}
			}
			
			give_claims = { region = southern_africa_superregion }
		}
	}
	
	JHC_GER_scramble_for_africa = {
		icon = scramble_for_africa
		required_missions = { JHC_GER_imperial_navy }
		position = 6
		provinces_to_highlight = {
			superregion = southern_africa_superregion
			NOT = { owned_by = ROOT }
		}
		trigger = {
			num_of_owned_provinces_with = {
				superregion = southern_africa_superregion
				value = 10
			}
		}
		effect = {
			add_mercantilism = 5
			
			custom_tooltip = " "
			
			give_claims = { area = shandong_area }
			give_claims = { area = south_hebei_area }
			give_claims = { area = hebei_area }
			
			custom_tooltip = GER_get_claims_on_provinces_in_coromandel_malacca_moluccas
			hidden_effect = {
				1340 = {
					every_trade_node_member_province = {
						limit = {
							NOT = { is_core = ROOT }
							NOT = { is_permanent_claim = ROOT }
						}
						add_permanent_claim = ROOT
					}
				}
				1361 = {
					every_trade_node_member_province = {
						limit = {
							NOT = { is_core = ROOT }
							NOT = { is_permanent_claim = ROOT }
						}
						add_permanent_claim = ROOT
					}
				}
				1357 = {
					every_trade_node_member_province = {
						limit = {
							NOT = { is_core = ROOT }
							NOT = { is_permanent_claim = ROOT }
						}
						add_permanent_claim = ROOT
					}
				}
			}
			
			custom_tooltip = " "
			
			country_event_with_option_insight = {
				id = flavor_ger.7
				#claim existing colonies
				option_1 = "
					custom_tooltip = GER_unlock_cb_on_european_colonists
				"
				#claim lands held by natives
				option_2 = "
					custom_tooltip = GER_unlock_cb_on_african_natives
				"
			}
		}
	}
	JHC_GER_overseas_empire = {
		icon = overseas_empire
		required_missions = { JHC_GER_scramble_for_africa }
		position = 7
		provinces_to_highlight = {
			OR = {
				superregion = india_superregion
				superregion = east_indies_superregion
				AND = {
					superregion = china_superregion
					has_port = yes
				}
			}
			NOT = { owned_by = ROOT }
		}
		trigger = {
			num_of_owned_provinces_with = {
				OR = {
					superregion = india_superregion
					superregion = east_indies_superregion
				}
				value = 20
			}
			any_owned_province = {
				superregion = china_superregion
				has_port = yes
			}
		}
		effect = {
			set_country_flag = JHC_GER_overseas_empire_flag
			if = {
				limit = {
					has_dlc = "Dharma"
				}
				add_country_modifier = {
					name = "german_asia_companies"
					duration = -1
				}
			}
			else = {
				add_country_modifier = {
					name = "german_asia_companies_backup"
					duration = -1
				}
			}
			
			add_years_of_income = 1
			
			custom_tooltip = " "
			
			custom_tooltip = GER_most_developed_province_in_china_superregion
			tooltip = {
				if = {
					limit = {
						NOT = {
							any_owned_province = {
								superregion = china_superregion
								has_port = yes
							}
						}
					}
					2139 = {
						add_province_triggered_modifier = GER_treaty_port
					}
				}
				else = {
					random_owned_province = {
						limit = {
							superregion = china_superregion
							has_port = yes
							NOT = {
								any_owned_province = {
									superregion = china_superregion
									has_port = yes
									higher_development_than = PREV
								}
							}
						}
						add_province_triggered_modifier = GER_treaty_port
					}
				}
			}
			custom_tooltip = GER_treaty_port_info
			hidden_effect = {
				pick_best_provinces = {
					1 = yes
					scope = every_owned_province
					scale = higher_development_than
					global_trigger = "
						superregion = china_superregion
						has_port = yes
					"
					event_target_name = german_target
				}
				if = {
					limit = {
						has_saved_event_target = german_target_1
					}
					event_target:german_target_1 = {
						add_province_triggered_modifier = GER_treaty_port
					}
				}
			}
		}
	}
}

JHC_GER_3 = {
	slot = 3
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Winds of Change"
	}
	potential = {
		OR = {
			tag = GER
			tag = HLR
		}
		NOT = { map_setup = map_setup_random }
		has_dlc = "Winds of Change"
	}
	has_country_shield = yes

	JHC_GER_poland = {
		icon = invade_poland
		required_missions = { JHC_GER_blood_and_iron }
		position = 2
		provinces_to_highlight = {
			OR = {
				AND = {
					region = poland_region
					NOT = { country_or_non_sovereign_subject_holds = ROOT }
					NOT = {
						ROOT = {
							num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
								value = 25
								region = poland_region
							}
						}
					}
				}
				AND = {
					region = poland_region
					has_terrain = farmlands
					NOT = { country_or_non_sovereign_subject_holds = ROOT }
					NOT = {
						ROOT = {
							num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
								value = 5
								region = poland_region
								has_terrain = farmlands
							}
						}
					}
				}
				AND = {
					province_id = 1841
					NOT = { country_or_non_sovereign_subject_holds = ROOT }
				}
			}
		}
		trigger = {
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				value = 25
				region = poland_region
			}
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				value = 5
				region = poland_region
				has_terrain = farmlands
			}
			1841 =  { country_or_non_sovereign_subject_holds = ROOT }
		}
		effect = {
			give_claims = { region = baltic_region }
			give_claims = { region = scandinavia_region }
			give_claims = { region = carpathia_region }
			
			custom_tooltip = " "
			
			if = {
				limit = {
					has_dlc = "Leviathan"
				}
				1841 = {
					custom_tooltip = GER_upgrade_marienburg
					
					custom_tooltip = " "
				}
				hidden_effect = {
					while = {
						limit = {
							1841 = {
								NOT = {
									has_great_project = {
										type = malbork_castle 
										tier = 2
									}
								}
							}
						}
						1841 = {
							add_great_project_tier = {
								type = malbork_castle 
								tier = 1
							}
						}
					}
				}
			}
			else = {
				1841 = {
					add_province_modifier = {
						name = GER_marienburg_castle_seized
						duration = -1
					}
				}
			}
			
			country_event_with_option_insight = {
				id = flavor_ger.4 
				option_1 = "
					flavor_ger_4_option_1_effect = yes
				"
				option_2 = "
					add_accepted_culture_or_dip_power = { culture = polish value = 100 }
		
					custom_tooltip = \" \"
					
					custom_tooltip = GER_every_polish_province_loses_10_separatism
				"
			}
		}
	}
	
	JHC_GER_caprathian_conquest = {
		icon = the_hungarian_question
		required_missions = { JHC_GER_poland GER_break_the_habsburgs }
		position = 4
		provinces_to_highlight = {
			OR = {
				AND = {
					region = carpathia_region
					NOT = { country_or_non_sovereign_subject_holds = ROOT }
					NOT = {
						ROOT = {
							num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
								region = carpathia_region
								value = 20
							}
						}
					}
				}
				AND = {
					OR = {
						province_id = 1951
						province_id = 4128
					}
					NOT = { country_or_non_sovereign_subject_holds = ROOT }
				}
			}
		}
		trigger = {
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				region = carpathia_region
				value = 20
			}
			
			1951 = { country_or_non_sovereign_subject_holds = ROOT }
			4128 = { country_or_non_sovereign_subject_holds = ROOT }
		}
		effect = {
			country_event_with_option_insight = {
				id = flavor_ger.5
				option_1 = "
					custom_tooltip = GER_unlock_diploma_andreanum
					
					custom_tooltip = \" \"
					
					1951 = {
						add_local_autonomy = -20
						add_province_modifier = {
							name = GER_transylvanian_saxon_minority
							duration = -1
						}
					}
					
					4128 = {
						add_local_autonomy = -20
						add_province_modifier = {
							name = GER_transylvanian_saxon_minority
							duration = -1
						}
					}
				"
				option_2 = "
					add_country_modifier = {
						name = GER_refused_to_renew_diploma_andreanum
						duration = -1
					}
					
					custom_tooltip = GER_distribute_10_base_tax_5_base_production
					
					custom_tooltip = \" \"
					
					add_accepted_culture_or_dip_power = { culture = transylvanian }
				"
			}
		}
	}
	
	GER_silesia = {
		icon = mission_rb_build_furnaces
		required_missions = { JHC_GER_protected_markets }
		position = 5
		provinces_to_highlight = {
			area = silesia_area
			OR = {
				NOT = {
					owned_by = ROOT
				}
				has_manufactory_trigger = no
			}
		}
		trigger = {
			development_in_provinces = {
				area = silesia_area
				has_manufactory_trigger = yes
				value = 110
			}
			263 = { owned_by = ROOT }
		}
		effect = {
			if = {
				limit = {
					has_dlc = "Rule Britannia"
				}
				263 = {
					custom_tooltip = GER_early_coal
					set_province_flag = GER_specific_coal
				}
			}
			else = {
				263 = {
					add_province_triggered_modifier = GER_early_coal_mining
				}
				custom_tooltip = GER_early_coal_mining_reqs
			}
			
			custom_tooltip = " "
			
			add_country_modifier = {
				name = GER_industrialization_silesia
				duration = -1
			}
		}
	}

	GER_wilhelmshaven = {
		icon = mission_wilhelmshaven
		position = 6
		required_missions = { JHC_GER_imperial_navy }
		provinces_to_highlight = {
			province_id = 55
		}
		trigger = {
			55 = {
				owned_by = ROOT
				has_shipyard_building_trigger = yes
				has_dock_building_trigger = yes
				num_of_times_improved = 10
			}
		}
		effect = {
			55 = {
				change_province_name = "Wilhelmshaven"
				
				custom_tooltip = " "
				
				if = {
					limit = {
						has_dlc = "Golden Century"
					}
					hidden_effect = {
						create_flagship = {
							type = heavy_ship
						}
					}
					custom_tooltip = GER_get_a_heavy_flagship_in_this
					custom_tooltip = " "
				}
				
				add_permanent_province_modifier = {
					name = GER_wilhelmshaven_modifier
					duration = -1
				}
			}
			
			
		}
	}
}

JHC_GER_4 = {
	slot = 4
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Winds of Change"
	}
	potential = {
		OR = {
			tag = GER
			tag = HLR
		}
		NOT = { map_setup = map_setup_random }
		has_dlc = "Winds of Change"
	}
	has_country_shield = yes
	
	GER_secure_north = {
		icon = unite_the_league
		required_missions = { }
		position = 1
		provinces_to_highlight = {
			OR = {
				AND = {
					province_id = 13
					NOT = { owned_by = ROOT }
				}
				AND = {
					region = scandinavia_region
					NOT = {
						OR = {
							country_or_non_sovereign_subject_holds = ROOT
							owner = {
								alliance_with = ROOT
							}
						}
					}
				}
			}
		}
		trigger = {
			owns = 13 #schleswig
			calc_true_if = {
				scandinavia_region = {
					type = all
					OR = {
						country_or_non_sovereign_subject_holds = ROOT
						owner = {
							alliance_with = ROOT
						}
					}
				}
				amount = 7
			}
			
		}
		effect = {
			13 = {
				add_province_modifier = {
					name = GER_resolved_the_border_dispute
					duration = -1

				}
				change_culture = lower_saxon
			}
			
			custom_tooltip = " "
			
			45 = {
				add_trade_modifier = {
					who = ROOT
					duration = -1
					power = 50
					key = GER_passage_through_the_sound
				}
			}
			
			custom_tooltip = " "
			
			add_navy_tradition = 10
		}
	}
	
	JHC_GER_baltic = {
		icon = mission_rb_scottish_north_sea_trade
		required_missions = { JHC_GER_poland GER_secure_north }
		position = 3
		provinces_to_highlight = {
			OR = {
				region = baltic_region
				region = scandinavia_region
				province_id = 1926
			}
			NOT = { country_or_non_sovereign_subject_holds = ROOT }
		}
		trigger = {
			num_of_provinces_owned_or_owned_by_non_sovereign_subjects_with = {
				value = 30
				OR = {
					region = baltic_region
					region = scandinavia_region
				}
			}
			1926 = {
				is_strongest_trade_power = ROOT
			}
		}
		effect = {
			create_general = {
				tradition = 100
				culture = swedish
			}
			
			custom_tooltip = " "
			
			1926 = {
				add_trade_modifier = {
					who = ROOT
					duration = -1
					power = 50
					key = GER_ostsee
				}
			}
			
			custom_tooltip = " "
			
			add_years_of_trade_income = {
				years = 2
				custom_tooltip = BYZ_add_2_years_of_trade_income
			}
		}
	}
	
	JHC_GER_protected_markets = {
		icon = defend_the_city
		required_missions = { JHC_GER_urbanization }
		position = 4
		provinces_to_highlight = {
			OR = {
				AND = {
					OR = {
						province_id = 61
						province_id = 45
						province_id = 134
						province_id = 1876
					}
					NOT = {
						trade_share = {
							country = ROOT
							share = 75
						}
					}
				}
			}
		}
		trigger = {
			61 = {
				trade_share = {
					country = ROOT
					share = 75
				}
			}
			45 = {
				trade_share = {
					country = ROOT
					share = 75
				}
			}
			134 = {
				trade_share = {
					country = ROOT
					share = 75
				}
			}
			1876 = {
				trade_share = {
					country = ROOT
					share = 75
				}
			}
		}
		effect = {
			set_country_flag = GER_protected_markets_flag
			if = {
				limit = {
					has_dlc = "Mare Nostrum"
				}
				add_country_modifier = {
					name = "protected_markets_modifier"
					duration = -1
				}
			}
			else = {
				add_mercantilism = 10
				
				custom_tooltip = " "
			}
			
			add_country_modifier = {
				name = GER_a_turn_inwards
				duration = 7300
			}
			
			custom_tooltip = GER_a_turn_towards_mercantilism_privilege
			set_country_flag = GER_a_turn_towards_mercantilism_privilege_flag
		}
	}
	
	JHC_GER_rhineland = {
		icon = industrialized_rhineland
		required_missions = { JHC_GER_protected_markets }
		position = 5
		provinces_to_highlight = {
			OR = {
				area = north_rhine_area
				area = lower_rhineland_area
				area = palatinate_area
			}
			OR = {
				NOT = {
					owned_by = ROOT
				}
				has_manufactory_trigger = no
			}
		}
		trigger = {
			development_in_provinces = {
				OR = {
					area = north_rhine_area
					area = lower_rhineland_area
					area = palatinate_area
				}
				has_manufactory_trigger = yes
				value = 250
			}
			1878 = { owned_by = ROOT }
		}
		effect = {
			if = {
				limit = {
					has_dlc = "Rule Britannia"
				}
				1878 = {
					custom_tooltip = GER_early_coal
					set_province_flag = GER_specific_coal
				}
			}
			else = {
				1878 = {
					add_province_triggered_modifier = GER_early_coal_mining
				}
				custom_tooltip = GER_early_coal_mining_reqs
			}
			
			custom_tooltip = " "
			
			add_country_modifier = {
				name = GER_industrialization_rhineland
				duration = -1
			}
		}
	}
	
	JHC_GER_dominant_economy = {
		icon = dominant_economy
		required_missions = { JHC_GER_protected_markets GER_silesia JHC_GER_rhineland }
		position = 6
		provinces_to_highlight = {
			owner = {
				capital_scope = {
					continent = europe
				}
				monthly_income = ROOT
				NOT = { tag = ROOT }
			}
			is_capital = yes
		}
		trigger = {
			if = {
				limit = {
					has_dlc = "Emperor"
				}
				OR = {
					custom_trigger_tooltip = {
						tooltip = dominant_economy_tt
						NOT = {
							any_country = {
								capital_scope = {
									continent = europe
								}
								monthly_income = ROOT
							}
						}
					}
					is_hegemon_of_type = economic_hegemon
				}
			}
			else = {
				custom_trigger_tooltip = {
					tooltip = dominant_economy_tt
					NOT = {
						any_country = {
							capital_scope = {
								continent = europe
							}
							monthly_income = ROOT
						}
					}
				}
			}
			treasury = 10000
			is_bankrupt = no
			NOT = { num_of_loans = 5 }
			home_trade_node = {
				trade_share = {
					country = ROOT
					share = 90
				}
			}
			monthly_income = 600
		}
		effect = {
			add_adm_power = 150
			
			custom_tooltip = " "
			
			add_country_modifier_for_age = {
				name = GER_economic_influence
				age = age_of_absolutism
				else = "
					add_dip_power = 150
				"
			}
			
			custom_tooltip = GER_merge_industrial_modifier_into_one
			hidden_effect = {
				add_country_modifier = {
					name = GER_industrialization
					duration = -1
				}
				remove_country_modifier = GER_industrialization_rhineland
				remove_country_modifier = GER_industrialization_silesia
			}
		}
	}
}

JHC_GER_5 = {
	slot = 5
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Winds of Change"
	}
	potential = {
		OR = {
			tag = GER
			tag = HLR
		}
		NOT = { map_setup = map_setup_random }
		has_dlc = "Winds of Change"
	}
	has_country_shield = yes

	GER_german_industry = {
		icon = saxon_manufacturing
		required_missions = { }
		position = 1
		provinces_to_highlight = {
			owned_by = ROOT 
			NOT = { has_manufactory_trigger = yes }
		}
		trigger = {
			num_of_owned_provinces_with = {
				has_manufactory_trigger = yes
				value = 30
			}
		}
		effect = {	
			change_government_reform_progress = 100
			
			custom_tooltip = " "
			
			add_country_modifier = {
				name = GER_rapid_industrialization
				duration = 10950
			}
		
			custom_tooltip = GER_may_build_canal_regardless_of_tech
		}
	}
	
	JHC_GER_urbanization = {
		icon = promote_urbanization
		required_missions = { GER_german_industry }
		position = 3
		provinces_to_highlight = {
			OR = {
				region = north_german_region
				region = south_german_region
			}
			OR = {
				NOT = { owned_by = ROOT }
				NOT = { development = 30 }
			}
		}
		trigger = {
			num_of_owned_provinces_with = {
				value = 10
				OR = {
					region = north_german_region
					region = south_german_region
				}
				development = 30
			}
			custom_trigger_tooltip = {
				tooltip = ITA_developed_provinces_at_least_50_times
				check_variable = {
					which = num_of_times_developed
					value = 50
				}
			}
		}
		effect = {
			if = {
				limit = {
					has_estate = estate_burghers
				}
				add_estate_loyalty_modifier = {
					estate = estate_burghers
					desc = EST_VAL_GER_URBAN
					loyalty = 15
					duration = -1
				}
				
				custom_tooltip = " "
			}
			else = {
				add_mercantilism = 5
				
				custom_tooltip = " "
			}
			
			if = {
				limit = {
					has_dlc = "Domination"
				}
				custom_tooltip = ITA_upgrade_city_expansion_privileges	
				set_country_flag = ITA_upgrade_city_expansion_privileges_flag
			}
			else = {
				add_stability_or_adm_power = yes 
			}
			
			custom_tooltip = " "
			
			custom_tooltip = GER_3_most_developed_provinces
			tooltip = {
				add_permanent_province_modifier = {
					name = GER_major_city
					duration = -1
				}
			}
			
			hidden_effect = {
				country_event = { id = flavor_ger.3 } #hidden, executing the effect without error
			}
		}
	}
	
	GER_zollverein = {
		icon = reform_the_state
		required_missions = { JHC_GER_urbanization }
		position = 5
		provinces_to_highlight = {
			owned_by = ROOT 
			local_autonomy_above_min = 10
		}
		trigger = {
			reform_level = 8
			NOT = { average_autonomy_above_min = 10 }
			monthly_income = 200
			has_adm_advisor_3 = yes
			has_dip_advisor_3 = yes
		}
		effect = {
			#estate privilege here for sure
			custom_tooltip = GER_enable_the_customs_union_estate_privilege
			
			custom_tooltip = " "
			
			add_years_of_owned_provinces_production_income = {
				years = 3
				trigger = {
					always = yes
				}
				custom_tooltip = GER_from_3_years_of_prod_income
			}
			
			custom_tooltip = " "
			
			complex_dynamic_effect = {
				first_custom_tooltip = GER_if_we_have_a_treasurer
				first_limit = "
					advisor = treasurer
				"
				first_effect = "
					add_years_of_owned_provinces_production_income = {
						years = 1.5
						trigger = {
							always = yes
						}
						custom_tooltip = GER_from_1.5_years_of_prod_income
					}
				"
			}
		}
	}
	
	GER_kiel_canal = {
		icon = construct_the_kiel_canal
		required_missions = { GER_zollverein }
		position = 7
		provinces_to_highlight = {
			province_id = 1775
		}
		trigger = {
			1775 = {
				owned_by = ROOT
				province_trade_power = 50
				has_great_project = {
					type = kiel_canal
					tier = 2
				}
			}
		}
		effect = {
			custom_tooltip = GER_kiel_canal_will_now_give_better_traders_and_merchants
			
			custom_tooltip = " "
			
			custom_tooltip = GER_upgrade_traders
			set_country_flag = GER_upgrade_traders_flag
			
			custom_tooltip = " "
			
			1775 = {
				add_base_tax = 2
				add_base_production = 2
				add_base_manpower = 1
			}
			4141 = {
				add_base_tax = 2
				add_base_production = 2
				add_base_manpower = 1
			}
		}
	}
}

JHC_GER_3_ger = {
	slot = 3
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Winds of Change"
	}
	potential = {
		tag = GER
		NOT = { map_setup = map_setup_random }
		has_dlc = "Winds of Change"
	}
	has_country_shield = yes
	
	GER_place_in_the_sun = {
		icon = sway_cologne
		required_missions = { }
		position = 7
		provinces_to_highlight = {
		}
		trigger = {
			if = {
				limit = {
					has_reform = german_cultural_disunity_reform
				}
				GER_num_of_cultures_accepted = {
					amount = 7
				}
			}
			
			prestige = 80
			OR = {
				power_projection = 50
				monthly_dip = 11
			}
		}
		effect = {
			add_prestige_or_monarch_power = { amount = 10 }
			
			custom_tooltip = " "
			
			change_government_reform_progress = 100
		
			if = {
				limit = {
					has_reform = german_cultural_disunity_reform
				}
				custom_tooltip = " "
				remove_government_reform = german_cultural_disunity_reform
			}
		}
	}
	
	GER_diplomatic_revolution = {
		icon = imperial_ascendancy
		required_missions = { GER_place_in_the_sun JHC_GER_chancellorship }
		position = 8
		provinces_to_highlight = {
			OR = {
				has_dlc = "Rights of Man"
				has_dlc = "Emperor"
			}
			owner = {
				NOT = { tag = ROOT }
				NOT = { great_power_rank = 6 }
			}
		}
		trigger = {
			if = {
				limit = {
					OR = {
						has_dlc = "Rights of Man"
						has_dlc = "Emperor"
					}
				}
				NOT = { great_power_rank = 6 }
			}
			else = {
				total_development = 500
			}
			army_size = 70 # modified
			power_projection = 25
			if = {
				limit = {
					has_dlc = "Mandate of Heaven"
				}
				num_of_age_rewards_taken = {
					amount = 4
				}
			}
		}
		effect = {
			if = {
				limit = {
					has_dlc = "Mandate of Heaven"
				}
				custom_tooltip = ITA_gain_100_splendor
				set_country_flag = ITA_gain_100_splendor_flag
				
				custom_tooltip = " "
			}
			
			add_stability_or_adm_power = yes 
			
			custom_tooltip = " "
			
			add_country_modifier = {
				name = GER_diplomatic_revolution
				duration = -1
			}
		}
	}
	
	JHC_GER_concert_of_europe = {
		icon = concert_of_europe
		required_missions = { GER_diplomatic_revolution }
		position = 9
		trigger = {
			OR = {
				power_projection = 75
				total_development = 2500
			}
			any_ally = {
				total_own_and_non_tributary_subject_development = 500
			}
			if = {
				limit = {
					any_rival_country = {
						always = yes #checks if we have any rival
					}
				}
				any_rival_country = {
					total_own_and_non_tributary_subject_development = 500
				}
			}
			else = {
				custom_trigger_tooltip = {
					tooltip = kaiserreich_tt
					NOT = {
						any_country =  { total_development = ROOT }
					}
				}
			}
		}
		effect = {
			if = {
				limit = {
					OR = {
						has_dlc = "Rights of Man"
						has_dlc = "Emperor"
					}
				}
				custom_tooltip = GER_buff_great_power_interactions
				set_country_flag = GER_buff_great_power_interactions_flag
				if = {
					limit = {
						OR = {
							has_dlc = "The Cossacks"
							has_dlc = "Leviathan"
						}
					}
					custom_tooltip = GER_buff_influence_nation
					set_country_flag = GER_buff_influence_nation_flag
				}
				
				custom_tooltip = " "
			}
			
			add_country_modifier = {
				name = "ger_concert_of_europe"
				duration = -1
			}
			
			add_dip_power = 100
		}
	}
	JHC_GER_crush_the_revolution = {
		icon = crush_the_revolution
		position = 10
		required_missions = { JHC_GER_concert_of_europe JHC_GER_junkers }
		provinces_to_highlight = {
			is_capital = yes
			owner = {
				is_revolution_target = yes
			}
		}
		trigger = {
			OR = {
				has_reform = revolutionary_empire_reform
				has_reform = revolutionary_republic_reform
				any_known_country = {
					is_revolution_target = yes
					war_with = ROOT
					capital_scope = {
						controlled_by = ROOT
					}
				}
				custom_trigger_tooltip = {
					tooltip = center_of_revolution.3000.A.tt
					has_global_flag = no_more_revolutions_ever
				}
			}
		}
		effect = {
			complex_dynamic_effect = {
				first_custom_tooltip = GER_if_done_via_revolution_destruction
				first_limit = "
					OR = {
						any_known_country = {
							is_revolution_target = yes
							war_with = ROOT
							capital_scope = {
								controlled_by = ROOT
							}
						}
						custom_trigger_tooltip = {
							tooltip = center_of_revolution.3000.A.tt
							has_global_flag = no_more_revolutions_ever
						}
					}
				"
				first_effect = "
					add_country_modifier = {
						name = ger_reactionary_zeal
						duration = -1
					}
					
					add_permanent_power_projection = {
						amount = 10
						type = GER_crushed_revolution
					}
				"
				second_custom_tooltip = GER_if_done_via_revolution
				second_limit = "
					OR = {
						has_reform = revolutionary_empire_reform
						has_reform = revolutionary_republic_reform
					}
				"
				second_effect = "
					add_country_modifier = {
						name = GER_revolutionary
						duration = -1
					}
					
					if = {
						limit = {
							has_dlc = \"Emperor\"
						}
						add_country_modifier = {
							name = GER_guard_upgrade
							duration = -1
						}
					}
				"
			}
		}
	}
}

JHC_GER_4_ger = {
	slot = 4
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Winds of Change"
	}
	potential = {
		tag = GER
		NOT = { map_setup = map_setup_random }
		has_dlc = "Winds of Change"
	}
	has_country_shield = yes
	
	JHC_GER_chancellorship = {
		icon = establish_the_chancellorship
		required_missions = {  }
		provinces_to_highlight = {
			owned_by = ROOT
			is_capital = yes
			has_courthouse_building_trigger = no
		}
		position = 7
		trigger = {
			monthly_dip = 10
			capital_scope = {
				has_courthouse_building_trigger = yes
			}
			is_in_deficit = no
			custom_trigger_tooltip = {
				tooltip = ger_chancellor_tt
				has_mil_advisor_3 = yes
				has_adm_advisor_3 = yes
				has_dip_advisor_3 = yes
			}
		}
		effect = {
			add_country_modifier = {
				name = "ger_chancellorship"
				duration = -1
			}
			
			if = {
				limit = {
					has_dlc = "Domination"
				}
				custom_tooltip = GER_upgrade_the_statesman_privilege
				set_country_flag = GER_upgrade_the_statesman_privilege_flag
			}
			else = {
				add_dip_power = 200
			}
			
			custom_tooltip = " "
			
			country_event_with_option_insight = {
				id = flavor_ger.8
				option_1 = "
					custom_tooltip = GER_statesmen_abso
					set_country_flag = GER_statesmen_abso_flag
					
					custom_tooltip = \" \"
					
					add_country_modifier = {
						name = GER_max_abso
						duration = -1
					}
				"
				option_2 = "
					custom_tooltip = GER_statesmen_morale
					set_country_flag = GER_statesmen_morale_flag
					
					custom_tooltip = \" \"
					
					add_yearly_manpower = 0.5
				"
				option_3 = "
					custom_tooltip = GER_statesmen_autonomy
					set_country_flag = GER_statesmen_autonomy_flag
					
					custom_tooltip = \" \"
					
					add_stability_or_adm_power = yes
				"
			}
		}
	}
	JHC_GER_junkers = {
		icon = Control_Junkers
		position = 9
		required_missions = { JHC_GER_chancellorship GER_diplomatic_revolution }
		trigger = {
			if = {
				limit = {
					has_estate = estate_nobles
				}
				estate_loyalty = {
					estate = estate_nobles
					loyalty = 60
				}
			}
			crown_land_share = 70
		}
		effect = {
			if = {
				limit = {
					has_estate = estate_nobles
				}
				add_estate_loyalty_modifier = {
					estate = estate_nobles
					desc = EST_VAL_GERMAN_JUNKERS
					loyalty = 15
					duration = -1
				}
				
				custom_tooltip = " "
				
				add_country_modifier = {
					name = GER_privilege_slot
					duration = -1
				}
			}
			else = {
				add_adm_power = 100
				custom_tooltip = " "
			}
			
			if = {
				limit = {
					has_estate = estate_nobles
				}
				if = {
					limit = {
						OR = {
							has_reform = prussian_monarchy
							has_reform = prussian_monarchy_base
							has_reform = prussian_republic_reform
						}
						has_dlc = "Emperor"
					}
					custom_tooltip = GER_upgrade_the_junker_primacy
					set_country_flag = GER_upgrade_the_junker_primacy_flag
				}
				else = {
					custom_tooltip = GER_upgrade_primacy_of_the_nobility
					set_country_flag = GER_upgrade_primacy_of_the_nobility_flag
				}
				
				custom_tooltip = " "
				
				custom_tooltip = GER_give_5_mil_power_for_every_5_loyalty_at_75
				hidden_effect = {
					if = {
						limit = {
							estate_loyalty = {
								estate = estate_nobles
								loyalty = 75
							}
						}
						add_mil_power = 75
					}
					else_if = {
						limit = {
							estate_loyalty = {
								estate = estate_nobles
								loyalty = 70
							}
						}
						add_mil_power = 70
					}
					else_if = {
						limit = {
							estate_loyalty = {
								estate = estate_nobles
								loyalty = 65
							}
						}
						add_mil_power = 65
					}
					else_if = {
						limit = {
							estate_loyalty = {
								estate = estate_nobles
								loyalty = 60
							}
						}
						add_mil_power = 60
					}
					else_if = {
						limit = {
							estate_loyalty = {
								estate = estate_nobles
								loyalty = 55
							}
						}
						add_mil_power = 55
					}
					else_if = {
						limit = {
							estate_loyalty = {
								estate = estate_nobles
								loyalty = 50
							}
						}
						add_mil_power = 50
					}
					else_if = {
						limit = {
							estate_loyalty = {
								estate = estate_nobles
								loyalty = 45
							}
						}
						add_mil_power = 45
					}
					else_if = {
						limit = {
							estate_loyalty = {
								estate = estate_nobles
								loyalty = 40
							}
						}
						add_mil_power = 40
					}
					else_if = {
						limit = {
							estate_loyalty = {
								estate = estate_nobles
								loyalty = 35
							}
						}
						add_mil_power = 35
					}
					else_if = {
						limit = {
							estate_loyalty = {
								estate = estate_nobles
								loyalty = 30
							}
						}
						add_mil_power = 30
					}
					else_if = {
						limit = {
							estate_loyalty = {
								estate = estate_nobles
								loyalty = 25
							}
						}
						add_mil_power = 25
					}
					else_if = {
						limit = {
							estate_loyalty = {
								estate = estate_nobles
								loyalty = 20
							}
						}
						add_mil_power = 20
					}
					else_if = {
						limit = {
							estate_loyalty = {
								estate = estate_nobles
								loyalty = 15
							}
						}
						add_mil_power = 15
					}
					else_if = {
						limit = {
							estate_loyalty = {
								estate = estate_nobles
								loyalty = 10
							}
						}
						add_mil_power = 10
					}
					else_if = {
						limit = {
							estate_loyalty = {
								estate = estate_nobles
								loyalty = 5
							}
						}
						add_mil_power = 5
					}
					else = { }
				}
			}
		}
	}
}

JHC_GER_5_ger = {
	slot = 5
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Winds of Change"
	}
	potential = {
		tag = GER
		NOT = { map_setup = map_setup_random }
		has_dlc = "Winds of Change"
	}
	has_country_shield = yes
	
	JHC_GER_education = {
		icon = Compulsory_Education
		required_missions = { JHC_GER_chancellorship }
		provinces_to_highlight = {
			owned_by = ROOT
			NOT = { has_building = university }
		}
		position = 8
		trigger = {
			num_of_owned_provinces_with = {
				value = 10
				has_building = university
			}
		}
		effect = {
			add_country_modifier = {
				name = "ger_german_education"
				duration = -1
			}
			
			custom_tooltip = GER_can_have_radical_reforms_twice
			if = {
				limit = {
					NOT = { has_country_flag = radical_mercantilist_reforms }
				}
				set_country_flag = can_have_radical_reforms_twice
			}
			else = {
				clr_country_flag = radical_mercantilist_reforms
			}
			
			custom_tooltip = " "
			
			add_innovativeness_or_monarch_power = {
				amount = 5
				adm = 50
				dip = 50
				mil = 50
			}
		}
	}
	
	JHC_GER_kaiserreich = {
		icon = ger_kaiserreich
		required_missions = { JHC_GER_education JHC_GER_junkers }
		position = 10
		provinces_to_highlight = {
			is_capital = yes
			NOT = { owned_by = ROOT }
			owner = {
				total_development = ROOT 
			}
		}
		trigger = {
			custom_trigger_tooltip = {
				tooltip = kaiserreich_tt
				NOT = {
					any_country = {
						total_development = ROOT
					}
				}
			}
			if = {
				limit = {
					OR = {
						is_revolutionary = no
						NOT = { has_dlc = "Emperor" }
					}
				}
				absolutism = 100
			}
			else = {
				revolutionary_zeal = 100
			}
			
			OR = {
				government = monarchy
				government = republic
				government = theocracy
			}
		}
		effect = {
			add_prestige_or_monarch_power = { amount = 60 }
			
			custom_tooltip = " "
			
			add_power_projection_mission = { amount = 40 }
			
			custom_tooltip = " "
		
			country_event_with_effect_insight = {
				id = flavor_ger.11
				effect = "
					custom_tooltip = GER_unlock_reform
					
					GER_unlock_reform_based_on_culture = { reform = yes }
					
					custom_tooltip = \" \"
					
					custom_tooltip = GER_we_may_choose_not_to_take_it
				"
			}
		}
	}
}

JHC_GER_3_hlr = {
	slot = 3
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Winds of Change"
	}
	potential = {
		tag = HLR
		NOT = { map_setup = map_setup_random }
		has_dlc = "Winds of Change"
	}
	has_country_shield = yes
	
	JHC_GER_holy_state = {
		icon = holy_state
		required_missions = { HLR_renovation_imperii }
		position = 8
		trigger = {
			is_defender_of_faith = yes
			religious_unity = 0.9
			if = {
				limit = {
					has_estate = estate_church
				}
				OR = {
					estate_loyalty = {
						estate = estate_church
						loyalty = 60
					}
					num_of_estate_privileges = {	
						estate = estate_church
						value = 4
					}
				}
			}
		}
		effect = {
			add_country_modifier = {
				name = HLR_holy_state_mod
				duration = -1
			}
			
			add_stability_or_adm_power = yes 
			
			custom_tooltip = " "
			
			add_adm_power = 100
		}
	}
}

JHC_GER_4_hlr = {
	slot = 4
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Winds of Change"
	}
	potential = {
		tag = HLR
		NOT = { map_setup = map_setup_random }
		has_dlc = "Winds of Change"
	}
	has_country_shield = yes
	
	HLR_renovation_imperii = {
		icon = the_imperial_border
		required_missions = { }
		position = 7
		provinces_to_highlight = {
			is_core = ROOT 
			NOT = { owned_by = ROOT }
		}
		trigger = {
			total_development = 3000
			all_core_province = {
				owned_by = ROOT
			}
		}
		effect = {
			add_country_modifier = {
				name = HLR_a_new_age_dawns_for_europe
				duration = 10950
			}
			
			if = {
				limit = {
					has_dlc = "Rights of Man"
				}
				custom_tooltip = HLR_enable_iron_crowned_trait
				set_country_flag = HLR_enable_iron_crowned_trait_flag
			}
		}
	}
	
	JHC_GER_roman_politics = {
		icon = catholic_volunteers
		required_missions = { HLR_renovation_imperii }
		position = 8
		provinces_to_highlight = {
			province_id = 118
		}
		trigger = {
			if = {
				limit = {
					religion = catholic
				}
				OR = {
					is_papal_controller = yes
					invested_papal_influence = 40
				}
			}
			else = {
				118 = { country_or_non_sovereign_subject_holds = ROOT }
			}			
		}
		effect = {
			add_country_modifier = {
				name = HLR_roman_politics_mod
				duration = -1
			}
			
			define_advisor = {
				type = statesman
				skill = 3
				culture = ROOT
				religion = ROOT
				cost_multiplier = 0.5
			}
			
			custom_tooltip = " "
			
			add_dip_power = 100
		}
	}
	
	HLR_among_the_powers = {
		icon = switzerland_and_the_empire
		required_missions = { JHC_GER_centralized_empire JHC_GER_roman_politics JHC_GER_holy_state }
		position = 9
		provinces_to_highlight = {
			OR = {
				has_dlc = "Rights of Man"
				has_dlc = "Emperor"
			}
			owner = {
				NOT = { tag = ROOT }
				NOT = { great_power_rank = 3 }
			}
		}
		trigger = {
			if = {
				limit = {
					OR = {
						has_dlc = "Rights of Man"
						has_dlc = "Emperor"
					}
				}
				NOT = { great_power_rank = 3 }
			}
			else = {
				total_development = 200
			}
			army_size = 70 # modified
			power_projection = 25
			if = {
				limit = {
					has_dlc = "Mandate of Heaven"
				}
				num_of_age_rewards_taken = {
					amount = 4
				}
			}
		}
		effect = {
			if = {
				limit = {
					has_dlc = "Mandate of Heaven"
				}
				custom_tooltip = ITA_gain_100_splendor
				set_country_flag = ITA_gain_100_splendor_flag
				
				custom_tooltip = " "
			}
			
			hidden_effect = {
				remove_country_modifier = HLR_centralized_empire_mod
				remove_country_modifier = HLR_roman_politics_mod
				remove_country_modifier = HLR_holy_state_mod
				add_country_modifier = {
					name = HLR_holy_roman_imperial
					duration = -1
				}
			}
			custom_tooltip = HLR_united_modifiers
		}
	}
}

JHC_GER_5_hlr = {
	slot = 5
	generic = no
	ai = yes
	potential_on_load = {
		has_dlc = "Winds of Change"
	}
	potential = {
		tag = HLR
		NOT = { map_setup = map_setup_random }
		has_dlc = "Winds of Change"
	}
	has_country_shield = yes
	
	JHC_GER_centralized_empire = {
		icon = centralized_empire
		required_missions = { HLR_renovation_imperii }
		position = 8
		provinces_to_highlight = {
			owned_by = ROOT
			OR = {
				region = south_german_region
				region = north_german_region
			}
			local_autonomy = 10
		}
		trigger = {
			num_of_owned_provinces_with = {
				OR = {
					region = south_german_region
					region = north_german_region
				}
				NOT = { local_autonomy = 10 }
				value = 40
			}
		}
		effect = {
			add_country_modifier = {
				name = HLR_centralized_empire_mod
				duration = -1
			}
			
			custom_tooltip = HLR_distribute_dev_among_low_autonomy_provs
			hidden_effect = {
				for = {
					amount = 15
					effect = "
						random_owned_province = {
							limit = {
								OR = {
									region = south_german_region
									region = north_german_region
								}
								NOT = { local_autonomy = 10 }
							}
							add_random_development = 1 
						}
					"
				}
			}
			
			custom_tooltip = " "
			
			add_mil_power = 100
		}
	}
}