is_plan_b_countries = {
	OR = {
		is_iberian_country = yes
		is_african_nation = yes
		original_tag = ITA
		is_in_faction_with = ITA
		is_subject_of = ITA
		original_tag = TUR
		is_french_country = yes
		is_levant = yes
		is_russian_nation = yes
		is_after_midninght_russian_nation = yes
		is_central_asian_nation = yes
		is_kazakh_nation = yes
	}
	NOT = {
		is_subject_of = GER
		is_in_faction_with = GER
		original_tag = PAD
	}
}

is_iberian_country = {
	OR = {
		tag = IBR
		tag = SPR
		tag = SPS
		tag = FSR
		tag = GNS
		tag = FZL
		tag = PAD
		tag = POR
		tag = PPR
		tag = RPP
		tag = MOR
		tag = RIF
		tag = TRZ
		tag = SPA
		tag = CTL
		tag = CNT
		tag = BSQ
		tag = TBA
		tag = GIB
		tag = ADL
		tag = GAL
	}
}

is_french_country = {
	OR = {
		tag = FRA
		original_tag = FRD
		original_tag = FRM
		original_tag = FRS
		original_tag = FMM
		original_tag = FIT
		original_tag = FRV
		original_tag = FGR
	}
}

is_AA_ural_region = {
	OR = {
		state = 863
		state = 262
		state = 869
		state = 866
		state = 752
		state = 397
		state = 398
		state = 753
		state = 848
		state = 847
		state = 652
		state = 849
		state = 852
		state = 755
		state = 251
		state = 851
		state = 249
		state = 854
		state = 400
		state = 865
		state = 864
		state = 651
		state = 853
		state = 399
		state = 862
		state = 870
		state = 850
		state = 868
		state = 860
		state = 868
		state = 867
		state = 250
		state = 256
		state = 582
		state = 846
	}
}

is_italian_east_africa = {
	OR = {
		is_core_of = IEA
		state = 551
        state = 1120
		state = 1121
	    state = 549
        state = 1122
	    state = 1123
	    state = 1124
	    state = 1125
	    state = 1136
	    state = 1135
	    state = 1128
	    state = 1127
	    state = 1126
	    state = 1130
	    state = 1129
	    state = 1133
	    state = 1134
		state = 1179
		state = 1132
		state = 1131
	}
}

is_east_african_nation = {
	OR = {
		tag = RSQ
		tag = RSD
		tag = RSZ
		tag = UGD
		tag = RWA
		tag = BRD
		tag = LUO
		tag = TNZ
		tag = TND
		tag = FMF
		tag = ZZB
		tag = ZZS
		tag = ZAM
		tag = ZBO
		tag = BRS
		tag = ZIM
		tag = ZMO
		tag = BTS
		tag = GAZ
		tag = GZO
		tag = GZS
		tag = RMB
		tag = BMB
		tag = CMR
		tag = TOO

		tag = USC
	}
}

is_levant = {
	OR = {
		original_tag = ISR
		original_tag = LEB
		original_tag = SLB
		original_tag = PAL
		original_tag = JOR
		original_tag = JER
	}
}


is_horn_of_africa_nation = {
	OR = {
		tag = ERT
		tag = SML
		tag = ETB
		tag = ORM
		tag = KEN
	}
}

GGR_not_invaded_africa = {
	custom_trigger_tooltip = {
		tooltip = GGR_not_invaded_africa_tooltip
		NOT = { has_completed_focus = GGR_full_speed_ahead }
	}
}

GGR_returned_the_congo = {
	custom_trigger_tooltip = {
		tooltip = GGR_returned_the_congo_tooltip
		OR = {
			RCA = {
				OR = {
					is_subject_of = GER
					is_in_faction_with = GER
				}
			}
			GRO = {
				OR = {
					is_in_faction_with = GER
					is_subject_of = GER
				}
			}
		}
	}
}

is_central_african_nation = {
	OR = {
		tag = GAB
		tag = BZZ
		tag = CPR
		tag = CFS
		tag = CAF
		tag = AZD
		tag = KTG
		tag = KSI
		tag = BKV
		tag = SAO
		tag = EQG
		tag = COG
		AND = {
			tag = GRO
			NOT = { is_in_faction_with = GER }
		}
	}
}

is_southwest_african_nation = {
	OR = {
		tag = ANG
		tag = RSL
		tag = ANL
		tag = NAM
		tag = NAM
		tag = HRR
		tag = OVB
	}
}

is_south_african_nation = {
	OR = {
		tag = SAF
		tag = BOR
		tag = ANC
		tag = ZUL
		tag = SLF
		tag = LTH
		tag = SWZ
		tag = CDL
		tag = AWB
		tag = KBA
		tag = UFK
		tag = SFG
	}
}

is_african_nation = {
	OR = {
		is_west_african_nation = yes
		is_central_african_nation = yes
		is_southwest_african_nation = yes
		is_east_african_nation = yes
		is_south_african_nation = yes
	}
}

is_russian_region = {
	owner = {
		is_russian_nation = yes
	}
}

