GCW_began = {
	has_global_flag = german_civil_war
}

reached_division_limit = {
	check_variable = { num_divisions > num_division_limit }
}

TNO_fopo_saw_selected_goring = {
	TNO_fopo_saw_selected = yes
	has_global_flag = german_civil_war_goeringvic
}

germany_is_repaired = {
	if = {
		limit = {
			has_idea = GGR_rebuilding_germany
		}
		NOT = { has_idea = GGR_rebuilding_germany }
	}
	else_if = {
		limit = {
			has_idea = GGR_rebuilding_germany2
		}
		NOT = { has_idea = GGR_rebuilding_germany2 }
	}
	else_if = {
		limit = {
			has_idea = GGR_rebuilding_germany3
		}
		NOT = { has_idea = GGR_rebuilding_germany3 }
	}
	else_if = {
		limit = {
			has_idea = GGR_rebuilding_germany4
		}
		NOT = { has_idea = GGR_rebuilding_germany4 }
	}
	else = {
		NOT = { has_idea = GGR_rebuilding_germany5 }
	}
}

is_not_covered_by_faction = {
	custom_trigger_tooltip = {
		tooltip = GGR_not_faction_reliant
		NOT = {
			any_country = {
				has_guaranteed = PREV
			}
		}
		if = {
			limit = {
				is_in_faction = yes
			}
			is_in_faction_with = GER
		}
		if = {
			limit = {
				is_subject = yes
			}
			is_subject_of = GER
		}
	}
}

is_covered_by_faction = {
	custom_trigger_tooltip = {
		tooltip = GGR_faction_reliant
		OR = {
			is_subject = yes
			any_country = {
				has_guaranteed = PREV
			}
			is_in_faction = yes
		}
		NOT = { is_in_faction_with = GER }
	}
}

AI_one_operation_check = {
	hidden_trigger = {
		if = {
			limit = { is_ai = yes }
			NOT = {
				has_country_flag = GGR_operation_preparation
			}
			has_war = no
		}
	}
}

AI_one_plan_zero_operation_check = {
	hidden_trigger = {
		if = {
			limit = { is_ai = yes }
			NOT = {
				has_country_flag = GGR_plan_zero_prep
			}
			has_war = no
		}
	}
}

player_one_operation_check = {
	custom_trigger_tooltip = {
		tooltip = GGR_operation_locked_tooltip
		NOT = { has_country_flag = GGR_operation_locked }
	}
}

GGR_madagascar_out_of_the_way = {
	if = {
		limit = {
			MAD = { is_not_covered_by_faction = yes }
		}
		GGR_returned_madagascar = yes
	}
	else = {
		MAD = { is_covered_by_faction = yes }
	}
}

GGR_returned_madagascar = {
	custom_trigger_tooltip = {
		tooltip = GGR_returned_madagascar_tooltip
		OR = {
		    MAD = {
			    OR = {
				    is_subject_of = GER
				    is_in_faction_with = GER
				}	
			}
			MDG = {
			    OR = {
				    is_subject_of = GER
				    is_in_faction_with = GER
				}	
			}
		}
	}
}

GGR_war_plan_zero_completed = {
	GGR_ostland_conquered = yes
	GGR_denmark_conquered = yes
	GGR_poland_conquered = yes
	GGR_slovakia_conquered = yes
	GGR_the_netherlands_conquered = yes
}

GGR_war_plan_A_completed = {
	GGR_norway_conquered = yes
	GGR_sweden_conquered = yes
	GGR_finland_conquered = yes
	GGR_moskowien_conquered = yes
	GGR_ukraine_conquered = yes
	GGR_kaukasien_conquered = yes

	#GGR_romania_out_of_the_way = yes
	#GGR_hungary_out_of_the_way = yes
	#GGR_bulgaria_out_of_the_way = yes
	#GGR_serbia_out_of_the_way = yes
	#GGR_greece_out_of_the_way = yes

	GGR_serbia_conquered = yes
	GGR_conquered_greece = yes
	GGR_bulgaria_conquered = yes
	GGR_conquered_the_isles = yes
	GGR_switzerland_conquered = yes
}

GGR_war_Plan_B_completed = {
	GGR_iberia_conquered = yes
	GGR_africa_conquered = yes
	GGR_france_conquered = yes
	GGR_russia_conquered = yes
	GGR_italy_conquered = yes
}

GGR_war_plan_C_completed = {
	GGR_america_conquered = yes
	GGR_japan_conquered = yes
	GGR_conquered_burgundy = yes
	south_central_america_speedrunned = yes
}

is_heydrich_countries = {
	OR = {
		original_tag = DSH
		original_tag = SSL
		original_tag = FPG
		original_tag = SSW
		original_tag = FSP
		original_tag = ISS
		original_tag = KHP
		original_tag = AUS
		original_tag = SSN
		original_tag = OKL
		original_tag = AGS
		original_tag = DSG
		original_tag = KLB
		original_tag = KSS
		original_tag = PRK
		original_tag = LHH
		original_tag = APF
		original_tag = OER
		original_tag = FHH
	}
}

is_not_german_antarctic_nation = {
	is_Antarctic_nation = yes
	NOT = {
		tag = AAG
		tag = AAN
	}
}

