#Basically does the same thing as "TAG = GER", but has to be used since Germany is a cosmetic tag
trigger_is_germany = {
	OR = {
		#has_cosmetic_tag = PRS_GER_liberal_republic
		has_cosmetic_tag = PRS_GER_liberal_monarchy
		has_cosmetic_tag = PRS_GER_bismarck
		has_cosmetic_tag = PRS_GER_bismarck_hre
		has_cosmetic_tag = PRS_GER_bismarck_national
		has_cosmetic_tag = PRS_GER_bismarck_standard
		has_cosmetic_tag = PRS_GER_bismarck_imperial
		#has_cosmetic_tag = PRS_GER_socialist		
	}
}

PRS_trigger_formed_germany = {
	PRS = {
		OR = {
			#has_cosmetic_tag = PRS_GER_liberal_republic
			has_cosmetic_tag = PRS_GER_liberal_monarchy
			has_cosmetic_tag = PRS_GER_bismarck
			has_cosmetic_tag = PRS_GER_bismarck_hre
			has_cosmetic_tag = PRS_GER_bismarck_national
			has_cosmetic_tag = PRS_GER_bismarck_standard
			has_cosmetic_tag = PRS_GER_bismarck_imperial
			#has_cosmetic_tag = PRS_GER_socialist		
		}
	}
}

PRS_owns_all_ger_unify_state = {
	tag = PRS
	#Berlin
	owns_state = 951
	#Hannover
	59 = {
		OR = {
			owner = { tag = PRS }
			owner = { is_subject_of = PRS }
		}
	}
	#Saxony
	65 = {
		OR = {
			owner = { tag = PRS }
			owner = { is_subject_of = PRS }
		}
	}
	#Frankfurt
	869 = {
		OR = {
			owner = { tag = PRS }
			owner = { is_subject_of = PRS }
		}
	}
	#Wurttemberg
	50 = {
		OR = {
			owner = { tag = PRS }
			owner = { is_subject_of = PRS }
		}
	}
	#Bavaria
	52 = {
		OR = {
			owner = { tag = PRS }
			owner = { is_subject_of = PRS }
		}
	}
	#Baden
	744 = {
		OR = {
			owner = { tag = PRS }
			owner = { is_subject_of = PRS }
		}
	}
	OR = {
		28 = {
			OR = {
				owner = { tag = PRS }
				owner = { is_subject_of = PRS }
			}
		}
		8 = {
			OR = {
				owner = { tag = PRS }
				owner = { is_subject_of = PRS }
			}
		}
		has_country_flag = eoanb_flag_stalemate_fra_prs_war
		if = {
			limit = {
				has_global_flag = eoanb_flag_franco_prussian_war_ongoing
			}
			28 = {
				OR = {
					controller = { tag = PRS }
					controller = { is_subject_of = PRS }
				}
			}
			972 = {
				OR = {
					controller = { tag = PRS }
					controller = { is_subject_of = PRS }
				}
			}
		}
	}
}

#PRS_owns_all_ger_unify_state_socialist = {
#	tag = PRS
#	OR = {
#		AND = {
#			PRS = {
#				owns_state = 951
#				owns_state = 59
#				owns_state = 869
#				owns_state = 50
#				owns_state = 52
#			}
#		}
#		AND = {
#			any_country = {
#				is_subject_of = PRS
#				owns_state = 951
#				owns_state = 59
#				owns_state = 869
#				owns_state = 50
#				owns_state = 52
#			}
#		}
#	}
#}

schleswig_holstein_question_resolved = {
	custom_trigger_tooltip = {
		tooltip = schleswig_holstein_question_resolved_trigger_tt
		OR = {
			has_country_flag = eoanb_flag_avoided_2_schleswig_war
			has_country_flag = eoanb_flag_avoided_2_schleswig_war_gc
			has_country_flag = eoanb_flag_won_2_schleswig_war
			has_country_flag = eoanb_flag_won_2_schleswig_war_gc
			has_country_flag = eoanb_flag_stopgap_2_schleswig_war
			949 = {
				NOT = {
					owner = { is_subject_of = DEN }
				}
				OR = {
					owner = { tag = HLS }
					owner = { tag = SCH }
				}
			}
		}
	}
}

nation_is_in_zollverein = {
	OR = {	
		has_idea = GEC_idea_zollverein_1
		has_idea = GEC_idea_zollverein_2
		has_idea = GEC_idea_zollverein_3
		has_idea = GEC_idea_zollverein_associate
	}
}

is_part_of_the_german_confederation = {
	OR = {
		has_idea = GEC_idea_german_confederation_major_power
		has_idea = GEC_idea_german_confederation_middle_power
		has_idea = GEC_idea_german_confederation_minor_power
	}
}

