defined_text = {
	name = GetLoserAllies
	text = {
		trigger = {
			has_global_flag = losing_country_multiple
		}
		localization_key = TNO_PEACE_POPUP_COUNTRY_PLURAL
	}
	text = {
		localization_key = TNO_PEACE_POPUP_COUNTRY_SINGULAR
	}
}

defined_text = {
	name = GetWinnerAllies
	text = {
		trigger = {
			has_global_flag = winning_country_multiple
		}
		localization_key = TNO_PEACE_POPUP_COUNTRY_PLURAL
	}
	text = {
		localization_key = TNO_PEACE_POPUP_COUNTRY_SINGULAR
	}
}

defined_text = {
	name = GetLoserAlliesWithHas
	text = {
		trigger = {
			has_global_flag = losing_country_multiple
		}
		localization_key = TNO_PEACE_POPUP_COUNTRY_PLURAL_HAS
	}
	text = {
		localization_key = TNO_PEACE_POPUP_COUNTRY_SINGULAR_HAS
	}
}

defined_text = {
	name = GetWinnerAlliesWithHas
	text = {
		trigger = {
			has_global_flag = winning_country_multiple
		}
		localization_key = TNO_PEACE_POPUP_COUNTRY_PLURAL_HAS
	}
	text = {
		localization_key = TNO_PEACE_POPUP_COUNTRY_SINGULAR_HAS
	}
}

#defined_text = {
	#	name = GetLoserFactionLeader
	#	text = {
		#		trigger = {
			#			OR = {
				#				global_event_target:losing_country = {
					#					is_faction_leader = yes
					#				}
				#				any_country = {
					#					limit = {
						#						is_in_faction_with = global_event_target:losing_country
						#						is_faction_leader = yes
						#					}
					#					has_war_with = global_event_target:winning_country
					#				}
				#			}
			#		}
		#		localization_key = TNO_PEACE_POPUP_LOSER_FACTION_LEADER
		#	}
	#	text = {
		#		localization_key = TNO_PEACE_POPUP_LOSER_NOT_FACTION_LEADER
		#	}
	#}
#
#defined_text = {
	#	name = GetWinnerFactionLeader
	#	text = {
		#		trigger = {
			#			OR = {
				#				global_event_target:winning_country = {
					#					is_faction_leader = yes
					#				}
				#				any_country = {
					#					limit = {
						#						is_in_faction_with = global_event_target:winning_country
						#						is_faction_leader = yes
						#					}
					#					has_war_with = global_event_target:losing_country
					#				}
				#			}
			#		}
		#		localization_key = TNO_PEACE_POPUP_WINNER_FACTION_LEADER
		#	}
	#	text = {
		#		localization_key = TNO_PEACE_POPUP_WINNER_NOT_FACTION_LEADER
		#	}
	#}

defined_text = {
	name = GetWarStatus
	text = {
		trigger = {
			has_global_flag = war_won
		}
		localization_key = TNO_PEACE_POPUP_WAR_CONCLUSION
	}
	text = {
		trigger = {
			has_global_flag = war_continuing
		}
		localization_key = TNO_PEACE_POPUP_WAR_CONTINUING
	}
}


#### PUT YOUR VARIOUS CATEGORIES/TRIGGERS IN HERE ###

# Refer to the winning country's tag like so "global_event_target:winning_country"
# and the losing country's tag like so "global_event_target:losing_country"

