# Allows you to create your own dynamic keys
# to be called in localization.
# defined_text -> this is it, we're defining the text
# text -> a discrete entry that can be picked to display in loc.
# trigger -> determines if a text entry will be picked or not.
# (The triggers need to be valid for the scope the key is called in
# (eg Root or From.From).)
# localization_key -> points to the localization key
# that'll be used if trigger passes





defined_text = {
	name = GetWargoalBasedOnGovernment
	text = { #United Kingdom of Portugal and Brazil 
		trigger = {
			has_cosmetic_tag = KPB_kingdom_portugal_and_brazil
		}
		localization_key = POR_puppet_wargoal
	}
	text = { #Salazarist Portugal
		trigger = {
			NOT = { has_cosmetic_tag = KPB_kingdom_portugal_and_brazil }
			has_government = neutrality
		}
		localization_key = POR_topple_government_wargoal
	}
	text = { #Fascist (else)
		localization_key = POR_annex_wargoal
	}
}