GER_CONF_defensive_trigger = {
    #at least one German tag has the German Confederation idea
	OR = {
		HLS = {
			OR = {
				has_idea = GEC_idea_german_confederation_major_power
				has_idea = GEC_idea_german_confederation_middle_power
				has_idea = GEC_idea_german_confederation_minor_power
			}
		}
		SCH = {
			OR = {
				has_idea = GEC_idea_german_confederation_major_power
				has_idea = GEC_idea_german_confederation_middle_power
				has_idea = GEC_idea_german_confederation_minor_power
			}
		}
		LCK = {
			OR = {
				has_idea = GEC_idea_german_confederation_major_power
				has_idea = GEC_idea_german_confederation_middle_power
				has_idea = GEC_idea_german_confederation_minor_power
			}
		}
		HAM = {
			OR = {
				has_idea = GEC_idea_german_confederation_major_power
				has_idea = GEC_idea_german_confederation_middle_power
				has_idea = GEC_idea_german_confederation_minor_power
			}
		}
		PRS = {
			OR = {
				has_idea = GEC_idea_german_confederation_major_power
				has_idea = GEC_idea_german_confederation_middle_power
				has_idea = GEC_idea_german_confederation_minor_power
			}
		}
		MCK = {
			OR = {
				has_idea = GEC_idea_german_confederation_major_power
				has_idea = GEC_idea_german_confederation_middle_power
				has_idea = GEC_idea_german_confederation_minor_power
			}
		}
		BRE = {
			OR = {
				has_idea = GEC_idea_german_confederation_major_power
				has_idea = GEC_idea_german_confederation_middle_power
				has_idea = GEC_idea_german_confederation_minor_power
			}
		}
		OLD = {
			OR = {
				has_idea = GEC_idea_german_confederation_major_power
				has_idea = GEC_idea_german_confederation_middle_power
				has_idea = GEC_idea_german_confederation_minor_power
			}
		}
		THU = {
			OR = {
				has_idea = GEC_idea_german_confederation_major_power
				has_idea = GEC_idea_german_confederation_middle_power
				has_idea = GEC_idea_german_confederation_minor_power
			}
		}
		SAX = {
			OR = {
				has_idea = GEC_idea_german_confederation_major_power
				has_idea = GEC_idea_german_confederation_middle_power
				has_idea = GEC_idea_german_confederation_minor_power
			}
		}
		HES = {
			OR = {
				has_idea = GEC_idea_german_confederation_major_power
				has_idea = GEC_idea_german_confederation_middle_power
				has_idea = GEC_idea_german_confederation_minor_power
			}
		}
		FRK = {
			OR = {
				has_idea = GEC_idea_german_confederation_major_power
				has_idea = GEC_idea_german_confederation_middle_power
				has_idea = GEC_idea_german_confederation_minor_power
			}
		}
		HSD = {
			OR = {
				has_idea = GEC_idea_german_confederation_major_power
				has_idea = GEC_idea_german_confederation_middle_power
				has_idea = GEC_idea_german_confederation_minor_power
			}
		}
		NAS = {
			OR = {
				has_idea = GEC_idea_german_confederation_major_power
				has_idea = GEC_idea_german_confederation_middle_power
				has_idea = GEC_idea_german_confederation_minor_power
			}
		}
		BAD = {
			OR = {
				has_idea = GEC_idea_german_confederation_major_power
				has_idea = GEC_idea_german_confederation_middle_power
				has_idea = GEC_idea_german_confederation_minor_power
			}
		}
		WUR = {
			OR = {
				has_idea = GEC_idea_german_confederation_major_power
				has_idea = GEC_idea_german_confederation_middle_power
				has_idea = GEC_idea_german_confederation_minor_power
			}
		}
		BAV = {
			OR = {
				has_idea = GEC_idea_german_confederation_major_power
				has_idea = GEC_idea_german_confederation_middle_power
				has_idea = GEC_idea_german_confederation_minor_power
			}
		}
		AUS = {
			OR = {
				has_idea = GEC_idea_german_confederation_major_power
				has_idea = GEC_idea_german_confederation_middle_power
				has_idea = GEC_idea_german_confederation_minor_power
			}
		}
		LUX = {
			OR = {
				has_idea = GEC_idea_german_confederation_major_power
				has_idea = GEC_idea_german_confederation_middle_power
				has_idea = GEC_idea_german_confederation_minor_power
			}
		}
		LIE = {
			OR = {
				has_idea = GEC_idea_german_confederation_major_power
				has_idea = GEC_idea_german_confederation_middle_power
				has_idea = GEC_idea_german_confederation_minor_power
			}
		}
		HAN = {
			OR = {
				has_idea = GEC_idea_german_confederation_major_power
				has_idea = GEC_idea_german_confederation_middle_power
				has_idea = GEC_idea_german_confederation_minor_power
			}
		}
    }
}

GER_CONF_has_war_with_german_nation = {
	OR = {
		has_war_with = HLS
		has_war_with = SCH
		has_war_with = LCK
		has_war_with = HAM
		has_war_with = PRS
		has_war_with = MCK
		has_war_with = BRE
		has_war_with = OLD
		has_war_with = THU
		has_war_with = SAX
		has_war_with = HSD
		has_war_with = FRK
		has_war_with = HES
		has_war_with = NAS
		has_war_with = BAD
		has_war_with = WUR
		has_war_with = BAV
		has_war_with = LUX
		has_war_with = LIE
		has_war_with = AUS
		has_war_with = HAN
	}
}

GER_CONF_is_german_nation = {
	OR = {
		tag = AUS
		tag = BAD
		tag = BAV
		tag = BRE
		tag = FRK
		tag = HAM
		tag = HAN
		tag = HES
		tag = HLS
		tag = HSD
		tag = LCK
		tag = LIE
		tag = LUX
		tag = MCK
		tag = NAS
		tag = OLD
		tag = PRS
		tag = SAX
		tag = SCH
		tag = THU
		tag = WUR
	}
}

#Trigger excluding Austria and Liechtenstein
GER_is_german_nation = {
	OR = {
		tag = BAD
		tag = BAV
		tag = BRE
		tag = FRK
		tag = HAM
		tag = HAN
		tag = HES
		tag = HLS
		tag = HSD
		tag = LCK
		tag = LUX
		tag = MCK
		tag = NAS
		tag = OLD
		tag = PRS
		tag = SAX
		tag = SCH
		tag = THU
		tag = WUR
	}
}