is_russian_midnight = {
	custom_trigger_tooltip = {
		tooltip = is_russian_midnight_tooltip
		has_global_flag = AFTER_MIDNIGHT_Collapsed
	}
}

is_after_midninght_russian_nation = {
	OR = {
		tag = TMA
		tag = TMB
		tag = TMC
		tag = TMD
		tag = TME
		tag = TMF
		tag = TMG
		tag = TMH
		tag = TMI
		tag = TMJ
		tag = TMK
		tag = TML
		tag = TMM
		tag = TMN
		tag = TMO
		tag = TMP
		tag = TMQ
		tag = TMR
		tag = TMS
		tag = TMT
		tag = TMU
		tag = TMV
		tag = TMW
		tag = TMX
		tag = TMY
		tag = KOM
	}
}

GGR_not_invaded_russia = {
	custom_trigger_tooltip = {
		tooltip = GGR_not_invaded_russia_tooltip
		NOT = {
			OR = {
				has_war_with = event_target:RUS_western_unifier
				has_war_with = ONG
			}
			has_completed_focus = GGR_across_the_east_and_far_away
		}
	}
}

GGR_russia_conquered = {
	custom_trigger_tooltip = {
		tooltip = GGR_russia_conquered_tooltip
		OR = {
			country_exists = RKF
			PRM = {
				exists = yes
				has_cosmetic_tag = RK_Russland
			}
		}
	}
}

GGR_france_out_of_the_way = {
	if = {
		limit = {
			GGR_france_conquered = yes
		}
	}
	else_if = {
		limit = {
			any_country = {
				is_french_country = yes
				is_not_covered_by_faction = yes
			}
		}
		GGR_france_conquered = yes
	}
	else = {
		any_country = {
			is_french_country = yes
			is_covered_by_faction = yes
		}
	}
}

GGR_france_conquered = {
	custom_trigger_tooltip = {
		tooltip = GGR_france_conquered_tooltip
		OR = {
			country_exists = GLC
			is_in_faction_with = FRS
		}
	}
}


GGR_not_invaded_spain = {
	custom_trigger_tooltip = {
		tooltip = GGR_not_invaded_spain_tooltip
		NOT = {
			has_completed_focus = GGR_finishing_the_job
		}
	}
}

GGR_not_invaded_portugal = {
	custom_trigger_tooltip = {
		tooltip = GGR_not_invaded_portugal_tooltip
		NOT = {
			has_completed_focus = GGR_making_an_entrance
		}
	}
}

GGR_not_invaded_iberia = {
	custom_trigger_tooltip = {
		tooltip = GGR_not_invaded_iberia_tooltip
		NOT = {
			has_completed_focus = GGR_the_final_straw
		}
	}
}

GGR_iberia_out_of_the_way = {
	if = {
		limit = {
			IBR = { is_not_covered_by_faction = yes }
		}
		GGR_iberia_conquered = yes
	}
	else = {
		IBR = { is_covered_by_faction = yes }
	}
}

GGR_iberia_conquered = {
	custom_trigger_tooltip = {
		tooltip = GGR_iberia_conquered_tooltip
		OR = {
			AND = {
				GCA = {
					is_subject_of = GER
				}
				WAF = {
					is_subject_of = GER
				}
				GPG = {
					is_subject_of = GER
				}
			}
			all_country = {
				if = {
					limit = {
						is_iberian_nation = yes
					}
					OR = {
						is_in_faction_with = GER
						exists = no
						has_capitulated = yes
					}
				}
			}
		}
	}
}

GGR_not_invaded_turkey = {
	custom_trigger_tooltip = {
		tooltip = GGR_not_invaded_turkey_tooltip
		NOT = {
			has_completed_focus = GGR_crush_the_turks
		}
	}
}

GGR_turkey_conquered = {
	custom_trigger_tooltip = {
		tooltip = GGR_turkey_conquered_tooltip
		RKK = {
			is_subject_of = GER
		}
		NOT = { country_exists = TUR }
	}
}

GGR_not_invaded_algeria = {
	custom_trigger_tooltip = {
		tooltip = GGR_not_invaded_england_tooltip
		NOT = {
			OR = {
				has_war_with = SLG
				SLG = {
					is_subject_of = GER
				}
			}
		}
	}
}

GGR_iberian_algeria_conquered = {
	custom_trigger_tooltip = {
		tooltip = GGR_iberian_algeria_conquered
		NOT = {
			country_exists = SLG
			country_exists = ALG
		}
	}
}

GGR_italy_conquered = {
	custom_trigger_tooltip = {
		tooltip = GGR_italy_conquered_tooltip
		country_exists = LOM
		LOM = { is_subject_of = GER }
	}
}

GGR_africa_conquered = {
	custom_trigger_tooltip = {
		tooltip = GGR_africa_conquered_tooltip
		all_country = {
			if = {
				limit = {
					is_african_nation = yes
				}
				OR = {
					exists = no
					is_in_faction = yes
					is_subject_of = USA
					is_subject_of = JAP
					is_subject_of = ITA
				}
			}
		}
	}
}