defined_text = {
	name = GetWarConclusionLoc

	text = {
		trigger = {
			event_target:losing_country = {
				tag = GEA
			}
		}
		localization_key = TNO_PEACE_POPUP_WAR_CONCLUSION_HUTTIG
	}

	text = {
		trigger = {
			event_target:winning_country = {
				is_in_faction_with = GER
				has_global_flag = german_civil_war_goeringvic
			}
			event_target:losing_country = {
				tag = OMS
				OMS = { has_country_flag = RUS_superregional_stage }
			}
		}
		localization_key = TNO_PEACE_POPUP_WAR_CONCLUSION_GORING_OMSK
	}

	text = {
		trigger = {
			event_target:winning_country = {
				original_tag = GER
				has_global_flag = german_civil_war_goeringvic
			}
		}
		localization_key = TNO_PEACE_POPUP_WAR_CONCLUSION_GORING
	}
	text = {
		trigger = {
			event_target:winning_country = {
				OR = {
					original_tag = OST
					original_tag = MST
					original_tag = DST
					original_tag = JST
					original_tag = UPO
					original_tag = BLR
				}
			}
			event_target:losing_country = {
				OR = {
					original_tag = OST
					original_tag = MST
					original_tag = DST
					original_tag = JST
					original_tag = UPO
					original_tag = BLR
				}
			}
		}
		localization_key = TNO_PEACE_POPUP_WAR_CONCLUSION_OSTLAND
	}
	text = {
		trigger = {
			event_target:winning_country = {
				OR = {
					original_tag = UKR
					original_tag = FUK
					original_tag = BOV
					original_tag = UKS
				}
			}
			event_target:losing_country = {
				OR = {
					original_tag = UKR
					original_tag = FUK
					original_tag = BOV
					original_tag = UKS
				}
			}
		}
		localization_key = TNO_PEACE_POPUP_WAR_CONCLUSION_UKRAINE
	}
	text = {
		trigger = {
			event_target:winning_country = {
				original_tag = SAF
			}
			event_target:losing_country = {
				OR = {
					original_tag = COG
					original_tag = GRO
					original_tag = ANG
					original_tag = BOR
				}
			}
		}
		localization_key = TNO_PEACE_POPUP_WAR_CONCLUSION_SAF_WIN
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = SAF
			}
			event_target:winning_country = {
				OR = {
					original_tag = COG
					original_tag = GRO
					original_tag = ANG
					original_tag = BOR
				}
			}
		}
		localization_key = TNO_PEACE_POPUP_WAR_CONCLUSION_SAF_LOSE
	}
	text = {
		trigger = {
			event_target:winning_country = {
				original_tag = FEN
			}
			event_target:losing_country = {
				original_tag = ENG
			}
		}
		localization_key = TNO_PEACE_POPUP_WAR_ECW_HMMLR_WIN
	}
	#text = {
	#	trigger = {
	#		event_target:winning_country = {
	#			original_tag = GER
	#		}
	#		event_target:losing_country = {
	#			original_tag = ENG
	#		}
	#	}
	#	localization_key = TNO_PEACE_POPUP_WAR_SEALION_II
	#}
	text = {
		trigger = {
			event_target:winning_country = {
				original_tag = ENG
			}
			event_target:losing_country = {
				original_tag = FEN
			}
		}
		localization_key = TNO_PEACE_POPUP_WAR_ECW_COLLABS_WIN
	}
	text = {
		trigger = {
			event_target:winning_country = {
				original_tag = FEN
			}
			event_target:losing_country = {
				original_tag = CRN
			}
		}
		localization_key = TNO_PEACE_POPUP_WAR_ECW_HMMLR_WIN2
	}
	text = {
		trigger = {
			event_target:winning_country = {
				original_tag = SCO
			}
			event_target:losing_country = {
				OR = {
					original_tag = FEN
					original_tag = ENG
				}
			}
		}
		localization_key = TNO_PEACE_POPUP_WAR_SCOTLAND_WIN
	}
	text = {
		trigger = {
			event_target:winning_country = {
				OR = {
					original_tag = FEN
					original_tag = ENG
				}
			}
			event_target:losing_country = {
				original_tag = SCO
			}
		}
		localization_key = TNO_PEACE_POPUP_WAR_SCOTLAND_LOSE
	}
	text = {
		trigger = {
			event_target:winning_country = {
				original_tag = ENG
			}
			event_target:losing_country = {
				original_tag = WAL
			}
		}
		localization_key = TNO_PEACE_POPUP_WAR_ENG_WALES
	}
	text = {
		trigger = {
			event_target:winning_country = {
				original_tag = WAL
			}
			event_target:losing_country = {
				original_tag = ENG
			}
		}
		localization_key = TNO_PEACE_POPUP_WAR_ENG_WALES_LOSE
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = FRS
			}
			event_target:winning_country = {
				original_tag = BRG
			}
		}
		localization_key = TNO_PEACE_POPUP_WAR_CONCLUSION_BRG_FRS
	}
	text = {
		trigger = {
			event_target:losing_country = {
				OR = {
					original_tag = IBR
					original_tag = SPR
					original_tag = SPA
					original_tag = SPS
					original_tag = CTL
					original_tag = CNT
					original_tag = BSQ
					original_tag = FSR
					original_tag = GNS
					original_tag = TBA
					original_tag = POR
					original_tag = PPR
					original_tag = RPP
					original_tag = FML
					original_tag = GIB
					original_tag = ALG
					original_tag = RIF
					original_tag = MOR
					original_tag = GAL
					original_tag = KBY
				}
			}
			event_target:winning_country = {
				OR = {
					original_tag = IBR
					original_tag = SPR
					original_tag = SPA
					original_tag = SPS
					original_tag = CTL
					original_tag = CNT
					original_tag = BSQ
					original_tag = FSR
					original_tag = GNS
					original_tag = TBA
					original_tag = POR
					original_tag = PPR
					original_tag = RPP
					original_tag = FML
					original_tag = GIB
					original_tag = ALG
					original_tag = RIF
					original_tag = MOR
					original_tag = GAL
					original_tag = KBY
				}
			}
		}
		localization_key = TNO_PEACE_POPUP_WAR_IBERIAN_WARS
	}
	text = {
		trigger = {
			event_target:losing_country = {
				OR = {
					original_tag = BGR
					original_tag = GGR
					original_tag = SGR
					original_tag = HGR
					original_tag = GER
				}
			}
			event_target:winning_country = {
				OR = {
					original_tag = BGR
					original_tag = GGR
					original_tag = SGR
					original_tag = HGR
					original_tag = GER
				}
			}
		}
		localization_key = TNO_PEACE_POPUP_WAR_CONCLUSION_GCW
	}
	text = {
		trigger = {
			event_target:losing_country = {
				OR = {
					original_tag = IME
				}
			}
			event_target:winning_country = {
				original_tag = TUR
			}
		}
		localization_key = TNO_PEACE_POPUP_WAR_CONCLUSION_TURKISH_VICTORY
	}
	text = {
		trigger = {
			event_target:losing_country = {
				OR= {
					original_tag = TUR
				}
			}
			event_target:winning_country = {
				original_tag = IME
			}
		}
		localization_key = TNO_PEACE_POPUP_WAR_CONCLUSION_IME_VICTORY
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = INS
			}
			event_target:winning_country = {
				OR = {
					original_tag = FRI
					original_tag = DMP
					original_tag = DMS
					original_tag = PMT
					original_tag = SLS
					original_tag = NII
					original_tag = ABD
				}
			}
		}
		localization_key = TNO_PEACE_POPUP_WAR_CONCLUSION_INS_LOSE
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = FRI
			}
			event_target:winning_country = {
				OR = {
					original_tag = INS
					original_tag = SRB
					original_tag = MKS
					original_tag = BKB
				}
			}
		}
		localization_key = TNO_PEACE_POPUP_WAR_CONCLUSION_FRI_LOSE
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = PHI
			}
			event_target:winning_country = {
				OR = {
					original_tag = SPH
					original_tag = UPH
				}
			}
		}
		localization_key = TNO_PEACE_POPUP_WAR_CONCLUSION_PHI_BLITZ_REBEL_WIN
	}
	text = {
		trigger = {
			event_target:losing_country = {
				OR = {
					original_tag = SPH
					original_tag = UPH
				}
			}
			event_target:winning_country = {
				original_tag = PHI
			}
		}
		localization_key = TNO_PEACE_POPUP_WAR_CONCLUSION_PHI_BLITZ
	}
	text = {
		trigger = {
			event_target:losing_country = {
				OR = {
					original_tag = FGB
					original_tag = UPH
					original_tag = SPH
				}
			}
			has_global_flag = PHI_landing_ongoing
		}
		localization_key = TNO_PEACE_POPUP_WAR_CONCLUSION_PHI_LANDING
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = SRT
			}
		}
		localization_key = TNO_PEACE_POPUP_WAR_CONCLUSION_SRT_DEAD
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = MCW
			}
			has_global_flag = german_civil_war_speervic
			has_global_flag = SGR_Slave_Revolt
		}
		localization_key = TNO_PEACE_POPUP_WAR_CONCLUSION_SCHORNER_DEAD
	}

	## Mano
	# has_global_flag = WAC_over

	## WAC
	# Scenario 1
	text = {
		trigger = {
			event_target:winning_country = {
				has_country_flag = WAA_MEMBER
			}
			event_target:losing_country = {
				has_country_flag = PALF_MEMBER
			}
			has_global_flag = WAC_scenario_1
		}
		localization_key = TNO_PEACE_POPUP_WAR_CONCLUSION_WAA_1
	}
	text = {
		trigger = {
			event_target:winning_country = {
				has_country_flag = PALF_MEMBER
			}
			event_target:losing_country = {
				has_country_flag = WAA_MEMBER
			}
			has_global_flag = WAC_scenario_1
		}
		localization_key = TNO_PEACE_POPUP_WAR_CONCLUSION_PALF_1
	}

	# Scenario 2
	text = {
		trigger = {
			event_target:winning_country = {
				has_country_flag = WAA_MEMBER
			}
			event_target:losing_country = {
				has_country_flag = FMA_MEMBER
			}
			has_global_flag = WAC_scenario_2
		}
		localization_key = TNO_PEACE_POPUP_WAR_CONCLUSION_WAAvsFMA_2
	}
	text = {
		trigger = {
			event_target:winning_country = {
				has_country_flag = WAA_MEMBER
			}
			event_target:losing_country = {
				has_country_flag = PALF_MEMBER
			}
			has_global_flag = WAC_scenario_2
		}
		localization_key = TNO_PEACE_POPUP_WAR_CONCLUSION_WAAvsPALF_2
	}

	text = {
		trigger = {

			event_target:winning_country = {
				has_country_flag = FMA_MEMBER
			}
			event_target:losing_country = {
				has_country_flag = WAA_MEMBER
			}
			has_global_flag = WAC_scenario_2
		}
		localization_key = TNO_PEACE_POPUP_WAR_CONCLUSION_FMAvsWAA_2
	}
	text = {
		trigger = {
			event_target:winning_country = {
				has_country_flag = FMA_MEMBER
			}
			event_target:losing_country = {
				has_country_flag = PALF_MEMBER
			}
			has_global_flag = WAC_scenario_2
		}
		localization_key = TNO_PEACE_POPUP_WAR_CONCLUSION_FMAvsPALF_2
	}

	text = {
		trigger = {
			event_target:winning_country = {
				has_country_flag = PALF_MEMBER
			}
			event_target:losing_country = {
				has_country_flag = WAA_MEMBER
			}
			has_global_flag = WAC_scenario_2
		}
		localization_key = TNO_PEACE_POPUP_WAR_CONCLUSION_PALFvsWAA_2
	}
	text = {
		trigger = {
			event_target:winning_country = {
				has_country_flag = PALF_MEMBER
			}
			event_target:losing_country = {
				has_country_flag = FMA_MEMBER
			}
			has_global_flag = WAC_scenario_2
		}
		localization_key = TNO_PEACE_POPUP_WAR_CONCLUSION_PALFvsFMA_2
	}

	# Scenario 3
	text = {
		trigger = {
			event_target:winning_country = {
				has_country_flag = FMA_MEMBER
			}
			event_target:losing_country = {
				has_country_flag = PALF_MEMBER
			}
			has_global_flag = WAC_scenario_3
		}
		localization_key = TNO_PEACE_POPUP_WAR_CONCLUSION_FMA_3
	}
	text = {
		trigger = {
			event_target:winning_country = {
				has_country_flag = PALF_MEMBER
			}
			event_target:losing_country = {
				has_country_flag = FMA_MEMBER
			}
			has_global_flag = WAC_scenario_3
		}
		localization_key = TNO_PEACE_POPUP_WAR_CONCLUSION_PALF_3
	}

	## Russia
	# Omolon April Fools 2022
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = BRY
				has_cosmetic_tag = BRY_IRK_Harmonious
			}
			event_target:winning_country = {
				original_tag = OMO
			}
		}
		localization_key = TNO_PEACE_POPUP_WAR_CONCLUSION_BRY_IRK_AF_2022
	}
	# Finland
	text = { # Has winter war flavor
		trigger = {
			event_target:losing_country = {
				original_tag = FIN
			}
			event_target:winning_country = {
				is_russian_nation = yes
				OR = {
					has_government = socialist
					has_government = communist
				}
			}
		}
		localization_key = TNO_PEACE_POPUP_WAR_CONCLUSION_FIN_red
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = FIN
			}
			event_target:winning_country = {
				is_russian_nation = yes
			}
		}
		localization_key = TNO_PEACE_POPUP_WAR_CONCLUSION_FIN
	}
	# Urals
	text = {
		trigger = {
			event_target:losing_country = {
				OR = {
					original_tag = MGN
					original_tag = DRL
					original_tag = ORE
					original_tag = URL
				}
			}
			event_target:winning_country = {
				OR = {
					tag = WSR
					tag = WSB
				}
			}
		}
		localization_key = TNO_PEACE_POPUP_WAR_CONCLUSION_URL4
	}
	# Actual Russia
	text = {
		trigger = {
			event_target:losing_country = {
				tag = SIB
			}
			event_target:winning_country = {
				original_tag = KOM
				has_country_leader = {
					character = KOM_Sergey_Taboritsky
					ruling_only = yes
				}
			}
		}
		localization_key = TNO_PEACE_POPUP_WAR_CONCLUSION_RUS_tabby
	}
	text = {
		trigger = {
			event_target:losing_country = {
				is_russian_nation = yes
			}
			event_target:winning_country = {
				is_russian_nation = yes
			}
		}
		localization_key = TNO_PEACE_POPUP_WAR_CONCLUSION_RUS
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = MEN
			}
			event_target:winning_country = {
				original_tag = PRC
			}
		}
		localization_key = TNO_PEACE_POPUP_WAR_CONCLUSION_PRC_MEN
	}

	#Western Insurrection
	text = {
		trigger = {
			event_target:winning_country = {
				original_tag = YUN
			}
			event_target:losing_country = {
				original_tag = CHI
			}
			NOT = { has_global_flag = JAP_Western_Insurrection_Intervention }
		}
		localization_key = TNO_PEACE_POPUP_WAR_CONSLUSION_WI_GAW
	}
	text = {
		trigger = {
			event_target:winning_country = {
				original_tag = CHI
			}
			event_target:losing_country = {
				original_tag = YUN
			}
		}
		localization_key = TNO_PEACE_POPUP_WAR_CONSLUSION_WI_LOSE
	}
	text = {
		trigger = {
			event_target:winning_country = {
				is_in_faction_with = JAP
			}
			event_target:losing_country = {
				is_in_faction_with = YUN
			}
			OR = {
				has_global_flag = JAP_Western_Insurrection_Intervention
				has_global_flag = YUN_NPA_GAW_Crisis
			}
		}
		localization_key = TNO_PEACE_POPUP_WAR_CONSLUSION_GAW_LOSE
	}

	# Colombian Civil War
	text = {
		trigger = {
			event_target:winning_country = {
				or = {
					tag = COL
					tag = CLL
					tag = CLC
				}
			}
			event_target:losing_country = {
				or = {
					tag = COL
					tag = CLL
					tag = CLC
				}
			}
		}
		localization_key = TNO_PEACE_POPUP_WAR_CONCLUSION_COL_CW
	}

	# Puerto Plata Invasion
	text = {
		trigger = {
			has_global_flag = PPI_ceasefire_collapsed
			event_target:winning_country = {
				tag = CAL
			}
			event_target:losing_country = {
				tag = DOM
			}
		}
		localization_key = TNO_PEACE_POPUP_WAR_CONCLUSION_CAL_DOM_ceasefire
	}
	text = {
		trigger = {
			has_global_flag = PPI_ceasefire_collapsed
			event_target:winning_country = {
				tag = DOM
			}
			event_target:losing_country = {
				tag = CAL
			}
		}
		localization_key = TNO_PEACE_POPUP_WAR_CONCLUSION_DOM_CAL_ceasefire
	}

	text = {
		trigger = {
			event_target:winning_country = {
				tag = CAL
			}
			event_target:losing_country = {
				tag = DOM
			}
		}
		localization_key = TNO_PEACE_POPUP_WAR_CONCLUSION_CAL_DOM
	}
	text = {
		trigger = {
			event_target:winning_country = {
				tag = DOM
			}
			event_target:losing_country = {
				tag = CAL
			}
		}
		localization_key = TNO_PEACE_POPUP_WAR_CONCLUSION_DOM_CAL
	}

	# Reclamation of France
	text = {
		trigger = {
			OR = {
				has_global_flag = FFR_reclamation_happening
				has_global_flag = FFR_reclamation_civil_war_happening
				has_global_flag = FFR_reclamation_victory
			}
			event_target:winning_country = {
				or = {
					tag = FRD
					tag = FFR
				}
			}
			event_target:losing_country = {
				or = {
					tag = FRS
					tag = FRM
					tag = FRV
					tag = FMM
					tag = FGR
					tag = FIT
				}
			}
		}
		localization_key = TNO_PEACE_POPUP_WAR_CONCLUSION_FFR_CW_win
	}
	text = {
		trigger = {
			OR = {
				has_global_flag = FFR_reclamation_happening
				has_global_flag = FFR_reclamation_civil_war_happening
				has_global_flag = FFR_reclamation_defeat
			}
			event_target:winning_country = {
				or = {
					tag = FRS
					tag = FRM
					tag = FRV
					tag = FMM
					tag = FGR
					tag = FIT
				}
			}
			event_target:losing_country = {
				or = {
					tag = FRD
					tag = FFR
				}
			}
		}
		localization_key = TNO_PEACE_POPUP_WAR_CONCLUSION_FFR_CW_lose
	}

	# French Civil War
	text = {
		trigger = {
			event_target:winning_country = {
				or = {
					tag = FRS
					tag = FRM
					tag = FRV
					tag = FMM
					tag = FGR
					tag = FIT
					tag = FRD
				}
			}
			event_target:losing_country = {
				or = {
					tag = FRS
					tag = FRM
					tag = FRV
					tag = FMM
					tag = FGR
					tag = FIT
					tag = FRD
				}
			}
		}
		localization_key = TNO_PEACE_POPUP_WAR_CONCLUSION_FRA_CW
	}
	##
	text = {
		localization_key = TNO_PEACE_POPUP_WAR_CONCLUSION_DEFAULT
	}
}



defined_text = {
	name = GetWarContinuationLoc
	# we should probably add some stuff for this
	text = {
		localization_key = TNO_PEACE_POPUP_WAR_CONTINUING_DEFAULT
	}
}


defined_text = {
	name = GetFlavor
	text = {
		trigger = {
			event_target:winning_country = {
				is_in_faction_with = GER
			}
			event_target:losing_country = {
				original_tag = ISR
			}
		}
		localization_key = TNO_PEACE_POPUP_WAR_CONCLUSION_ISRAEL
	}

	text = {
		trigger = {
			event_target:winning_country = {
				is_in_faction_with = GER
				has_global_flag = german_civil_war_goeringvic
			}
			event_target:losing_country = {
				tag = OMS
				OMS = { has_country_flag = RUS_superregional_stage }
			}
		}
		localization_key = TNO_PEACE_POPUP_WAR_FLAVOR_GORING_OMSK
	}
	
	text = {
		trigger = {
			event_target:winning_country = {
				is_in_faction_with = GER
			}
			event_target:losing_country = {
				tag = GEA
			}
		}
		localization_key = TNO_PEACE_POPUP_WAR_FLAVOR_HUTTIG_NUCLEAR_BOMBING
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = UPO
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_KOVNER
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = MST
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_MEYER
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = OST
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_OSTLAND
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = JST
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_JECKELN
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = BLR
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_VITUSKA
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = DST
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_DRECHSLER
	}
	text = {
		trigger = {
			event_target:winning_country = {
				OR = {
					tag = MEN
					tag = MAN
					tag = JAP
				}
			}
			event_target:losing_country = {
				tag = PRC
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_PRC_MEN
	}
	text = {
		trigger = {
			OR = {
				has_global_flag = JAP_Western_Insurrection_Intervention
				has_global_flag = YUN_NPA_GAW_Crisis
			}
			event_target:losing_country = {
				original_tag = YUN
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_CHI_GAW
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = CLC
				has_country_leader = {
					character = CLD_Heriberto_Schwartau
					ruling_only = yes
				}
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_NAZI
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = CLD
				has_country_leader = {
					character = CLD_Jose_Camacho_Carreno
					ruling_only = yes
				}
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_ARIO
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = CLL
				has_country_leader = {
					character = CLL_Partisans
					ruling_only = yes
				}
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_PARTISANS
	}
	text = {
		trigger = {
			event_target:winning_country = {
				is_in_faction_with = YUN
			}
			event_target:losing_country = {
				original_tag = CHI
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_YUN_NPA
	}
	text = {
		trigger = {
			has_global_flag = CHI_Western_Insurrection_Crisis
			NOT = { has_global_flag = JAP_Western_Insurrection_Intervention }
			event_target:losing_country = {
				original_tag = YUN
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_YUN_NPA_LOSE
	}
	text = {
		trigger = {
			event_target:winning_country = {
				is_in_faction_with = GER
			}
			event_target:losing_country = {
				original_tag = ENG
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_SEALION_II
	}
	text = {
		trigger = {
			event_target:winning_country = {
				original_tag = FEN
			}
			event_target:losing_country = {
				original_tag = ENG
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_ENG
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = FEN
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_FEN
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = CRN
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_CRN
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = FRS
			}
			event_target:winning_country = {
				original_tag = BRG
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_FRS
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = SPR
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_SPR
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = SPA
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_SPA
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = SPS
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_SPS
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = CTL
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_CTL
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = CNT
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_CNT
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = BSQ
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_BSQ
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = TBA
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_TBA
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = GAL
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_GAL
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = POR
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_POR
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = MOR
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_MOR
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = RPP
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_RPP
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = FSR
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_FSR
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = RIF
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_RIF
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = IME
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_IME
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = TUR
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_TUR
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = ARM
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_ARM
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = ANC
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_ANC
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = BOR
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_BOR
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = GRO
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_GRO
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = SAF
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_SAF
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = ANG
			}
			event_target:winning_country = {
				original_tag = SAF
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_ANG
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = COG
			}
			event_target:winning_country = {
				original_tag = SAF
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_COG
	}
	#	text = {
		#		trigger = {
			#			event_target:losing_country = {
				#				original_tag = WIN
				#			}
			#		}
		#		localization_key = TNO_PEACE_POPUP_FLAVOR_WIN
		#	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = CZE
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_CZE
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = SLO
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_SLO
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = POL
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_POL
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = INS
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_INS
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = SRB
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_SRB
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = MKS
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_MKS
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = BKB
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_BKB
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = FRI
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_FRI
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = DMP
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_DMP
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = DMS
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_DMS
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = PMT
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_PMT
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = SLS
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_SLS
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = NII
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_NII
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = ABD
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_ABD
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = PHI
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_PHI
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = UPH
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_UPH
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = SPH
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_SPH
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = FGB
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_FGB
	}

	####RUSSIA
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = WRS
			}
			NOT = {
				has_global_flag = AFTER_MIDNIGHT_COMMENCED
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_WRS
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = TMA
			}
			has_global_flag = AFTER_MIDNIGHT_COMMENCED
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_TMA_AM
	}

	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = TML
			}
			has_global_flag = AFTER_MIDNIGHT_COMMENCED
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_TML_AM
	}

	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = VOL
			}
			NOT = {
				has_global_flag = AFTER_MIDNIGHT_COMMENCED
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_VOL
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = TMV
			}
			has_global_flag = AFTER_MIDNIGHT_COMMENCED
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_TMV_AM
	}

	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = KOM
			}
			NOT = {
				has_global_flag = AFTER_MIDNIGHT_COMMENCED
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_KOM
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = KOM
			}
			has_global_flag = AFTER_MIDNIGHT_COMMENCED
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_KOM_AM
	}

	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = GAY
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_GAY
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = VYT
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_VYT
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = MAR
			}
			NOT = {
				has_global_flag = AFTER_MIDNIGHT_COMMENCED
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_MAR
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = TMU
			}
			has_global_flag = AFTER_MIDNIGHT_COMMENCED
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_TMU_AM
	}

	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = SAM
			}
			NOT = {
				has_global_flag = AFTER_MIDNIGHT_COMMENCED
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_SAM
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = TMS
			}
			has_global_flag = AFTER_MIDNIGHT_COMMENCED
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_TMS_AM
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = TMN
			}
			has_global_flag = AFTER_MIDNIGHT_COMMENCED
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_TMN_AM
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = TMT
			}
			has_global_flag = AFTER_MIDNIGHT_COMMENCED
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_TMT_AM
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = TMI
			}
			has_global_flag = AFTER_MIDNIGHT_COMMENCED
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_TMI_AM
	}

	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = GOR
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_GOR
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = TAR
			}
			NOT = {
				has_global_flag = AFTER_MIDNIGHT_COMMENCED
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_TAR
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = TMQ
			}
			has_global_flag = AFTER_MIDNIGHT_COMMENCED
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_TMQ_AM
	}

	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = BKR
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_BKR
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = PRM
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_PRM
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = ONG
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_ONG
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = TMP
			}
			has_global_flag = AFTER_MIDNIGHT_COMMENCED
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_TMP_AM
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = KAZ
				has_country_leader = {
					character = KAZ_Zhumabek_Tashenev
					ruling_only = yes
				}
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_KAZ_TASHENEV
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = KAZ
				has_country_leader = {
					character = KAZ_Sagadat_Nurmagambetov
					ruling_only = yes
				}
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_KAZ_NURMAGAMBETOV
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = KZR
				has_country_leader = {
					character = KZR_Nikolai_Shchelokov
					ruling_only = yes
				}
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_KZR_SHCHELOKOV
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = KZR
				has_country_leader = {
					character = KZR_Mikhail_Solomentsev
					ruling_only = yes
				}
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_KZR_SOLOMENTSEV
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = TMK
			}
			has_global_flag = AFTER_MIDNIGHT_COMMENCED
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_TMK_AM
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = OMS
			}
			NOT = {
				has_global_flag = AFTER_MIDNIGHT_COMMENCED
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_OMS
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = TMB
			}
			has_global_flag = AFTER_MIDNIGHT_COMMENCED
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_TMB_AM
	}

	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = TYM
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_TYM
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = SVR
			}
			NOT = {
				has_global_flag = AFTER_MIDNIGHT_COMMENCED
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_SVR
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = TMO
			}
			has_global_flag = AFTER_MIDNIGHT_COMMENCED
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_TMO_AM
	}

	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = ZLT
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_ZLT
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = FAV
			}
			NOT = {
				has_global_flag = AFTER_MIDNIGHT_COMMENCED
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_FAV
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = TMF
			}
			has_global_flag = AFTER_MIDNIGHT_COMMENCED
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_TMF_AM
	}

	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = YGR
			}
			NOT = {
				has_global_flag = AFTER_MIDNIGHT_COMMENCED
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_YGR
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = TMD
			}
			has_global_flag = AFTER_MIDNIGHT_COMMENCED
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_TMD_AM
	}

	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = VOR
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_VOR
	}

	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = NOV
			}
			NOT = {
				has_global_flag = AFTER_MIDNIGHT_COMMENCED
				has_global_flag = SBA_collapsed
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_NOV
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = NOV
			}
			has_global_flag = SBA_collapsed
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_NOV_SBA
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = TME
			}
			has_global_flag = AFTER_MIDNIGHT_COMMENCED
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_TME_AM
	}

	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = TOM
			}
			NOT = {
				has_global_flag = AFTER_MIDNIGHT_COMMENCED
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_TOM
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = TMJ
			}
			has_global_flag = AFTER_MIDNIGHT_COMMENCED
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_TMJ_AM
	}

	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = KEM
			}
			NOT = {
				has_global_flag = SBA_collapsed
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_KEM
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = KEM
			}
			has_global_flag = SBA_collapsed
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_KEM_SBA
	}

	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = SBA
			}
			NOT = {
				has_global_flag = AFTER_MIDNIGHT_COMMENCED
				has_global_flag = SBA_collapsed
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_SBA
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = SBA
			}
			has_global_flag = SBA_collapsed
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_SBA_SBA
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = TMW
			}
			has_global_flag = AFTER_MIDNIGHT_COMMENCED
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_TMW_AM
	}

	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = KRS
			}
			NOT = {
				has_global_flag = AFTER_MIDNIGHT_COMMENCED
				has_global_flag = SBA_collapsed
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_KRS
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = KRS
			}
			has_global_flag = SBA_collapsed
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_KRS_SBA
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = TMX
			}
			has_global_flag = AFTER_MIDNIGHT_COMMENCED
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_TMX_AM
	}

	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = PRC
			}
			NOT = {
				has_global_flag = SBA_collapsed
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_PRC
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = PRC
			}
			has_global_flag = SBA_collapsed
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_PRC_SBA
	}

	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = ALT
			}
			NOT = {
				has_global_flag = AFTER_MIDNIGHT_COMMENCED
				has_global_flag = SBA_collapsed
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_ALT
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = ALT
			}
			has_global_flag = SBA_collapsed
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_ALT_SBA
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = TMH
			}
			has_global_flag = AFTER_MIDNIGHT_COMMENCED
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_TMH_AM
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = TAN
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_TAN
	}

	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = IRK
			}
			NOT = {
				has_global_flag = AFTER_MIDNIGHT_COMMENCED
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_IRK
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = TMG
			}
			has_global_flag = AFTER_MIDNIGHT_COMMENCED
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_TMG_AM
	}

	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = BRY
				has_cosmetic_tag = BRY_IRK_Harmonious
			}
			event_target:winning_country = {
				original_tag = OMO
			}
			NOT = {
				has_global_flag = AFTER_MIDNIGHT_COMMENCED
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_BRY_IRK_AF_2022
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = BRY
			}
			NOT = {
				has_global_flag = AFTER_MIDNIGHT_COMMENCED
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_BRY
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = TMY
			}
			has_global_flag = AFTER_MIDNIGHT_COMMENCED
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_TMY_AM
	}

	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = YAK
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_YAK
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = AMR
			}
			NOT = {
				has_global_flag = AFTER_MIDNIGHT_COMMENCED
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_AMR
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = TMR
			}
			has_global_flag = AFTER_MIDNIGHT_COMMENCED
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_TMR_AM
	}

	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = MAG
			}
			NOT = {
				has_global_flag = AFTER_MIDNIGHT_COMMENCED
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_MAG
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = TMM
			}
			has_global_flag = AFTER_MIDNIGHT_COMMENCED
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_TMM_AM
	}

	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = CHT
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_CHT
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = OMO
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_OMO
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = KMC
			}
			NOT = {
				has_global_flag = AFTER_MIDNIGHT_COMMENCED
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_KMC
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = TMC
			}
			has_global_flag = AFTER_MIDNIGHT_COMMENCED
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_TMC_AM
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = WAL
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_WAL
	}
	text = {
		trigger = {
			event_target:winning_country = {
				original_tag = SCO
			}
			event_target:losing_country = {
				OR = {
					original_tag = FEN
					original_tag = ENG
				}
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_SCO
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = SCO
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_SCO_LOSE
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = ULS
			}
			IRE = {
				has_country_flag = IRE_IRA_uprising
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOUR_ULS_TWOMEY
	}

	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = ULS
			}
			IRE = {
				has_country_flag = IRE_UVF_uprising
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOUR_ULS_PAISLEY
	}

	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = IRE
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOUR_IRE
	}

	###GERMANY

	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = BGR
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_BORMANN
	}

	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = SGR
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_SPEER
	}

	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = GGR
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_GOERING
	}

	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = HGR
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_HEYDRICH
	}

	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = GER
			}
			event_target:winning_country = {
				tag = HGR
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_SPEIDEL
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = FUK
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_FUK
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = BOV
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_BOV
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = UKS
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_UKS
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = UKR
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_UKR
	}
	text = {
		trigger = { event_target:losing_country = { original_tag = ORL } }
		localization_key = TNO_PEACE_POPUP_FLAVOR_MSK_ORL
	}
	text = {
		trigger = { event_target:losing_country = { original_tag = TVR } }
		localization_key = TNO_PEACE_POPUP_FLAVOR_MSK_TVR
	}
	text = {
		trigger = { event_target:losing_country = { original_tag = SNP } }
		localization_key = TNO_PEACE_POPUP_FLAVOR_MSK_SNP
	}
	text = {
		trigger = {
			event_target:losing_country = { original_tag = PAU }
			NOT = { has_global_flag = SGR_Slave_Revolt }
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_MSK_PAU
	}

	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = GGR
				has_country_leader = {
					character = GER_ferdinand_schorner
					ruling_only = yes
				}
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_SCHOERNER
	}

	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = ARG
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_ARGENTINA
	}

	text = {
		trigger = {
			NOT = { has_global_flag = brazilian_civil_war }
			event_target:losing_country = {
				OR = {
					original_tag = BRA
					original_tag = GUN
				}
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_BRAZIL
	}
	
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = BRA
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_BRAZIL_CIVIL_WAR_GOV
	}
	
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = CAS
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_BRAZIL
	}
	
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = BRR
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_BRAZIL_CIVIL_WAR_AMAZONAS
	}

	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = CHL
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_CHILE
	}

	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = PAN
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_PANAMA
	}

	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = URG
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_URUGUAY
	}

	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = PAR
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_PARAGUAY
	}

	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = STC
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_SANTA_CRUZ
	}

	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = BOL
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_BOLIVIA
	}

	text = {
		trigger = {
			NOT = { has_global_flag = PPI_ceasefire_collapsed }
			event_target:winning_country = {
				original_tag = CAL
			}
			event_target:losing_country = {
				original_tag = DOM
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_Trujillo
	}
	text = {
		trigger = {
			has_global_flag = PPI_ceasefire_collapsed
			event_target:winning_country = {
				original_tag = CAL
			}
			event_target:losing_country = {
				original_tag = DOM
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_DOM_Ceasefire
	}
	text = {
		trigger = {
			event_target:winning_country = {
				original_tag = DOM
			}
			event_target:losing_country = {
				original_tag = CAL
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_CAL_DOM
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = HAI
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_HAI
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = HAC
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_HAC
	}

	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = SRT
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_SLAVE_REVOLT
	}

	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = MCW
			}
			has_global_flag = german_civil_war_speervic
			has_global_flag = SGR_Slave_Revolt
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_SCHORNER_MUTINY
	}

	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = GER
			}
			has_global_flag = german_civil_war_speervic
			NOT = {
				GER = {
					has_country_flag = SGR_SR_authdem_outcome
				}
				has_global_flag = SGR_natsoc_collapse
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_GERMANY_SPEER
	}

	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = GER
			}
			has_global_flag = german_civil_war_speervic
			GER = {
				has_country_flag = SGR_SR_authdem_outcome
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_GERMANY_SCHMIDT
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = GER
			}
			has_global_flag = german_civil_war_speervic
			has_global_flag = SGR_natsoc_collapse
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_GERMANY_OBERLANDER
	}

	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = BRG
			}
			BRG = {
				has_country_flag = BRG_Revolt_Happened
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_BURGUNDY_COLLAPSE
	}

	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = FLR
			}
			BRG = {
				has_country_flag = BRG_Revolt_Happened
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_FLANDERS_COLLAPSE
	}

	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = BEL
			}
			BRG = {
				has_country_flag = BRG_Revolt_Happened
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_BELGIUM_COLLAPSE
	}

	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = PIC
			}
			BRG = {
				has_country_flag = BRG_Revolt_Happened
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_CHARLEMAGNE_COLLAPSE
	}

	## SS Civil War
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = DSG
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_SSCW_DSG
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = FPG
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_SSCW_FPG
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = SSL
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_SSCW_SSL
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = SSW
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_SSCW_SSW
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = OER
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_SSCW_OER
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = FSP
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_SSCW_FSP
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = PRK
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_SSCW_PRK
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = KLB
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_SSCW_KLB
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = KSS
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_SSCW_KSS
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = ISS
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_SSCW_ISS
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = SSF
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_SSCW_SSF
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = APF
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_SSCW_APF
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = LHH
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_SSCW_LHH
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = AGS
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_SSCW_AGS
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = SSN
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_SSCW_SSN
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = OKL
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_SSCW_OKL
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = FHH
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_SSCW_FHH
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = DSH
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_SSCW_DSH
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = AUS
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_SSCW_AUS
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = KHP
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_SSCW_KHP
	}

	## West African Crisis
	# Post-WAC
	text = {
		trigger = {
			has_global_flag = WAC_over
			event_target:losing_country = {
				original_tag = FTF
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_FTF_postWAC
	}
	text = {
		trigger = {
			has_global_flag = WAC_over
			event_target:losing_country = {
				original_tag = LIB
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_LIB_postWAC
	}
	text = {
		trigger = {
			has_global_flag = WAC_over
			event_target:losing_country = {
				original_tag = MDI
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_MDI_postWAC
	}
	text = {
		trigger = {
			has_global_flag = WAC_over
			event_target:losing_country = {
				original_tag = ZAR
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_ZAR_postWAC
	}
	text = {
		trigger = {
			has_global_flag = WAC_over
			event_target:losing_country = {
				original_tag = KAY
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_KAY_postWAC
	}

	# Cameroon Collapse
	text = {
		trigger = {
			has_global_flag = global_cameroon_has_collapsed
			event_target:losing_country = {
				original_tag = CAO
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_CAO_collapse
	}
	text = {
		trigger = {
			has_global_flag = global_cameroon_has_collapsed
			event_target:losing_country = {
				original_tag = BFR
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_BFR_collapse
	}
	text = {
		trigger = {
			has_global_flag = global_cameroon_has_collapsed
			event_target:losing_country = {
				original_tag = CHD
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_CHD_collapse
	}
	text = {
		trigger = {
			has_global_flag = global_cameroon_has_collapsed
			event_target:losing_country = {
				original_tag = NNG
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_NNG_collapse
	}
	text = {
		trigger = {
			has_global_flag = global_cameroon_has_collapsed
			event_target:losing_country = {
				original_tag = NGA
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_NGA_collapse
	}

	# WAC
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = WOL
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_WOL
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = FFR
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_FFR
	}
	text = {
		trigger = {
			NOT = { has_global_flag = WAC_over }
			event_target:losing_country = {
				original_tag = CAO
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_CAO
	}
	text = {
		trigger = {
			OR = {
				AND = {
					OR = {
						has_global_flag = WAC_scenario_2
						has_global_flag = WAC_scenario_3
					}
					event_target:losing_country = {
						OR = {
							original_tag = EWE
						}
					}
				}
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_EWE
	}
	text = {
		trigger = {
			OR = {
				AND = {
					has_global_flag = WAC_scenario_1
					event_target:losing_country = {
						OR = {
							original_tag = EWE
						}
					}
				}
				event_target:losing_country = {
					OR = {
						original_tag = CPP
					}
				}
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_EWE_soc
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = MLI
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_MLI
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = SWB
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_SWB
	}
	text = {
		trigger = {
			NOT = { has_global_flag = WAC_scenario_3 }
			event_target:losing_country = {
				original_tag = GBE
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_GBE
	}
	text = {
		trigger = {
			has_global_flag = WAC_scenario_3
			event_target:losing_country = {
				original_tag = GBE
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_GBE_soc
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = SUS
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_SUS
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = FTF
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_FTF
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = YOR
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_YOR
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = HAU
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_HAU
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = BKF
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_BKF
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = KAY
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_KAY
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = FIN
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_FIN
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = MEN
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_MEN
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = DRL
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_DRL
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = MGN
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_MGN
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = ORE
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_ORE
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = URL
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_URL
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = KAL
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_KAL
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = GGN
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_GGN
	}

	#Oil Crisis
	text = { #Yemen
		trigger = {
			event_target:losing_country = {
				original_tag = YEM
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_YEM
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = NYM
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_NYM
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = SAU
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_SAU
	}
	text = { #Oman
		trigger = {
			event_target:losing_country = {
				original_tag = OMA
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_OMA
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = OMI
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_OMI
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = OMB
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_OMB
	}
	text = { #Egypt
		trigger = {
			event_target:losing_country = {
				original_tag = EGY
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_EGY
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = EGB
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_EGB
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = EGQ
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_EGQ
	}
	text = { #Sudan
		trigger = {
			event_target:losing_country = {
				original_tag = RPS
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_RPS
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = SDF
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_SDF
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = SDS
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_SDS
	}
	text = { #South Sudan
		trigger = {
			event_target:losing_country = {
				original_tag = AZA
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_AZA
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = AYA
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_AYA
	}
	text = { #Iraq
		trigger = {
			event_target:losing_country = {
				original_tag = IRQ
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_IRQ
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = BIR
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_BIR
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = IRP
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_IRP
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = SNI
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_SNI
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = KUR
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_KUR
	}
	text = { #Syria
		trigger = {
			event_target:losing_country = {
				original_tag = SYR
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_SYR
	}
	text = { #Iran
		trigger = {
			event_target:losing_country = {
				original_tag = PER
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_PER
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = IRL
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_IRL
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = IRC
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_IRC
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = IRA
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_IRA
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = IRI
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_IRI
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = IRB
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_IRB
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = MDG
				has_cosmetic_tag = MAD_insurgent
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_MAD
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = MDG
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_MDG
	}
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = MDM
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_MDM
	}

	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = FRS
			}
			event_target:winning_country = {
				NOT = { original_tag = BRG }
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_FRS_CW
	}

	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = FRV
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_FRV_CW
	}

	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = FRM
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_FRM_CW
	}

	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = FMM
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_FMM_CW
	}

	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = FIT
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_FIT_CW
	}

	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = FGR
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_FGR_CW
	}

	text = {
		trigger = {
			has_global_flag = FFR_reclamation_happening
			event_target:losing_country = {
				original_tag = FRD
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_FRD_CW_reclamation
	}

	text = {
		trigger = {
			NOT = { has_global_flag = FFR_reclamation_happening }
			event_target:losing_country = {
				original_tag = FRD
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_FRD_CW
	}

 # Colombian Civil War
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = CLL
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_CLL_CW
	}

	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = CLC
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_CLC_CW
	}

	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = COL
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_COL_CW
	}

	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = CRO
				NOT = { has_cosmetic_tag = CRO_Yugoslavia }
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_CRO
	}

	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = CRO
				has_cosmetic_tag = CRO_Yugoslavia
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_CRO_YUGO
	}

	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = ZUL
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_ZUL
	}

	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = SLF
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_SLF
	}

	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = GRE
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_GRE
	}

	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = MLY
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_MLY
	}

	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = SHO
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_SHO
	}
	
	text = {
		trigger = {
			event_target:winning_country = {
				original_tag = VIC
			}
			event_target:losing_country = {
				original_tag = CAM
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_CAM_VIC
	}
	
	text = {
		trigger = {
			event_target:winning_country = {
				is_in_faction_with = JAP
			}
			event_target:losing_country = {
				original_tag = CAM
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_CAM_JAP
	}
	
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = VIC
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_VIC
	}
	
	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = LAO
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_LAO
	}

	text = {
		trigger = {
			event_target:winning_country = {
				original_tag = IND
			}
			event_target:losing_country = {
				original_tag = PAK
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_PAK_IND
	}

	text = {
		trigger = {
			event_target:winning_country = {
				NOT = { original_tag = IND }
			}
			event_target:losing_country = {
				original_tag = PAK
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_PAK_AZH
	}

	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = IND
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_IND
	}

	text = {
		trigger = {
			event_target:losing_country = {
				original_tag = AZH
			}
		}
		localization_key = TNO_PEACE_POPUP_FLAVOR_AZH
	}

	text = {
		trigger = {
			event_target:winning_country = {
				original_tag = SAF
				original_tag = SLF
				original_tag = BOR
				original_tag = SFG
			}
			event_target:losing_country = {
				OR = {
					original_tag = SAF
					original_tag = SLF
					original_tag = BOR
					original_tag = SFG
				}
			}
		}
		localization_key = TNO_PEACE_POPUP_WAR_CONCLUSION_2SACW
	}

	text = {
		localization_key = TNO_PEACE_POPUP_FLAVOR_DEFAULT
	}
}